-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Typescript server is slow on Zed when compared to VSCode #18698
Comments
Could you also record a comparison with Neovim + VTSLS? VSC uses tsserver directly. |
CleanShot.2024-10-03.at.19.57.36.mp4LazyVim distro with that lsp config override: return {
"neovim/nvim-lspconfig",
opts = function(_, opts)
opts.inlay_hints.enabled = false
opts.servers.vtsls.settings.typescript.tsserver = {
experimental = {
enableProjectDiagnostics = false,
},
}
opts.servers.vtsls.autoUseWorkspaceTsdk = true
return opts
end,
} |
But as you can see in Zed, I'm hovering my mouse over the |
Same issue here, I'm running zed on fedora linux |
Been facing the same issue for the past few months. The only workaround right now is to restart the LSPs once in a while. |
I found this PR from vtsls. It seems Electron came with an unofficial Node version that came with pointer compression, which is also what VSCode is using. I played with it for a while. It does seem like the memory is relatively smaller, but I haven't really started coding with it. Screen.Recording.2024-11-07.at.9.49.32.PM.mov[UPDATE] After trying to open files from at least 10 different sub-repos, I can see the tsserver memory usage cut nearly half, from 3GB~ down to 1GB~. |
I'm not sure if this is good enough to reproduce the problem, but if you have a really large monorepo, try opening multiple files from multiple different sub-repos, and you will start noticing that the node memory usage will start to build up, which I think tsserver will likely get slow and unusable like the issue described. |
Check for existing issues
Describe the bug / provide steps to reproduce it
The coding experience in a large Typescript monorepo (https://github.com/baptisteArno/typebot.io) is still an issue for me even though it now uses the vtsls, I still don't get the same speed as VSCode or even NeoVim (with vtsls lsp)
I'm just helpless, what is doing Zed that could cause this code error refresh so slow?
This also can be linked with:
Environment
Zed: v0.156.0 (Zed Preview)
OS: macOS 15.0.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
VSCode:
CleanShot.2024-10-03.at.17.02.42.mp4
Zed:
CleanShot.2024-10-03.at.17.04.27.mp4
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: