Open aashish108 opened 8 months ago
Probably would need at least some logs to be able to tell something. https://lsp.sublimetext.io/troubleshooting/#self-help-instructions
I think the "No project" error is basically "too many large files" in the project and typescript-language-server
just bails out. In VSCode, one would get such a warning during rename action where that bailout happens, urging users to configure exclude
in tsconfig:
Ideally, LSP-typescript would replicate this warning popup in ST if the user has too many files in their project, likely not excluding dist
and similar folders.
I can reproduce the issue when I include
a dist
folder with 21MB of compiled Javascript in tsconfig.json
. Not sure what the threshold is for typescript-language-server
, but I assume it must have some limit and 21MB is over that.
Note to whoever wants to implement that: this message is based on projectLanguageServiceState
tsserver event which has languageServiceEnabled
property that tells whether the server got disabled.
Or it can probably be replicated with a lot of monorepo projects that have a lot of big apps in them.
Hey team! Do you know why I get this error when adding some folders to jsconfig.json? I have a list of 10 folders included in jsconfig.json includes section and had to disable 4 folders to get find references to work.
Complete Error