-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Bug description
When a .qmd file is already open and in Visual mode, single-clicking the same file in Explorer opens the file a second time in Source mode instead of focusing the existing Visual editor tab. This happens regardless of the mode in the YAML header (editor: visual or editor: source)
Clicking on a .qmd file that is not already open will correctly open in the mode specified (visual or source).
Steps to reproduce
-
Open a qmd file -
Switch to Visual mode if it is in Source mode -
In Explorer, click on the same file
Actual behavior
The .qmd file is opened a second time in a second tab, this time in Source mode.
Expected behavior
-
Explorer click on open file should set focus to existing Visual editor tab. -
No duplicate tab should open.
Your environment
This happens on both Positron and VSCode.
Positron Version: 2026.02.0 (user setup) build 139
Code - OSS Version: 1.106.0
Commit: posit-dev/positron@4b472e9
Date: 2026-01-29T05:07:35.343Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
VSCode Version: 1.109.4 (user setup)
Commit: c3a26841a84f20dfe0850d0a5a9bd01da4f003ea
Date: 2026-02-16T15:35:57.932Z
Electron: 39.3.0
ElectronBuildId: 13313481
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200