Skip to content

Commit

Permalink
Activate widgets if opening them from navigator widget
Browse files Browse the repository at this point in the history
To ensure correct global selections, widgets opened via a TreeNode in the file navigator are now activated (default) instead of only revealed.

Signed-off-by: Nina Doschek <ndoschek@eclipsesource.com>
  • Loading branch information
ndoschek committed Oct 29, 2020
1 parent 7a8eac8 commit bf82078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/navigator/src/browser/navigator-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class FileNavigatorModel extends FileTreeModel {

previewNode(node: TreeNode): void {
if (FileNode.is(node)) {
open(this.openerService, node.uri, { mode: 'reveal', preview: true });
open(this.openerService, node.uri, { preview: true });
}
}

Expand Down

0 comments on commit bf82078

Please sign in to comment.