As of the start of 2021 Business Application Studio has the Open VSX Registry extension enabled.
If you see this icon on the left toolbar, the extension is enabled.
As such, this blog post is largely redundant unless the extension is removed in the future.
Picking up from part 1 of this 3 part blog post we will show you how to load extensions into Business Application Studio(BAS).
Extension Plugin :
As of this posting December 10, 2020 the version of BAS available does not have the extension plugin enabled. If you read part 1 of this series, you learned that BAS is based on the Eclipse Theia Framework that makes it compatible with Microsoft VSCode IDE. When you click on the extension plugin in VSCode, you get a listing of extension provides by the VSCode Marketplace.
Unfortunately, SAP uses a different user license than Microsoft and only their tools are allowed to use the Visual Studio Marketplace. The good news is that there is the Open VSX Registry extension marketplace that does conform to SAP’s user’ license and it therefore is allowed to be used in BAS.
If you followed part 1 you should have cloned the notroot repository. In this repo there is a folder called scripts which contains some handy scripts to help bootstrap our efforts. I’m going to use a version of the python_ext script here to show how to load extensions while we wait for the extension plugin to become included in BAS in a future version. Here we are going to load the MS Python extension. To prove to ourselves that this works, first look at the File -> Settings -> Open Preferences to see that there are no python preferences currently.
Also check View -> Find Command… and see no Python commands either.
Now run this script to download the python extension.
mkdir -p /home/user/default-plugins cd /home/user/default-plugins curl -LJO https://open-vsx.org/api/ms-python/python/2020.10.332292344/file/ms-python.python-2020.10.332292344.vsix echo "Stop/Start your DevSpace!
Notice that it hints you to Stop/Start your DevSpace. Do that now.
Go the the url in your browser and remove everything in the location past the index.html and hit enter.
Click on the round stop button.
And once it’s reached the STOPPED state, click the arrow button to start it again.
Click on your Dev Space name to return to BAS.
Now try to find a command with python in the name. You should see a bunch now.
Just for fun, let’s try the tree command we installed from part 1.
It’s still there!
If you try any of the python commands they are not going to work yet. This is because we’ve installed the python extension itself but not the underlying python language interpreter.
We’ll do that in part 3 of this series.
Let me know if you have and questions or issues by leaving me a question below or better yet, asking it on the SAP community.
|Partners: If you have a question, click here to ask it in the SAP Community . Be sure to tag it with Partnership and leave your company name in the question so that we can better assist you.|