Provides a language server for grammars based on Lark
Layout:
├── lark_language_server # The lang server python package
└── editors # Editor specific extensions
└── vscode # VSCode language server client extension
Development is against the VSCode extension:
- Open the root directory in VSCode
- Create a local python virtualenv i.e.
python -m venv .venv - Install the language server package in development mode
pip install -e . - Create
.vscode/settings.jsonfile and setpython.pythonPathto point to your python venvpythonexecutable - Goto the vscode extension
cd editors/vscode - Install the environment
npm install - Compile the extension
npm run compile - Within the debug view of VSCode, select
Server + Clientand pressF5or click on the green arrow (Start Debugging). - This is boot a vscode extension host & the python language server under debuggers.
- Open a
.larkdocument, it currently just sends some notifications to the client.