-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
denols: current status (meta issue) #2005
Comments
Regarding
The problem is in virtual text nvim automatically adds the current file-path to deno schema so |
deno lsp uses a custom schema `deno:` `uri_from_bufnr` returns the full path of the buf file but this doesn't work with custom schema This fixes the last remaining bug here <neovim/nvim-lspconfig#2005> `relative dependencies inside virtual text document is not resolved correctly` Notes: - maybe `if relative_name:match("deno:")` should become `if is_custom_schema(realtive_name)` where is_custom_schema matches `URI_SCHEME_PATTERN` but is not equal to `file:///` - this changes fixes all my issues with denols (with some minor modifications that I can pr later) This is more to start a discussion I thought showing code is easier to discuss then raising an issue
Currently there is only one bug remaining neovim/neovim#19967 with that fixed the experience is equivalent to vscode-deno The missing features can be implemented in a separate plugins once this bug is fixed. |
I wrote a plugin for this https://github.com/sigmaSd/deno-nvim |
@sigmaSd nice! Feel free to reference that from the docs here. |
done thanks! I think I can close this issue now, the remaining bug have issues upstream already. |
FWIW, #1937 is still open because I think it makes sense to have very thin (1-2 lines per command) or auto-generated commands if there's a way for the client to "discover" LSP server capabilities and generate commands for (custom) server actions. But for non-trivial commands and features, separate plugins are appropriate. |
I see thanks for the heads up. |
Short answer: it's not possible |
Thanks @mfussenegger . That leaves the "very thin" option. But that's probably not possible to do in a generic way. |
Hello, I have a problem when importing dependencies from esm.sh, Deno Intelissense in NeoVim do not work for esm.sh imported packages. It works for deno.land & npm: packages, but not for esm.sh. |
Can you provide typescript example that reproduce the issue |
Ok, the problem was coming from the fact that I did not run the |
This issue is meant to keep track of the current status of denols, this should help us to focus on whats missing to bring denols on par with vscode-deno.
bugs:
DenolsCache
works but it throws an errormethod not found
denols: Ignore caching error #2009missing features:
commands: https://deno.land/manual/language_server/overview#commands
requests: https://deno.land/manual/language_server/overview#requests
notification:: https://deno.land/manual/language_server/overview#notifications
The text was updated successfully, but these errors were encountered: