microsoft / microsoft/vscode-languageserver-node

WorkDoneProgressCancelNotification is not using the given cancellation strategy

Open
#1,191 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.8k
Forks
404
Avg merge
2d 8h
Merged PRs (30d)
14

Description

according to this - https://github.com/microsoft/vscode-languageserver-node/blob/main/server/src/common/progress.ts#L160 - workDoneProgressCancelNotification is using regular message for the cancellation notification.

this should use the same cancellation strategy provided like the regular cancellation messages - https://github.com/microsoft/vscode-languageserver-node/blob/main/jsonrpc/src/common/connection.ts#L1402, otherwise, anyone who uses custom cancellation strategy won't be able to use workdoneProgress's cancellation feature including ones who use sharedArrayCancellation for browser.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in server/src/common/progress.ts around WorkDoneProgressCancelNotification, then compare its cancellation handling with jsonrpc/src/common/connection.ts around the regular cancellation messages. Confirm the work-done progress cancellation path uses the supplied cancellation strategy, including custom strategies such as sharedArrayCancellation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.