Fix incorrect capabilities notification in LSP
(cherry picked from commit 2173d041af
)
This commit is contained in:
parent
3d09edeaef
commit
6815bf42b3
1 changed files with 3 additions and 3 deletions
|
@ -486,7 +486,7 @@ struct TextDocumentSyncOptions {
|
||||||
* If present save notifications are sent to the server. If omitted the notification should not be
|
* If present save notifications are sent to the server. If omitted the notification should not be
|
||||||
* sent.
|
* sent.
|
||||||
*/
|
*/
|
||||||
SaveOptions save;
|
bool save = false;
|
||||||
|
|
||||||
Dictionary to_json() {
|
Dictionary to_json() {
|
||||||
Dictionary dict;
|
Dictionary dict;
|
||||||
|
@ -494,7 +494,7 @@ struct TextDocumentSyncOptions {
|
||||||
dict["willSave"] = willSave;
|
dict["willSave"] = willSave;
|
||||||
dict["openClose"] = openClose;
|
dict["openClose"] = openClose;
|
||||||
dict["change"] = change;
|
dict["change"] = change;
|
||||||
dict["save"] = save.to_json();
|
dict["save"] = save;
|
||||||
return dict;
|
return dict;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1656,7 +1656,7 @@ struct ServerCapabilities {
|
||||||
|
|
||||||
_FORCE_INLINE_ Dictionary to_json() {
|
_FORCE_INLINE_ Dictionary to_json() {
|
||||||
Dictionary dict;
|
Dictionary dict;
|
||||||
dict["textDocumentSync"] = (int)textDocumentSync.change;
|
dict["textDocumentSync"] = textDocumentSync.to_json();
|
||||||
dict["completionProvider"] = completionProvider.to_json();
|
dict["completionProvider"] = completionProvider.to_json();
|
||||||
signatureHelpProvider.triggerCharacters.push_back(",");
|
signatureHelpProvider.triggerCharacters.push_back(",");
|
||||||
signatureHelpProvider.triggerCharacters.push_back("(");
|
signatureHelpProvider.triggerCharacters.push_back("(");
|
||||||
|
|
Loading…
Reference in a new issue