Heavily documented sample code for https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
This Language Server works for plain text file. It has the following language features:
It also includes an End-to-End test.
.
├── client // Language Client
│ ├── src
│ │ ├── test // End to End tests for Language Client / Server
│ │ └── extension.ts // Language Client entry point
└── package.json // The extension manifest.
Press F5
to run the extension locally. This should open up an Extension Development Host instance of VS Code. Open any docs repo that has a snooty.toml
file (and pull any remote assets using make
if it hasn't been done so already).
To test out a local build of the Snooty VSCode Extension, you first need to run npm install -g @vscode/vsce
to install the vsce
package globally. Then, follow the instructions in HACKING.md
to allow the extension to communicate with the parser locally.
Run the command vsce package
at the root of this directory to compile the project. Once successfully compiled, open a Docs Content repo (e.g. cloud-docs
, docs-landing
) in a VSCode window and navigate to the Extensions
panel from the lefthand Extensions
sidebar button. Click the button at the top of the panel with the ellipses (...) and select Install from VSIX
. Choose the newly compiled file from your local snooty-vscode
repo named in the format of snooty-<version>.vsix
. This should enable your local branch as the extension utilized on your local machine's VSCode.
git clean -xfd
.npm install
.npm version <newversion>
.vsce package
, and test it in your vscode installation.vsce publish
and enter the personal access token you created in step 1 when prompted.git push origin main && git push --tags origin
.