mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 08:37:37 +00:00
Rename context to align with other webview context keys (#157174)
For #30066
This commit is contained in:
parent
b012216211
commit
7b5e82ebcf
1 changed files with 3 additions and 1 deletions
|
@ -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[] = [];
|
||||
|
|
Loading…
Reference in a new issue