Skip to content

Commit

Permalink
preview: fix opening of markdown sources
Browse files Browse the repository at this point in the history
The commit aligns the behavior when opening the source of a previewed
(rendered) markdown to open it as `tab-after` (aligning with the
behavior present in vscode).

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Sep 7, 2021
1 parent d216556 commit bcb96b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preview/src/browser/preview-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class PreviewContribution extends NavigatableWidgetOpenHandler<PreviewWid
protected async openSource(ref?: Widget): Promise<EditorWidget | undefined> {
if (ref instanceof PreviewWidget) {
return this.editorManager.open(ref.uri, {
widgetOptions: { ref, mode: 'open-to-left' }
widgetOptions: { ref, mode: 'tab-after' }
});
}
}
Expand Down

0 comments on commit bcb96b8

Please sign in to comment.