deno icon indicating copy to clipboard operation
deno copied to clipboard

feat(lsp): jsr support first pass

Open nayeemrmn opened this issue 4 months ago • 0 comments

This implementation heavily depends on there being a lockfile, meaning JSR specifiers will always diagnose as uncached unless it's there. In practice this affects cases where a deno.json isn't being used. Our NPM specifier support isn't subject to this.

The reason for this is that the version constraint solving code is currently buried in deno_graph and not usable from the LSP, so the only way to reuse that logic is the solved-version map in the lockfile's packages.specifiers.

TODO: Non-erroneous tests for caching and type-checking.

nayeemrmn avatar Feb 11 '24 07:02 nayeemrmn