Skip to content

Commit 3b30d5e

Browse files
authored
fix: enable fallback watcher when dynamicRegistration is false (#2783)
1 parent 8c11512 commit 3b30d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function startServer(options?: LSOptions) {
123123
Logger.error('No workspace path set');
124124
}
125125

126-
if (!evt.capabilities.workspace?.didChangeWatchedFiles) {
126+
if (!evt.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration) {
127127
const workspacePaths = workspaceUris.map(urlToPath).filter(isNotNullOrUndefined);
128128
watcher = new FallbackWatcher(watchExtensions, workspacePaths);
129129
watcher.onDidChangeWatchedFiles(onDidChangeWatchedFiles);

0 commit comments

Comments
 (0)