-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add progress messages to LGTM download option. #960
Add progress messages to LGTM download option. #960
Conversation
extensions/ql-vscode/CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
## [UNRELEASED] | |||
|
|||
- Remove line about selecting a language from the dropdown when downloading database from LGTM. This makes the download progress visible when the popup is not expanded. [#894](https://github.com/github/vscode-codeql/issues/894) |
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.
Please remove this duplicated line.
extensions/ql-vscode/CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
## [UNRELEASED] | |||
|
|||
- Remove line about selecting a language from the dropdown when downloading database from LGTM. This makes the download progress visible when the popup is not expanded. [#894](https://github.com/github/vscode-codeql/issues/894) | |||
- Add progress messages to LGTM download option. This makes the two-step process (selecting a project, then selecting a language) more clear. | |||
|
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.
And there is an extra newline here.
// These tests make API calls and may need extra time to complete. | ||
const fakeProgress = (_: ProgressUpdate) => { /*do nothing*/ }; |
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.
This could be converted into a test spy and you can later verify that this spy is invoked. This would ensure that the progress update is properly called.
eg-
let progressSpy: sinon.SinonStub<ProgressCallback>;
// and then in the before block:
progressSpy = sandbox.spy();
// and then in each test, after the call to convert databasea
expect(progressSpy).to.have.been.calledOnce;
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.
Looks good.
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.
This is great! Thanks for adding these progress messages 🎊
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
Add progress messages to LGTM download option. (github#960)
* Add progress messages to LGTM download option. * Add additional argument to get test passing again. * Make edits requested by @aeisenerg * Fix assertion in test case * Update extensions/ql-vscode/CHANGELOG.md
Suggested feature added: add progress messages to the LGTM download option.
Checklist
@github/docs-content-codeql
has been cc'd in all issues for UI or other user-facing changes made by this pull request.