sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I configure LSP ignore directories/files?

onsi opened this issue · comments

Hey there, possibly dumb question here but I haven't manage to figure this out...

I'm pulling a number of third-party libraries into my source tree and some of them are generating lsp-typescript hints in the ST4 LSP pane. Is there a way to configure asp-typescript (or lsp more broadly) to ignore files and/or folders?

Maybe not doable the way you are thinking but you can configure typescript with tsconfig.json file so you could potentially create a nested tsconfig.json in a "third-party" directory and disable type checking for that directory (possibly by disabling checkJs).

got it thanks, will give it a try and report back.

looks like the diagnostics only appear if I happen to have the third-party file open in a sublime text tab. closing this out.