Support links with end rows and/or cols

Fixes #178287
This commit is contained in:
Daniel Imms
2023-06-22 08:56:12 -07:00
parent 9d817ebba4
commit b44aededb8
@@ -37,8 +37,10 @@ export class TerminalLocalFileLinkOpener implements ITerminalLinkOpener {
}
const linkSuffix = link.parsedLink ? link.parsedLink.suffix : getLinkSuffix(link.text);
const selection: ITextEditorSelection | undefined = linkSuffix?.row === undefined ? undefined : {
startLineNumber: linkSuffix?.row ?? 1,
startColumn: linkSuffix?.col ?? 1
startLineNumber: linkSuffix.row ?? 1,
startColumn: linkSuffix.col ?? 1,
endLineNumber: linkSuffix.rowEnd,
endColumn: linkSuffix.colEnd
};
await this._editorService.openEditor({
resource: link.uri,