You can install this extension in Marketplace; or you can package the extension (as instructed below) and install the vsix
file.
Alternatively, you can also copy the directory to your extension folder:
mkdir ~/.vscode/extensions/logica-syntax-highlighting-0.0.1
cp -r syntaxes package.json language-configuration.json ~/.vscode/extensions/logica-syntax-highlighting-0.0.1
In VS Code open this folder and
- press
F5
to open a new window with the extension loaded; OR - hit
Ctrl+Shift+P
and run>Debug: Start Debugging
in the Command Palette; OR - click
Run and Debug
on your VS Code activity bar and then click theStart Debugging
icon.
Install js-yaml
as a development only dependency in the extension:
npm install js-yaml --save-dev
Edit src/logica.tmLanguage.yaml
, which is written in TextMate grammar.
Convert yaml
to json
with the command-line tool:
npx js-yaml src/logica.tmLanguage.yaml > syntaxes/logica.tmLanguage.json
Install vsce
on your machine:
npm install -g vsce
Your account needs to be added to our Azure DevOps organization logicalang
and publisher Logica
(due to some bugs adding to publisher needs Microsoft support). Then generate a personal access token as described here.
Login your account with the access token:
vsce login <Your Account>
Generate a package and publish it (change package.json
if needed):
vsce package
vsce publish
https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide