Skip to content

Should window/workDoneProgress/create be a notification? #923

Closed

Description

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...

Activity

  1. kjeremy commented on Feb 17, 2020

    @kjeremy
    Contributor

    I was actually wondering the same thing for rust-analyzer.

  2. dbaeumer commented on Feb 19, 2020

    @dbaeumer
    Member

    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?

  3. added
    info-needed
    on Feb 19, 2020
  4. vscodebot commented on Feb 26, 2020

    @vscodebot

    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!

  5. locked and limited conversation to collaborators on Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions