Rename context to align with other webview context keys (#157174)

For #30066
This commit is contained in:
Matt Bierner 2022-08-04 21:32:02 -07:00 committed by GitHub
parent b012216211
commit 7b5e82ebcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,6 +116,8 @@ interface WebviewActionContext {
[key: string]: unknown;
}
const webviewIdContext = 'webviewId';
export class WebviewElement extends Disposable implements IWebview, WebviewFindDelegate {
/**
@ -342,7 +344,7 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
getActions: () => {
const contextKeyService = this._contextKeyService!.createOverlay([
...Object.entries(data.context),
['webview', this.providedViewType],
[webviewIdContext, this.providedViewType],
]);
const result: IAction[] = [];