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

feat(lsp): notification message when downloading #6508

Open
wants to merge 1 commit into
base: feature/amazonqLSP
Choose a base branch
from

Conversation

tomcat323
Copy link
Contributor

@tomcat323 tomcat323 commented Feb 5, 2025

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-05.at.1.53.14.PM.mov

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

github-actions bot commented Feb 5, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@tomcat323 tomcat323 changed the title use withProgress notification popup feat(lsp): status bar message when downloading Feb 5, 2025
@tomcat323 tomcat323 changed the title feat(lsp): status bar message when downloading feat(lsp): notification message when downloading Feb 5, 2025
@tomcat323 tomcat323 marked this pull request as ready for review February 5, 2025 18:54
@tomcat323 tomcat323 requested review from a team as code owners February 5, 2025 18:54
@@ -22,6 +23,20 @@ export class LanguageServerResolver {
private readonly _defaultDownloadFolder?: string
) {}

// wraps the resolver to show download status message
async resolveWithProgress() {
Copy link
Contributor

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.

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.

2 participants