We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c39537 commit b64c4c1Copy full SHA for b64c4c1
apps/vscode/src/providers/editor/editor.ts
@@ -175,7 +175,7 @@ export class VisualEditorProvider implements CustomTextEditorProvider {
175
// as the tab in `window.tabGroups`, so if we try and close `tab` we
176
// get a "tab not found" error. The one we care about does exist, but we have
177
// manually find it via URI, which is a stable field to match on.
178
- if (editorMode && editorMode != viewType && !isSwitch) {
+ if (editorMode && editorMode !== viewType && !isSwitch) {
179
const allTabs = window.tabGroups.all.flatMap(group => group.tabs);
180
181
// find tab to close if swapping editor type
0 commit comments