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

Empty VSCode plugin webview editor windows #13258 #13265

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

jfaltermeier
Copy link
Contributor

@jfaltermeier jfaltermeier commented Jan 12, 2024

What it does

  • introduce widget manager method to find a widget based on testing its options
  • use this in webviews-main to also check pending widgets

Fixes #13258

How to test

See the reproducers on #13258 and #13092

Follow-ups

/

Review checklist

Reminder for reviewers

* introduce widget manager method to find a widget based on testing its
options
* use this in webviews-main to also check pending widgets
@jfaltermeier jfaltermeier changed the title Empty VSCode plugin webview editor windows #13258 [WIP] Empty VSCode plugin webview editor windows #13258 Jan 12, 2024
* fix {{uuid}} replacements
* use an origin that is computed based on the view type
* move uuid v5 hash method to core
@jfaltermeier jfaltermeier changed the title [WIP] Empty VSCode plugin webview editor windows #13258 Empty VSCode plugin webview editor windows #13258 Jan 15, 2024
@jfaltermeier jfaltermeier marked this pull request as ready for review January 18, 2024 11:15
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Looks good to me! I just would like a little bit of clarification on the v5 stuff so it is very obvious why we use it.

* @returns a uuid
*/
export function hashValue(value: string): string {
return v5(value, NAMESPACE);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we are using v5 as opposed to v4 here, I assume that we made this choice on purpose to always get the same UUID given the specified value, right? If so I think it would be great to make that even more explicit in the comment. Or is that explicit enough in your opinion, just asking from a very novice point of view.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I've added a comment

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

LGTM!

@jfaltermeier jfaltermeier merged commit eb8148b into master Jan 18, 2024
14 checks passed
@jfaltermeier jfaltermeier deleted the issues/13258_empty-webview branch January 18, 2024 12:42
@github-actions github-actions bot added this to the 1.46.0 milestone Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Empty VSCode plugin webview editor windows
2 participants