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
perf(lsp): switch projects via didChangeWorkspaceFolders instead of restart
Restarting the language server on every project switch re-paid tsserver's
cold start (spawning node + loading the TypeScript library) each time. When
the server advertises workspace.workspaceFolders.changeNotifications, re-point
it live with workspace/didChangeWorkspaceFolders (remove old root, add new)
instead - no process restart, no cold start. Generic in LSPClient: servers
without the capability transparently fall back to a full restart, and restart
remains the recovery path for crashes / server-version changes.
Verified: A->B project switch ~160ms with cross-file Find Usages working in
both projects and no vtsls respawn in the logs.
0 commit comments