Change:
}); suite('"<>"', () => { <del> test('should exclude bracket characters from link paths', () => { deepStrictEqual( detectLinks('<C:Githubmicrosoftvscode<', OperatingSystem.Windows), [ { path: { index: 1, text: 'C:Githubmicrosoftvscode' }, prefix: undefined, suffix: undefined } ] as IParsedLink[] ); deepStrictEqual( detectLinks('>C:Githubmicrosoftvscode>', OperatingSystem.Windows), [ { path: { index: 1, text: 'C:Githubmicrosoftvscode' }, prefix: undefined, suffix: undefined } ] as IParsedLink[] ); }); test('should exclude bracket characters from link paths with suffixes', () => { deepStrictEqual( detectLinks('<C:Githubmicrosoftvscode:400<', OperatingSystem.Windows), [ { path: { index: 1, text: 'C:Githubmicrosoftvscode' }, prefix: undefined, suffix: { col: undefined, row: 400, </del> <ins> for (const os of operatingSystems) { test(`should exclude bracket characters from link paths ${osLabel[os]}`, () => { deepStrictEqual( detectLinks(`<${osTestPath[os]}<`, os), [ { path: { index: 1, text: osTestPath[os] }, prefix: undefined, suffix: undefined } ] as IParsedLink[] ); deepStrictEqual( detectLinks(`>${osTestPath[os]}>`, os), [ { path: { index: 1, text: osTestPath[os] }, prefix: undefined, suffix: undefined } ] as IParsedLink[] ); }); test(`should exclude bracket characters from link paths with suffixes ${osLabel[os]}`, () => { deepStrictEqual( detectLinks(`<${osTestPath[os]}:400<`, os), [ { path: { index: 1, text: osTestPath[os] }, prefix: undefined, </ins> suffix: { <del> index: 27, text: ':400' </del> <ins> col: undefined, row: 400, suffix: { index: 1 + osTestPath[os].length, text: ':400' } </ins> } } <del> } ] as IParsedLink[] ); deepStrictEqual( detectLinks('>C:Githubmicrosoftvscode:400>', OperatingSystem.Windows), [ { path: { index: 1, text: 'C:Githubmicrosoftvscode' }, prefix: undefined, suffix: { col: undefined, row: 400, </del> <ins> ] as IParsedLink[] ); deepStrictEqual( detectLinks(`>${osTestPath[os]}:400>`, os), [ { path: { index: 1, text: osTestPath[os] }, prefix: undefined, </ins> suffix: { <del> index: 27, text: ':400' </del> <ins> col: undefined, row: 400, suffix: { index: 1 + osTestPath[os].length, text: ':400' } </ins> } } <del> } ] as IParsedLink[] ); }); </del> <ins> ] as IParsedLink[] ); }); } </ins> }); suite('should detect file names in git diffs', () => {

Discussion:
<!-- Do Not Delete This! featurerequesttemplate --<!-- Please read our Rules of Conduct: --<!-- Please search existing issues to avoid creating duplicates. --<!-- Describe the feature you'd like. --Exclude both at the start and at the end from filepath detection. See this screenshot. <img width="2560" alt="Screenshot 2023-03-25 at 15 01 58" src="https://user-"The file path is detected but includes the surrounding angle brackets. Doing a to go to the file causes it to not be found. If one removes the angle brackets from the search manually, then it finds the file.
This actually works fine for me: ! Is relative to the current working directory?
Weird... No. The actual file I want to go is at but it was compiled as , so my logger used the compiled name as base path. I'm using latest version of vscode (1.76.2) and the integrated terminal is running zsh, on macOS. Looks like the difference is that you are running on Windows Powershell.
Can you try using the Insiders build here?
Sure. Just for completeness, even if I pass the actual relative path, it doesn't work. See the screenshot (still using stable). <img width="2560" alt="Screenshot 2023-03-27 at 16 17 20" src="https://user-"
Tested with insider and same behaviour. <img width="2560" alt="Screenshot 2023-03-27 at 16 21 08" src="https://user-"
Can repro on macOS <img width="226" alt="Screenshot 2023-03-27 at 12 58 16 pm" src="https://user-"