提交 b31befa9 编写于 作者: M Matt Bierner

Fix merge conflicts

上级 44d13e32
...@@ -125,15 +125,19 @@ export class MainThreadWebviews extends Disposable implements extHostProtocol.Ma ...@@ -125,15 +125,19 @@ export class MainThreadWebviews extends Disposable implements extHostProtocol.Ma
super(); super();
this._proxy = context.getProxy(extHostProtocol.ExtHostContext.ExtHostWebviews); this._proxy = context.getProxy(extHostProtocol.ExtHostContext.ExtHostWebviews);
this._register(_editorService.onDidActiveEditorChange(() => { this._register(_editorService.onDidActiveEditorChange(() => {
let activeInput = this._editorService.activeControl?.input; const activeInput = this._editorService.activeEditor;
if (activeInput instanceof DiffEditorInput && activeInput.master instanceof WebviewInput && activeInput.details instanceof WebviewInput) { if (activeInput instanceof DiffEditorInput && activeInput.master instanceof WebviewInput && activeInput.details instanceof WebviewInput) {
this.registerWebviewFromDiffEditorListeners(activeInput); this.registerWebviewFromDiffEditorListeners(activeInput);
} }
this.updateWebviewViewStates(activeInput); this.updateWebviewViewStates(activeInput);
})); }));
this._register(_editorService.onDidVisibleEditorsChange(() => this.updateWebviewViewStates(this._editorService.activeControl?.input)));
this._register(_editorService.onDidVisibleEditorsChange(() => {
this.updateWebviewViewStates(this._editorService.activeEditor);
}));
// This reviver's only job is to activate webview panel extensions // This reviver's only job is to activate webview panel extensions
// This should trigger the real reviver to be registered from the extension host side. // This should trigger the real reviver to be registered from the extension host side.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册