You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error detected while processing BufWritePre Autocommands for "*.ts*":
Error executing Lua callback: .../lazy/typescript-tools.nvim/lua/typescript-tools/api.lua:60: attempt to index local 'res' (a nil value)
stack traceback:
.../lazy/typescript-tools.nvim/lua/typescript-tools/api.lua:60: in function 'organize_imports_mode'
.../lazy/typescript-tools.nvim/lua/typescript-tools/api.lua:78: in function 'remove_unused_imports'
...script-tools.nvim/lua/typescript-tools/user_commands.lua:36: in function 'fn'
Restarting neovim fixes this issue, but it would be nice not to have to restart neovim every time I want to restart the lsp.
The text was updated successfully, but these errors were encountered:
Hi!
Thanks for looking into it, yes I was using nightly. However I switched from it since it was messing up my workflow :)
Seems like you found the issue, great! 🚀
I use this autocmd which works really well.
However when I restart the tsserver and then save the file the autocmd breaks.
This is the autocmd:
This is the error:
Restarting neovim fixes this issue, but it would be nice not to have to restart neovim every time I want to restart the lsp.
The text was updated successfully, but these errors were encountered: