Skip to content

alexr00/issue115337 - #115537

Merged
Alex Ross (alexr00) merged 2 commits into
release/1.53from
alexr00/issue115337
Feb 1, 2021
Merged

Alex Ross (alexr00) merged 2 commits into
release/1.53from
alexr00/issue115337

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #115337

@alexr00 Alex Ross (alexr00) self-assigned this Feb 1, 2021

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

ghost Feb 1, 2021

Copy link
Copy Markdown
Contributor

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..."?

ghost Feb 1, 2021 •

Copy link
Copy Markdown
Member Author

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.

ghost left a comment •

Copy link
Copy Markdown
Contributor

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
Alex Ross (alexr00) merged commit 565dc97 into release/1.53 Feb 1, 2021
@alexr00
Alex Ross (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.

2 participants