Skip to content

file watching: how to ignore certain directories? #117796

Closed
@stamblerre

Description

@stamblerre

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 Glob Pattern without a lot of additional complexity 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. Thanks!

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions