You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For ServerCapabilities I can include SelectionRangeRegistrationOptions in the original response to the initialize request but I cannot include DocumentFormattingRegistrationOptions because only DocumentFormattingOptions is allowed.
Would it make sense to update ServerCapabilities so that it supports declaring registration options for textDocument/formatting and other such features?
The text was updated successfully, but these errors were encountered:
The reason here is backwards compatibility. If we do that it must go behind a client capability since it might be unexpected for older clients. I never did this since you can achieve the same with dynamic registration.
language-server-protocol/_specifications/lsp/3.18/general/initialize.md
Lines 791 to 794 in 7755eb1
language-server-protocol/_specifications/lsp/3.18/general/initialize.md
Lines 826 to 832 in 7755eb1
For
ServerCapabilities
I can includeSelectionRangeRegistrationOptions
in the original response to theinitialize
request but I cannot includeDocumentFormattingRegistrationOptions
because onlyDocumentFormattingOptions
is allowed.Would it make sense to update
ServerCapabilities
so that it supports declaring registration options fortextDocument/formatting
and other such features?The text was updated successfully, but these errors were encountered: