This is the VSCode language extension for Ciao Prolog.
Useful links:
- VSCode Extension API: https://code.visualstudio.com/api
Language extension:
-
Syntax highlighting: Info: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide
-
Snippet completion:
snippets.json
Info: https://code.visualstudio.com/api/language-extensions/snippet-guide -
Language configuration:
language-configuration.json
Info: https://code.visualstudio.com/api/language-extensions/language-configuration-guide- Bracket matching:
- Bracket autoclosing
- Bracket autosurrounding
- Comment toggling
- Folding (by markers)
Mark errors/warnings on source?
- TBD
Toplevels:
- Plain terminal? TBD
Verifly?
- Requires LSP? TBD (Adaptor based?)
Source debugger?
- TBD
-
Install dependencies:
npm install
-
Package the extension:
npm run package
This command will bundle and package the extension in a
.vsix
file. -
Insall the extension in VSCode:
From VSCode go to Extensions and click on the three dot button in the explorer bar. Then click install from vsix and select the
.vsix
file located in the root of the project.
- Generate a personal access token in Dev Azure to publish an extension to the marketplace:
-
Using
vsce
, login withciao-lang
publisher id:vsce login ciao-lang
Provide the previously generated token when prompted so.
-
Using
vsce
, publish the extension:vsce publish
- Generate a personal access token in OpenVSX registry:
-
Package the extension:
npm run package
-
Using
ovsx
, publish the.vsix
file generated after packaging the extension:npx ovsx publish <file> -p <token>
(Only bundled extensions can be used in VS Code for Web environments like github.dev and vscode.dev)
TBD https://code.visualstudio.com/api/working-with-extensions/bundling-extension
TBD https://code.visualstudio.com/api/working-with-extensions/testing-extension
TBD https://code.visualstudio.com/api/working-with-extensions/publishing-extension
TBD https://code.visualstudio.com/api/working-with-extensions/continuous-integration