ela
Contents

ManualEditors

VS Code and VSCodium

In the terminalela --spec vs-code-and-vscodium

This setup is written from VS Code's, VSCodium's and Simple LSP Client's documentation, and not tested.

VS Code learns a language from an extension; two pieces give it ela. A folder tells VS Code what an ela file is and colours it with ela-editor's TextMate grammar, and Simple LSP Client, which starts ela --lsp.

The folder goes in VS Code's extensions folder, ~/.vscode/extensions/ela-language/, or VSCodium's, ~/.vscode-oss/extensions/ela-language/. It holds ela-editor's grammar/ela.tmLanguage.json and this package.json:

{  "name": "ela-language",  "displayName": "ela",  "publisher": "local",  "version": "0.1.0",  "engines": { "vscode": "^1.75.0" },  "contributes": {    "languages": [      {        "id": "ela",        "aliases": ["ela"],        "extensions": [".ela"],        "firstLine": "^#!.*\\bela\\b"      }    ],    "grammars": [      {        "language": "ela",        "scopeName": "source.ela",        "path": "./ela.tmLanguage.json"      }    ]  }}

Simple LSP Client is wdomitrz.simple-lsp-client, on the Visual Studio Marketplace for VS Code and on Open VSX for VSCodium. In settings.json:

{  "simpleLspClient.servers": {    "ela": {      "cmd": ["ela", "--lsp"],      "filetypes": ["ela"]    }  }}

The server starts when the first ela file opens. VS Code restarts it with Simple LSP Client: Restart Servers from the command palette.