-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
* introduce widget manager method to find a widget based on testing its options * use this in webviews-main to also check pending widgets
* fix {{uuid}} replacements * use an origin that is computed based on the view type
* move uuid v5 hash method to core
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 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); |
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.
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.
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.
Thanks, I've added a comment
* Add comment
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.
LGTM!
What it does
Fixes #13258
How to test
See the reproducers on #13258 and #13092
Follow-ups
/
Review checklist
Reminder for reviewers