Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(lsp): check tsc request cancellation before execution #21447

Conversation

nayeemrmn
Copy link
Collaborator

A lot of requests get cancelled before they get to the front of the queue. This should speed up those cases.

Comment on lines -1618 to -1622
#[tokio::test]
async fn test_cancelled_ts_diagnostics_request() {
let temp_dir = TempDir::new();
let (snapshot, cache_location) = setup(
&temp_dir,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this test need to be removed...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It no longer returns empty diagnostics but gives a cancelled error. Since it's not a meaningful or unique case anymore I just removed the test

@nayeemrmn nayeemrmn merged commit 0a738dc into denoland:main Dec 3, 2023
14 checks passed
Martin978 added a commit to Martin978/deno that referenced this pull request Dec 3, 2023
@nayeemrmn nayeemrmn deleted the lsp-tsc-request-check-cancelled-before-execution branch December 5, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants