-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
🐛 BUG: Updates in typescript types are only recognized after restarting the LSP #742
Comments
Since this works for VS Code, https://github.com/yaegassy/coc-astro and there's many people using the language-server in Neovim, I can only assume that this is a configuration issue in Neovim, but I honestly don't know. Thank you for reporting the issue, we'll take a look as soon as possible. |
I've tried this right now and it's working on my end. Edit: I'm using Screencast.from.12-27-2023.05.42.40.PM.webm |
Thanks both of you for your feedback! I made sure to update and reinstall the astro-language-server also the problem does not come up when importing type definitions in @Odas0R : Would you mind sharing your lspconfig setup with me ? I still can't quite get it to work. |
Here: https://github.com/Odas0R/dot/blob/main/nvim/lua/odas0r/plugin/lsp.lua Hope it helps! It's pretty basic |
Closing since this seems to be a setup issue. Many people are using Astro in Neovim just fine. |
I have the same issue and I have been stuck on it for days and it's driving me nuts. What is the gotcha here that I am missing? I can't get it to work on either Neovim 0.9 or 0.10-dev.
Even if I get rid of my entire config and only include nvim-lspconfig, file changes don't get recognized until I do (Using lazy.nvim) {
"neovim/nvim-lspconfig",
config = function()
require('lspconfig').astro.setup({
capabilities = {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
},
})
require('lspconfig').tsserver.setup({
capabilities = {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
},
})
end
}, |
With @astrojs/language-server 2.7 upgrading internally to Volar 2 fixed it! 🎉 |
Describe the Bug
I am using the astro language server with lspconfig in neovim.
Whenever I am updating a typescript type, e.g. renaming a variable, this change does not get picked up by the language server within astro files. The change is only recognized when I restart the LSP.
There seems to be this similar issue: #489
It does not seem to be actually resolved.
I can see that a
didChangeWatchedFiles
is being sent:But it does not seem to be picked up by the language server.
Does anybody have anyidea
Steps to Reproduce
The text was updated successfully, but these errors were encountered: