Skip to content

v0.4.0

Choose a tag to compare

@samuelduchesne samuelduchesne released this 30 Oct 14:29
· 17 commits to main since this release
24e3c11

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 --stdio on 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/core and @idfkit/language under their own names are gone. If the library is missing, the server now asks for @idfkit/idfkit and @idfkit/language.
  • The model server's package was renamed from @idfkit/lsp-model-server to @idfkit/language-server, which is also the name it reports in serverInfo.

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.js from a clone, switch your launch command to idfkit-language-server --stdio and delete the clone.