Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Clicking on .qmd file opens duplicate text tab if already open in Visual mode

未关闭
#917 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
vscode
领域
devtools

调研方向

Reproduce the duplicate-tab behavior by opening a .qmd file in Visual mode, then selecting it again from Explorer, in both Positron and VSCode. Trace the handling of Explorer clicks for already-open .qmd files and compare it with the YAML header mode; done means the existing Visual editor tab receives focus without opening a Source tab.

由索引模型根据 Issue 内容生成。

描述

bug visual-editor vscode
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
  1. Open a qmd file
    
  2. Switch to Visual mode if it is in Source mode
    
  3. 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
  1. Explorer click on open file should set focus to existing Visual editor tab.
    
  2. 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: https://github.com/posit-dev/positron/commit/4b472e9bf40ca88f886fe9c7fcfbb9ee702fccd0
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

主要语言
TypeScript
星标
655
派生
64
平均合并
8 小时 45 分钟
30 天内合并 PR
36

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto 的其他 Issue

查看 quarto-dev/quarto 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。