Make sure we use consistent unique ids for custom editors

This commit is contained in:
Matt Bierner
2019-09-25 14:48:01 -07:00
parent a47bf2ac21
commit fd9528257e
2 changed files with 4 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
return webviewEditorInput.getTypeId() !== WebviewInput.typeId && webviewEditorInput.viewType === viewType;
},
resolveWebview: async (webview) => {
const handle = generateUuid();
const handle = webview.id;
this._webviewEditorInputs.add(handle, webview);
this.hookupWebviewEventDelegate(handle, webview);