You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way it looks, the code is intended to work this way: see preview-contribution.ts#259: "Open Preview" opens a preview on the currently active editor, not on the selection in the explorer. "Open with..." and selecting preview works.
Go to the Explorer and select any file which can not be previewed (e.g. a *.ts file)
Go to Explorer and select any file that can be previewed (e.g. *.md file); this file should not already be opened in source mode (in another tab)
Right-click on this file from the Explorer and select the context menu item
Open Preview.
Preview opens successfully.
This means that if an editor currently has no active tabs then Explorer->Context Menu->Open Preview does not work - and the user does not get any feedback after clicking.
We could improve the user experience with one of the following solutions:
Enable the menu Explorer->Context Menu->Open Preview only when the editor has active tabs. Otherwise to view or enable this menu item makes no sense in this context, since clicking on the menu item has no effect.
Another solution (which is better) is to call implicitly "Open With..."->.. (which always works) when clicking Explorer->Context Menu->Open Preview menu.
Bug Description:
Open Preview
does not open the file in Preview mode if the file is not already open in Source mode.Steps to Reproduce:
Explorer
and select any file that can be previewed (e.g.*.md
file); this file should not already be opened in source mode (in another tab)Explorer
and select the context menu itemOpen Preview
.If you open the file in "source mode" and then click
Open Preview
, the file will open successfully in "preview mode".Additional Information
The text was updated successfully, but these errors were encountered: