mirror of https://github.com/microsoft/vscode.git
Fix PowerShell terminal link detection for paths with spaces (#254504)
This commit is contained in:
parent
34d2ec438c
commit
ba25f9cd4c
|
@ -52,8 +52,8 @@ const fallbackMatchers: RegExp[] = [
|
|||
// C:\foo/bar baz:339: error ...
|
||||
// C:\foo/bar baz:339:12: error ... [#178584, Clang]
|
||||
/^(?<link>(?<path>.+):(?<line>\d+)(?::(?<col>\d+))?) ?:/,
|
||||
// Cmd prompt
|
||||
/^(?<link>(?<path>.+))>/,
|
||||
// PowerShell and cmd prompt
|
||||
/^(?:PS\s+)?(?<link>(?<path>[^>]+))>/,
|
||||
// The whole line is the path
|
||||
/^ *(?<link>(?<path>.+))/
|
||||
];
|
||||
|
|
|
@ -158,6 +158,8 @@ const supportedFallbackLinkFormats: LinkFormatInfo[] = [
|
|||
{ urlFormat: '{0}:{1}:{2} :', line: '5', column: '3', linkCellEndOffset: -2 },
|
||||
{ urlFormat: '{0}:{1}:', line: '5', linkCellEndOffset: -1 },
|
||||
{ urlFormat: '{0}:{1}:{2}:', line: '5', column: '3', linkCellEndOffset: -1 },
|
||||
// PowerShell prompt
|
||||
{ urlFormat: 'PS {0}>', linkCellStartOffset: 3, linkCellEndOffset: -1 },
|
||||
// Cmd prompt
|
||||
{ urlFormat: '{0}>', linkCellEndOffset: -1 },
|
||||
// The whole line is the path
|
||||
|
|
Loading…
Reference in New Issue