Skip to content

Support registering file watchers statically on initialize. #615

Description

@kdvolder

I'm trying to understand the intention of the spec around 'didChangeWatchedFiles'. I think I understand the behavior for when 'dynamicRegistration' flag is set to 'true' in ClientCapabilities. In a nutshel, in that case, the server can register dynamically with specific glob patterns the server is interested in.

However, if 'dynamicRegistration' is set to false. What does that mean then?

Following along with other 'static' regustrations, I was expecting there would be a something in ServerCapabilities (returned by server initialization) where a server could somehow declare the patterns of files its interested in. But there doesn't seem to be anything like that.

So that brings me to my question, how does a server, in the static case, declare which file changes the server is interested in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityfile eventshelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions