sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin
MIT License
135 stars 11 forks source link

Can I configure LSP ignore directories/files? #132

Closed onsi closed 2 years ago

onsi commented 2 years ago

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?

rchl commented 2 years ago

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).

onsi commented 2 years ago

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

onsi commented 2 years ago

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