Skip to content

Commit

Permalink
Open terminal links using revealIfOpened
Browse files Browse the repository at this point in the history
Fixes #130613
  • Loading branch information
Tyriar committed Sep 7, 2021
1 parent af70df8 commit e9f77ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ export class TerminalLinkManager extends DisposableStore {
startLineNumber: lineColumnInfo.lineNumber,
startColumn: lineColumnInfo.columnNumber
};
await this._editorService.openEditor({ resource: resolvedLink.uri, options: { pinned: true, selection } });
await this._editorService.openEditor({
resource: resolvedLink.uri,
options: { pinned: true, selection, revealIfOpened: true }
});
}

private _handleHypertextLink(url: string): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ export class TerminalWordLinkProvider extends TerminalBaseLinkProvider {
// If there was exactly one match, open it
if (results.results.length === 1) {
const match = results.results[0];
await this._editorService.openEditor({ resource: match.resource, options: { pinned: true } });
await this._editorService.openEditor({
resource: match.resource,
options: { pinned: true, revealIfOpened: true }
});
return;
}

Expand Down

0 comments on commit e9f77ae

Please sign in to comment.