[go: nahoru, domu]

Skip to content

Commit

Permalink
Changes context viewType to webview
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jul 8, 2022
1 parent a2a42cf commit 752fd1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/webview/browser/webviewElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export interface WebviewInitInfo {
}

interface WebviewActionContext {
viewType?: string;
webview?: string;
}

export class WebviewElement extends Disposable implements IWebview, WebviewFindDelegate {
Expand Down Expand Up @@ -350,7 +350,7 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
menu.dispose();
return result;
},
getActionsContext: (): WebviewActionContext => ({ viewType: this.viewType }),
getActionsContext: (): WebviewActionContext => ({ webview: this.viewType }),
getAnchor: () => ({
x: elementBox.x + data.clientX,
y: elementBox.y + data.clientY
Expand Down

0 comments on commit 752fd1e

Please sign in to comment.