-
Notifications
You must be signed in to change notification settings - Fork 749
feat(lsp): notification message when downloading #6508
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
Conversation
|
| ) {} | ||
|
|
||
| // wraps the resolver to show download status message | ||
| async resolveWithProgress() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear what this is intended to do, but I'll just mention that we have a pretty sophisticated progress wrapper: showProgressWithTimeout
| async function showProgressWithTimeout( |
which also supports Cancel. The ability to cancel is very important for most "progress" tasks.
|
| return await tryStageResolvers('getServer', serverResolvers, getServerVersion) | ||
|
|
||
| const timeout = new Timeout(5000) | ||
| await showMessageWithCancel(`Downloading '${this.lsName}' language server`, timeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the cancel handled? I.e. it should actually cancel the download. Look for existing showMessageWithCancel to see examples.
When the user hits Cancel, it should actually cancel the download.
Problem
https://taskei.amazon.dev/tasks/IDE-15760
Users want to know that language servers are downloading
Solution
Add a toast notification message with progress bar when LSP is downloading
Also added a developer command to reset LSP download for testing, and a "setup completed" log when downloaded.
Short demo:
Screen.Recording.2025-02-11.at.2.39.47.PM.mov
feature/xbranches will not be squash-merged at release time.