Repository navigation
Support for TSServer Request Cancelation - #22437
Merged
Merged
Conversation
Matt Bierner (mjbvz)
pushed a commit
to microsoft/TypeScript
that referenced
this pull request
Mar 11, 2017
While working on microsoft/vscode#22437, I believe there is a bug in the per request cancellation in the `setRequest` function on the line `currentRequestId = currentRequestId ;` This causes `currentRequestId` to always be undefined Fix is to assign the `currentRequestId` to `requestId`
This was referenced Mar 11, 2017
Mohamed Hegazy (mhegazy)
pushed a commit
to microsoft/TypeScript
that referenced
this pull request
Mar 13, 2017
While working on microsoft/vscode#22437, I believe there is a bug in the per request cancellation in the `setRequest` function on the line `currentRequestId = currentRequestId ;` This causes `currentRequestId` to always be undefined Fix is to assign the `currentRequestId` to `requestId`
Matt Bierner (mjbvz)
force-pushed
the
ts-cancel
branch
from
March 20, 2017 18:50
fa21f4f to
ad1f465
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#18053
Adds support for canceling ongoing TSServer requests using per request cancelation. This PR is a WIP currently.
Vladimir Matveev (@vladima) and Mohamed Hegazy (@mhegazy) can you take a quick look at the PR to see if it looks correct. I keep getting error from the TSServer that look like this:
It seems the expected request is never set. I think there is a bug on this line with
currentRequestId = currentRequestId: https://github.com/Microsoft/TypeScript/blob/6117ed77087b5d84774ee545bd3cad3d059caa75/src/server/cancellationToken/cancellationToken.ts#L51Here's a PR with a fix: microsoft/TypeScript#14594