mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Fix local resources in webview views
Ensure we use the correct id for identifying the webview internally
This commit is contained in:
@@ -45,7 +45,7 @@ export class MainThreadWebviewsViews extends Disposable {
|
||||
resolve: async (webviewView: WebviewView, cancellation: CancellationToken) => {
|
||||
this._webviewViews.set(viewType, webviewView);
|
||||
|
||||
const handle = viewType;
|
||||
const handle = webviewView.webview.id;
|
||||
this.mainThreadWebviews.addWebview(handle, webviewView.webview);
|
||||
|
||||
let state = undefined;
|
||||
|
||||
Reference in New Issue
Block a user