BAS的功能在不同环境中可能略有不同。如果你需要使用SAP Fiori Tools,但手中的BAS tenant默认没有提供这个功能,在这种情况下,不用担心,你可以采取手动安装的方式来获取该插件功能。

“SAP provides you with a mechanism to access third party sites to view and download open-source, 3rd party or its own tools, libraries, or software components (“Extensions”) to dev spaces in SAP Business Application Studio. Using this mechanism, you can view and install VS Code Extensions from the VSX Open Registry at your own risk. SAP does not certify or endorse any of the third-party sites or Extensions, and they are not part of SAP Business Application Studio. You must ensure that you have and maintain all the necessary rights to use these Extensions. You are responsible for all aspects of the Extensions, including maintenance, management, security, and support. You will assume all responsibility for any negative effects caused by or relating to the Extensions. SAP may elect, in its sole discretion, to disable any dev space that includes Extensions that cause system malfunction or that SAP reasonably believes may cause harm to SAP systems.”

步骤 1:下载 SAP Fiori Tools 扩展包

打开SAP Fiori Tools – Extension PackIncluded Extensions区域中罗列了所有Fiori Tools相关的拓展包。点进每一个SAP Fiori tools – XXX字样的链接:

点击Download Extension,将每个 vsix文件夹保存在本地文件夹中:

压缩存有所有拓展包的文件夹。

步骤 2: 将扩展包上传到 BAS

这一步中,你需要将扩展包上传到 BAS。上传的方式有多种,在这里,我们提供一种上传它们的方法。

执行BAS command SAP Business Application Studio: Import Project

选择刚刚压缩的文件夹:

步骤 3: 安装拓展包

要想在 BAS 开发空间(dev space)中安装扩展包,请执行BAS command Deploy Plugin by Id,并指定vsix所存放的路径:

在输入框中,输入您存储 vsix 文件的路径,例如: local-dir:/home/user/projects/Fiori Tools Extensions:

完成后(可能需要几分钟),请在命令面板中检查你是否可以看到 Fiori 命令。如果可以,你就可以基于此创建 Fiori 应用程序了。

步骤 4: 升级拓展包

你可以在菜单 View -> Plugins 中确认目前的插件版本, 例如:

  1. 按照与上面相同的步骤安装新版本。

  1. 打开终端,在~/.theia/extensions/目录下,你可以找到所有手动安装的插件。如果你曾试图安装多个版本的相同扩展,则都可以在这里看到:

  1. 删除所有旧版本,只保留你需要的版本:

  1. 成功安装之后,进入dev space管理界面,停止然后启动dev space。然后你就可以看到扩展已经从1.6.5升级到1.6.8:

Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x