From 613aa464ae489c23afa2f18b05f7e40880037c72 Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Wed, 17 Oct 2018 23:11:17 +0200 Subject: [PATCH] support relative paths for backward compatibility; fixes #61088 --- src/vs/workbench/parts/debug/common/debugSource.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/parts/debug/common/debugSource.ts b/src/vs/workbench/parts/debug/common/debugSource.ts index 992a1526095..68a1d74bf9b 100644 --- a/src/vs/workbench/parts/debug/common/debugSource.ts +++ b/src/vs/workbench/parts/debug/common/debugSource.ts @@ -56,9 +56,8 @@ export class Source { if (paths.isAbsolute_posix(path) || paths.isAbsolute_win32(path)) { this.uri = uri.file(path); } else { - // path is relative - // should not happen because relative paths always have a sourceReference > 0 - console.error('cannot handle relative paths without sourceReference'); + // path is relative: this is not supported but if it happens we create a bogus uri for backward compatibility + this.uri = uri.file(path); } } } -- GitLab