Skip to content

Add noGetErrOnBackgroundUpdate session option to not queue diagnostics check for open files #24298

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

Merged
merged 1 commit into from
May 22, 2018

Conversation

sheetalkamat
Copy link
Member

This will ensure that the getErr will be queued in by host and hence would make sure that it is cancellable.
Handles one of the scenario delaying completions in #19458 wherein the getErr gets scheduled on eg setTypings and the getErr that would be started by tsserver would not be cancellable and hence amid the current ongoing semantic check which could take few seconds depending on file size, tsserver cant even receive the message and hence causing delay in the completion/change processing.

…s check for open files

This will ensure that the getErr will be queued in by host and hence would make sure that it is cancellable.
Handles one of the scenario delaying completions in #19458
@sheetalkamat sheetalkamat force-pushed the noErrOnBackgroundUpdate branch from 51b65b3 to f1acbc9 Compare May 21, 2018 19:53
@sheetalkamat
Copy link
Member Author

@mjbvz With this PR you can start passing --noGetErrOnBackgroundUpdate to stop us from queueing getErr and instead you start to queue the getErr on event projectsUpdatedInBackground

@sheetalkamat sheetalkamat requested a review from mhegazy May 21, 2018 19:55
@mjbvz
Copy link
Contributor

mjbvz commented May 21, 2018

API changes look good to me. Are you targeting 2.9, or 3.0?

@mhegazy mhegazy merged commit 7fb3123 into master May 22, 2018
@mhegazy mhegazy deleted the noErrOnBackgroundUpdate branch May 22, 2018 17:56
@sheetalkamat
Copy link
Member Author

@mjbvz It will be in 2.9

@mhegazy mhegazy mentioned this pull request May 22, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants