OakDB for VS Code
The language of OakDB in VS Code, for .oak files.
The extension runs OakDB's language server, which colors each part of a file by what it is: keywords, types, tables, columns, functions and TIME units. The language server ships with the extension, so there is nothing else to install.
It also comments lines with //, matches brackets, closes quotes, and continues a /// doc comment on Enter.
Install
Search for OakDB in VS Code's Extensions view, or run:
code --install-extension oak-db.oakdb
It runs on Linux (x64 and arm64), macOS on Apple Silicon, and Windows (x64). Each release also has a .vsix for each of them, to install offline.
Settings
| Setting |
Default |
What it sets |
oakdb.server.path |
empty |
The language server to run. Empty runs the one packaged with the extension. |
Build from source
Build the language server from oak-db/oakdb, with cargo build --release in its lsp folder, and copy target/release/lsp into this repository's server folder. Then package and install the extension:
npm ci
npm run package
code --install-extension oakdb.vsix
To try a server you're working on without packaging it again, set oakdb.server.path to its binary.