mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
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:
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user