Skip to content

fix #82457, markdown open, but unfocused source tab - #85506

Merged
Matt Bierner (mjbvz) merged 1 commit into
microsoft:masterfrom
hypercubestart:fix-82457
Nov 25, 2019
Merged

fix #82457, markdown open, but unfocused source tab#85506
Matt Bierner (mjbvz) merged 1 commit into
microsoft:masterfrom
hypercubestart:fix-82457

Conversation

@hypercubestart

Copy link
Copy Markdown
Contributor

This PR fixes #82457.

This fix first opens the source tab of the currently focused markdown file using the showSource command. This would make the source tab part of vscode.window.visibleTextEditors, which can be iterated over and the appropriate line to select can be set. This makes sure that if the source tab is already open but unfocused, double clicking on a line in markdown will not create another tab of the markdown source file.

Testing: steps for reproduction provided by GeH (@GehDoc) in #82457

Current behavior: new tab opened for source markdown file
Expected behavior: unfocused source file tab is focused

@mjbvz

Copy link
Copy Markdown
Contributor

Thanks!

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown file preview on side, cannot find currently opened but unfocused source tab

2 participants