-
Notifications
You must be signed in to change notification settings - Fork 9
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
Help Needed: vtsls seems to restart frequently on switching files, performing some actions like line delete etc. #136
Comments
I suspect this is not an issue of vtsls. The most probable reason for this is that the server setup like |
I am using LazyVim distro. I am sure I haven't put anything in autocmd. The repo I am working is a huge MonoRepo(Angular projects). When I disable So I believe, it could be because of the memory hog or some issue with the angularls config. Is there any other config of vtsls , that can be changed to optimized it further? |
If you struggled with memory issue, take a look at typescript-language-server/typescript-language-server#472. Brief summary: download Node.js compiled with pointer compression from nodejs/unofficial-builds and use that to run server, if you are on Linux platform. This will cut down the memory usage by nearly half. But if your repo is really huge and the memory required is more than 4GB, this will exceed the hard limit of memory space and possibly kill the server process. Another option you could try is to set I am not familiar with |
Hi! Seems that I could reproduce when issue appears, but I not sure why. It appears in small nx monorepo I just started when I add new path in tsconfig. Take a look (the vtsls messages are at the bottom right): CleanShot.2024-02-03.at.11.31.08.mp4Could this be a memory issue? I use MacOS on M1 Pro chip Minimal lazyvim repro:
|
@Demianeen Thanks for your detailed information. It seems not a memory issue. Could you try to set |
Okay, it seems that the issue just stopped appearing. I think it could be just some error with tsconfig at that time. I never got the prompt from vtsls to submit the issue though |
Slightly Off topic, Is it possible to not attach angular lsp to some specific file like |
Hey, Thanks for this amazing plugin, I have been using it since yesterday, and the perfomance gain compare to other lsp is huge.
However when I switch from one
.ts
file to other.ts
file or perform some file operations like delete etc, the LSP server seems to restart. Please find below my config from the nvim-lspconfig.Please suggest if I need to make any changes in the config
The text was updated successfully, but these errors were encountered: