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

alexr00/issue115337 #115537

Merged
merged 2 commits into from Feb 1, 2021
Merged

alexr00/issue115337 #115537

merged 2 commits into from Feb 1, 2021

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Feb 1, 2021

Fixes #115337

@alexr00 alexr00 self-assigned this Feb 1, 2021
@@ -259,7 +259,7 @@ export class IconLabel extends Disposable {
};
IconLabel.adjustXAndShowCustomHover(hoverOptions, mouseX, hoverDelegate, isHovering);

const resolvedTooltip = await tooltip(tokenSource.token);
const resolvedTooltip = (await tooltip(tokenSource.token)) ?? (!isString(markdownTooltip) ? markdownTooltip.markdownNotSupportedFallback : undefined);
if (resolvedTooltip) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it intentional that it will not work when the empty string is returned? Wouldn't it then still show "Loading..."?

Copy link
Member Author

@alexr00 alexr00 Feb 1, 2021

Choose a reason for hiding this comment

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

Good catch, yes it will still show "Loading...". I think in this case we should simply hide the hover since none was provided.

Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

I think this is better now. A follow up item is maybe to not just have a generic hideHover method but correlate the operation to an identifier. Now it seems we are resolving a hover (which can take a long time) and then eventually might call hideHover even though I maybe opened another hover. I wonder if this could accidentally close a different hover.

@alexr00 alexr00 merged commit 565dc97 into release/1.53 Feb 1, 2021
@alexr00 alexr00 deleted the alexr00/issue115337 branch February 1, 2021 14:14
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2021
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.

None yet

2 participants