Skip to content

Markdown "Show Source" should go to previous tab if open #74008

@miguelsolorio

Description

@miguelsolorio

Issue Type: Bug

gif

When using the Markdown preview, the "Show Source" action should be smart enough to know that the source is open and go to that tab. Same applies to the preview tab, if there is already a preview tab open switch focus there. Otherwise you're in this endless loop of creating duplicate tabs.

VS Code version: Code - Insiders 1.35.0-insider (a5536b8, 2019-05-20T05:15:57.974Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (8 x 3100)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (0.67GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (30)
Extension Author (truncated) Version
vscode-browser-preview auc 0.5.4
vscode-opennewinstance chr 0.0.6
bracket-pair-colorizer Coe 1.0.61
vscode-svgviewer css 2.0.0
vscode-eslint dba 1.9.0
gitlens eam 9.7.4
vsc-material-theme Equ 2.8.2
prettier-vscode esb 1.9.0
azure-virtual-machine-explorer for 0.0.2
vscode-pull-request-github-insiders Git 1.137.0
vscode-colorize kam 0.8.10
theme-monokai-pro-vscode mon 1.1.13
vscode-azureappservice ms- 0.14.0
python ms- 2019.4.12954
remote-containers ms- 0.53.0
remote-ssh ms- 0.37.0
remote-ssh-edit ms- 0.37.0
remote-ssh-explorer ms- 0.37.0
remote-wsl ms- 0.36.0
azure-account ms- 0.8.4
azurecli ms- 0.4.5
vscode-typescript-tslint-plugin ms- 1.0.0
debugger-for-chrome msj 4.11.3
vetur oct 0.21.0
vscode-docker Pet 0.6.2
vscode-yaml red 0.4.0
code-settings-sync Sha 3.2.9
ayu tea 0.18.0
WebTemplateStudio-dev-nightly WAS 0.0.1914003
markdown-all-in-one yzh 2.3.1

(17 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

help wantedIssues identified as good community contribution opportunitiesmarkdownMarkdown support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions