Fix local resources in webview views

Ensure we use the correct id for identifying the webview internally
This commit is contained in:
Matt Bierner
2020-08-21 16:40:55 -07:00
parent 041cf5dd0f
commit c50b5acd37
4 changed files with 6 additions and 4 deletions

View File

@@ -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;