Skip to content

Latest commit

 

History

History
127 lines (76 loc) · 2.77 KB

DEVEL.md

File metadata and controls

127 lines (76 loc) · 2.77 KB

Development notes

This is the VSCode language extension for Ciao Prolog.

Useful links:

Status

Language extension:

Mark errors/warnings on source?

  • TBD

Toplevels:

  • Plain terminal? TBD

Status (advanced)

Verifly?

  • Requires LSP? TBD (Adaptor based?)

Source debugger?

  • TBD

Installing the Extension

  1. Install dependencies:

    npm install
  2. Package the extension:

    npm run package

    This command will bundle and package the extension in a .vsix file.

  3. 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.

Publishing the Extension

VSCode Marketplace

  1. Generate a personal access token in Dev Azure to publish an extension to the marketplace:

Generate token.

  1. Using vsce, login with ciao-lang publisher id:

    vsce login ciao-lang

    Provide the previously generated token when prompted so.

  2. Using vsce, publish the extension:

    vsce publish

OpenVSX Registry

  1. Generate a personal access token in OpenVSX registry:

Generate token.

  1. Package the extension:

    npm run package
  2. Using ovsx, publish the .vsix file generated after packaging the extension:

    npx ovsx publish <file> -p <token>

Bundling and installing the extension

(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

Automatic testing the extension

TBD https://code.visualstudio.com/api/working-with-extensions/testing-extension

Publishing the extension

TBD https://code.visualstudio.com/api/working-with-extensions/publishing-extension

Automated publishing from CI

TBD https://code.visualstudio.com/api/working-with-extensions/continuous-integration