Skip to content

Commit

Permalink
fix(views): show preview doesn't display targeted files when using fi…
Browse files Browse the repository at this point in the history
…le explorer(#2327)
  • Loading branch information
Kaan Genç committed Feb 2, 2022
1 parent 32ab735 commit 7ee340b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-core/src/commands/ShowPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class ShowPreviewCommand extends InputArgCommand<
this._panel.show();

if (note) {
this._panel.show(note);
return { note };
} else if (opts?.fsPath) {
const fsPath = opts.fsPath;
Expand Down

0 comments on commit 7ee340b

Please sign in to comment.