-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't send textDocument/didSave unless server advertises support for it #164
Comments
The My impression is that the We could only send |
Here's an issue discussing this: I think what you want to do in the server is send a dict without the |
Sorry, I made a mistake reading what we sent above where I mentioned a boolean (I read the new TextDocumentSyncOptions(
true,
TextDocumentSyncKind.Incremental,
false,
false,
null,
) "textDocumentSync": {
"openClose": true,
"change": 2,
"willSave": false,
"willSaveWaitUntil": false
} |
Sounds good, this client doesn't support |
Towards #57 Towards #164 Add a capabilities library to filter down and parse out the options this client cares about. Always store a dictionary of capabilities on the server objects, and search those when checking for how other features should behave. This replaces the previous approach of storing a separate dictionary per feature to track by filetype. Once we support multiple servers for a given filetype the single config wouldn't make sense.
Towards #57 Towards #164 Add a capabilities library to filter down and parse out the options this client cares about. Always store a dictionary of capabilities on the server objects, and search those when checking for how other features should behave. This replaces the previous approach of storing a separate dictionary per feature to track by filetype. Once we support multiple servers for a given filetype the single config wouldn't make sense.
I think the comment about didSave being sent unconditionally in #114 is incorrect. In the spec the
ServerCapabilities
has:My interpretation is that
textDocument/didSave
should not be sent iftextDocumentSync
is1
,2
or an object with.save == true
. In Dart we're sending an object (TextDocumentSyncOptions
) withsave
set to false.The text was updated successfully, but these errors were encountered: