Skip to content

Commit 9525bc1

Browse files
authored
debug: fix error on malformed paths (microsoft#201032)
Fixes microsoft#174054
1 parent 9b4a8d6 commit 9525bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/common/debugSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function getUriFromSource(raw: DebugProtocol.Source, path: string | undef
134134
if (typeof raw.sourceReference === 'number' && raw.sourceReference > 0) {
135135
return URI.from({
136136
scheme: DEBUG_SCHEME,
137-
path,
137+
path: path?.replace(/^\/+/g, '/'), // #174054
138138
query: `session=${sessionId}&ref=${raw.sourceReference}`
139139
});
140140
}

0 commit comments

Comments
 (0)