microsoft/language-server-protocol

Support registering file watchers statically on initialize.

开放

#615 创建于 2018年11月26日

 (4 条评论) (0 个反应) (0 位负责人)HTML (956 个派生)batch import
feature-requestfile eventshelp wanted

仓库指标

星标
 (12,810 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南