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

Delay notification for slowTask for 2 seconds #505

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

gourlaysama
Copy link
Contributor

This waits 2 seconds before showing the full progress notification for slow tasks (assuming the task is still running by then).

It avoids multiple notifications like "Loading Presentation Compiler" appearing and immediately leaving because everything was ready and there was almost nothing to do.

Fixes #234

@gourlaysama gourlaysama force-pushed the feat/234-slow-task-progress branch 2 times, most recently from 1f0c8a1 to 0bcf281 Compare February 12, 2021 13:49
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Looks good! I will try it out before the next release.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Just checked it out and I would include a small change here. Thanks a lot for the fix!

src/extension.ts Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
This waits 2 seconds before showing the full progress notification
(assuming the task is still running by then).
It avoids multiple notifications appearing and immediately leaving for
short-lived tasks.

Fixes scalameta#234
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@tgodzik tgodzik merged commit a881e6c into scalameta:master Feb 22, 2021
@gourlaysama gourlaysama deleted the feat/234-slow-task-progress branch February 22, 2021 13:22
tgodzik added a commit to tgodzik/metals-vscode that referenced this pull request Feb 24, 2021
…progress

Delay notification for slowTask for 2 seconds
kasiaMarek pushed a commit to kasiaMarek/metals-vscode that referenced this pull request Mar 29, 2023
…rn/types/node-18.8.3

chore(deps-dev): bump @types/node from 18.8.2 to 18.8.3
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.

Delay metals/slowTask until task has been running for more than a few seconds
2 participants