microsoft / microsoft/language-server-protocol
file watching glob pattern: ignoring certain directories
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13k
- Forks
- 1k
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 10
Description
We'd like to ignore certain directories for file watching in the Go language server (directories starting with . or _, testdata directories, etc.). However, it's not clear how to do this with a GlobPattern without a lot of additional complexity (a glob pattern that watches every directory in the workspace) or without sacrificing certain types of notifications (golang/go#41504). Is there a simple way to write a glob pattern that watches all files in the workspace, except for those in certain directories? Wanted to check here in case we were missing something obvious.
I asked this question in the vscode repo (https://github.com/microsoft/vscode/issues/117796) since I know the file watching is based on the VS Code API, but the issue was closed, and it probably makes more sense here, since it is part of the LSP.
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the LSP file-watching and GlobPattern discussion, then compare the VS Code issue 117796 and golang/go issue 41504 referenced here. Done would be a clear protocol-level answer or an agreed change describing how excluded directories and notifications should work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100