Skip to content

Commit b44aede

Browse files
committed
Support links with end rows and/or cols
Fixes microsoft#178287
1 parent 9d817eb commit b44aede

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ export class TerminalLocalFileLinkOpener implements ITerminalLinkOpener {
3737
}
3838
const linkSuffix = link.parsedLink ? link.parsedLink.suffix : getLinkSuffix(link.text);
3939
const selection: ITextEditorSelection | undefined = linkSuffix?.row === undefined ? undefined : {
40-
startLineNumber: linkSuffix?.row ?? 1,
41-
startColumn: linkSuffix?.col ?? 1
40+
startLineNumber: linkSuffix.row ?? 1,
41+
startColumn: linkSuffix.col ?? 1,
42+
endLineNumber: linkSuffix.rowEnd,
43+
endColumn: linkSuffix.colEnd
4244
};
4345
await this._editorService.openEditor({
4446
resource: link.uri,

0 commit comments

Comments
 (0)