-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Integrated Language Server Protocol #10794
Comments
Thanks @schrieveslaach. The one other thing that I'd like to see added, which I think has to be added on the vscode side is semantic highlighting. Just logging it here to remember. |
just to be sure, will #10723 close this issue? 😋 |
@fdncred, |
I'm excited about this!!!! |
@schrieveslaach When you get a moment, can you update the tracking items above? |
@schrieveslaach I just heard that the work you've done here has already been added to |
Hi! I did a lot of work on |
@AucaCoyan, thanks for offering help. In the recent weeks hadn't had much time for working on LSP in Nushell and I wasn't sure what to tackle next. Maybe, on But what do you think about integrating |
Great! |
we should not integrate |
# Description This commit fills in the completion item kind into the `textDocument/completion` response so that LSP client can present more information to the user. It is an improvement in the context of #10794 # User-Facing Changes Improved information display in editor's intelli-sense menu ![output](https://github.com/nushell/nushell/assets/16558417/991dc0a9-45d1-4718-8f22-29002d687b93)
@schrieveslaach one thing I think we need to be able to have is the |
@fdncred, I'm not so sure if I can follow you. The Or are you talking about the |
@schrieveslaach Sorry, this is what I'm talking about. It may not be exactly as I've stated but this is the symptom. This is my config.nu loaded in nvim. Note that the lsp is failing to find some files. The reason for this is
In the vscode extension, I get around this by having a config point to manually add Include Dirs. I'm not saying we should have a config or not. I'm not sure but I am saying that whatever is in NU_LIB_DIRS should be used. This may also assume that a persons env.nu is parsed when launching with |
If you are testing with local lspconfig = require('lspconfig')
lspconfig.nushell.setup({
cmd = { "nu", "--lsp", "-I", "… your path …", "-I", "… another path" },
-- … more options …
})
It doesn't parse standard config files. Seems to me that it should in certain cases. Maybe, if there is no |
This may work but I'm not confident with it because the I'll test #12454 soon. |
Providing local lspconfig = require('lspconfig')
lspconfig.nushell.setup({
cmd = { "nu", "--lsp", "-I", "… your path …\x1e… another path" },
-- … more options …
}) |
Related problem
As described in nushell/vscode-nushell-lang#117 there is a demand to integrate support for the language server protocol (LSP) into Nushell itself instead of creating an additional command line interface (CLI) protocol (that is the current approach with
--ide-*
CLI options.Describe the solution you'd like
Based on the initial draft PR #10723 at least following LSP methods should be supported by Nushell:
Describe alternatives you've considered
The alternative would be to keep using the
--ide-*
in the long run and build an external LSP server.Additional context and details
No response
The text was updated successfully, but these errors were encountered: