Repository navigation
v0.4.0
This release puts the model server on npm. Editors other than VS Code (Neovim, Helix, Zed, anything that starts a language server from a command) can now install it without cloning this repository and building it. Neither server gains or loses a capability.
Features
-
The model server is published to npm as
@idfkit/language-server(#34). It needs Node 20 or newer and brings the idfkit library and its language service with it:npm install -g @idfkit/language-server idfkit-language-server --stdio
Or run it without installing:
npx @idfkit/language-server --stdio. In Neovim:vim.lsp.config.idfkit_model = { cmd = { 'idfkit-language-server', '--stdio' }, filetypes = { 'idf' }, root_markers = { '.git' }, }
An editor extension can install the package and run
dist/main.js --stdioon its own Node runtime. Every release now publishes to npm and PyPI from the same tag, so the npm version, the PyPI version and the VS Code extension always agree.
Changes
- The model server reaches idfkit only through
@idfkit/idfkit(#34), now that the shared package is published. It is an exact dependency, at 0.4.0, and the fallbacks to@idfkit/coreand@idfkit/languageunder their own names are gone. If the library is missing, the server now asks for@idfkit/idfkitand@idfkit/language. - The model server's package was renamed from
@idfkit/lsp-model-serverto@idfkit/language-server, which is also the name it reports inserverInfo.
Upgrade notes
- VS Code: update the extension as usual. It bundles the model server, so nothing else changes.
pip install idfkit-lsp: the source server is unchanged apart from its version. It still pins idfkit 1.1.1.- Other editors: if you were running
model-server/dist/main.jsfrom a clone, switch your launch command toidfkit-language-server --stdioand delete the clone.