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
{{ message }}
Repository navigation
Should window/workDoneProgress/create be a notification? #923
Version 3.15 of the protocol introduces a new window/workDoneProgress/create. How come does this need to be a request initiated by the server? Couldn't that be a simple notification? The reason for asking is that for sending a request the server now needs to keep track of a different series of request ids (from the server to the client), something that (at least in the Erlang LS server) was not needed until now. The response is void anyway...
The reason is that the request creates UI and that this could fail. Although the resolved promise is void it could still happen that the promise is rejected in which case the progress token can not be trusted.
And there are other requests already that are sent from the server to the client (e.g. fetching configurations, applying workspace edits, ....)
Activity
kjeremy commentedon Feb 17, 2020
I was actually wondering the same thing for rust-analyzer.
dbaeumer commentedon Feb 19, 2020
The reason is that the request creates UI and that this could fail. Although the resolved promise is void it could still happen that the promise is rejected in which case the progress token can not be trusted.
And there are other requests already that are sent from the server to the client (e.g. fetching configurations, applying workspace edits, ....)
OK. to close?
vscodebot commentedon Feb 26, 2020
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!