Skip to content

Incorrect handling of client-initiatied progress #2545

Description

Describe the bug
I believe that in this code:

const progress = await this._getProgressReporter(
params.workDoneToken,
workDoneReporter,
Localizer.CodeAction.findingReferences(),
token
);

the params.workDoneToken will always be undefined since the LSP library will remove the property in

https://github.com/microsoft/vscode-languageserver-node/blob/859a8ece3e14b130d531c6102b2d108196436bc4/server/src/common/progress.ts#L139-L147

called from:

https://github.com/microsoft/vscode-languageserver-node/blob/859a8ece3e14b130d531c6102b2d108196436bc4/server/src/common/server.ts#L1696-L1698

and pass it through the workDoneReporter argument in the pyright handler function.

So the server is never using the client-initiated progress token but always creating server-initiated one.

Activity

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

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions