diff --git a/src/server.ts b/src/server.ts index 08247ee2..2674779e 100755 --- a/src/server.ts +++ b/src/server.ts @@ -349,7 +349,7 @@ connection.onInitialize((params: InitializeParams): InitializeResult => { } workspaceFolders = params.workspaceFolders; hierarchicalDocumentSymbolSupport = !!capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport; - clientDynamicRegisterSupport = !!capabilities.workspace.symbol.dynamicRegistration; + clientDynamicRegisterSupport = !!(capabilities.textDocument.rangeFormatting && capabilities.textDocument.rangeFormatting.dynamicRegistration); return { capabilities: {