typst-lsp icon indicating copy to clipboard operation
typst-lsp copied to clipboard

Customize Typst Version or OnExport event

Open JL710 opened this issue 2 years ago • 1 comments

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the discussions and believe that my question is not already covered.
  • [x] I have downloaded the lastest vs code extension from the store

Feature Request

First of all, I really like the LSP and the VS Code Extension.

Not too long ago a new typst version came out. I could not find any option in the VS Code extension where I could customize the typst version.

I would like to have an option where I could change the typst version or set a path for typst(the default executable).

This would allow the extension to work without any typst version issues.

JL710 avatar Apr 26 '23 15:04 JL710

Unfortunately, Typst is compiled into the language server binary, which means it's not possible to change the Typst version without an update.

This means we can use internal Typst functionality for parsing, syntax highlighting, completions, errors, and so on. A feature to use a not-built-in Typst may someday be implemented, but it's not a top priority.

When I have some time to update the Typst version internally (hopefully soon), I'll re-release the extension.

nvarner avatar Apr 26 '23 16:04 nvarner