Use strict compare for checking if an editor is active/visible

Fixes #81889

Using `.matches` can cause a custom editor to match all custom editors for that resource. Use a strict compare instead.
This commit is contained in:
Matt Bierner
2019-10-03 13:53:30 -07:00
parent eacd477ea9
commit d3eb24828e

View File

@@ -340,8 +340,8 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
const handle = this._webviewEditorInputs.getHandleForInput(editorInput);
if (handle) {
viewStates[handle] = {
visible: topLevelInput.matches(group.activeEditor),
active: topLevelInput.matches(activeInput),
visible: topLevelInput === group.activeEditor,
active: topLevelInput === activeInput,
position: editorGroupToViewColumn(this._editorGroupService, group.id),
};
}