VScode extension for SCs language support. Original project - vs-code-ostis
How to use
The description can be found in the original project. But there are some new features in this project. You should run ostis to get them. Important note: Use ctrl+shift+p to open the VScode command finder.
Upload active SCs to sc-machine and check it using sc-web
Open any file with the correct SCs code and open the command finder. Find the command "Save current SCs to the connected sc-machine" and click on it. Your SCs will be downloaded to the sc-machine and a new window with SCg will open in VScode.
Unload loaded SCs
Open the loaded(!!!) SCs. Find the command "Delete current SCs from the connected sc-machine" and click on it. Your SCs will be deleted from the sc-machine. But this function is not really needed, because when you load SCs again, it will automatically be deleted and loaded again. And it will also automatically close the sc-web window for deleted SCs.
Upload all SCs files from your project
Find the command "Save all scs files from the open project to sc-machine". You will then be able to find all your entities in sc-machine. You can use sc-web in VScode or in the browser.
Unload all loaded SCs from sc-machine
Find the command "Delete all SCs from the connected sc-machine". This will delete all previously downloaded SCs from the sc-machine.
How to configure and run
First of all, you need a vs-code with the latest updates (no older than May 2022 due to the project's use of the new tab API). After that, follow the steps:
How to debug
To debug the extension code, all you need to do is set breakpoints and run the extension.
To debug the LSP, you need to connect to the NodeJS process, as the LSP does not run on the same js engine as the extension. We are using debug port 6009 for our extension, the process on that port with a bigger process ID will likely be the LSP server.
ToDo full instruction) But you can check this repo https://github.com/microsoft/vscode-extension-samples