Skip to content

Commit

Permalink
Merge pull request #188 from iquiw/rangeformatting-capability
Browse files Browse the repository at this point in the history
Correct capability to check rangeFormatting dynamic registration
  • Loading branch information
JPinkney authored Oct 1, 2019
2 parents d1338d4 + 09c287d commit b51c7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit b51c7d0

Please sign in to comment.