Skip to content

Prevent error when reopening markdown preview. (#107205)#111449

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
apogeeoak:reopen-markdown-preview
Dec 1, 2020
Merged

Prevent error when reopening markdown preview. (#107205)#111449
mjbvz merged 1 commit intomicrosoft:masterfrom
apogeeoak:reopen-markdown-preview

Conversation

@apogeeoak
Copy link
Contributor

Default to active group instead of throwing error when calling editorGroupToViewColumn(). This fix makes markdown previews behave like text editors when reopening. The error was caused when the preview was opened in an editor group that has since closed.

I am not sure why @sohomdatta1 solution was not accepted but here is another attempt.

Fixes #107205

@mjbvz mjbvz added this to the November 2020 milestone Dec 1, 2020
@mjbvz mjbvz merged commit d95abcc into microsoft:master Dec 1, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 1, 2020

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2021
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.

Ctrl + Shift + T for Ctrl + K, V generated preview doesn't work

3 participants