Skip to content

50190 - #50255

Merged
Benjamin Pasero (bpasero) merged 2 commits into
microsoft:masterfrom
mkavidas:50190
May 23, 2018
Merged

50190#50255
Benjamin Pasero (bpasero) merged 2 commits into
microsoft:masterfrom
mkavidas:50190

Conversation

@mkavidas

@mkavidas Michael Kavidas (mkavidas) commented May 22, 2018 •

Copy link
Copy Markdown
Contributor

Fix for #50190.

Was a little unclear about the desired action that a blank message should have. Should it only update the progress bar and keep the previous message or should it update the progress bar and display no message?

I assumed the former would be desired.

The issue seems to be that when all increments are the same AND the messages are all blank they are seen as exactly the same and thus not updated.

The few solutions I could think of would be to a) force blank messages to include a whitespace. b) Force increment to change by 1 every time. c) update even if they are the same.


public worked(value: number): void {
if (this._state.worked === value) {
this._onDidChange.fire();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could just remove the entire if statement and it would have the same effect.

@bpasero
Benjamin Pasero (bpasero) merged commit 2a06a2f into microsoft:master May 23, 2018
@bpasero

Copy link
Copy Markdown
Contributor

Thanks!

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 29, 2020
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.

2 participants