Skip to content

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

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
hypercubestart:fix-82457
Nov 25, 2019
Merged

fix #82457, markdown open, but unfocused source tab#85506
mjbvz merged 1 commit intomicrosoft:masterfrom
hypercubestart:fix-82457

Conversation

@hypercubestart
Copy link
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 @GehDoc in #82457

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

@mjbvz mjbvz added this to the November 2019 milestone Nov 25, 2019
@mjbvz mjbvz merged commit 37eeb37 into microsoft:master Nov 25, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 25, 2019

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