Skip to content

Commit b5cabe7

Browse files
committed
Fix #10: Decode URI path to allow special characters in path
1 parent 5a3d23b commit b5cabe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDebug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class PhpDebugSession extends vscode.DebugSession {
198198
/** converts a server-side XDebug file URI to a local path for VS Code with respect to source root settings */
199199
protected convertDebuggerPathToClient(fileUri: string): string {
200200
// convert the file URI to a path
201-
const serverPath = url.parse(fileUri).pathname.substr(1);
201+
const serverPath = decodeURI(url.parse(fileUri).pathname.substr(1));
202202
let localPath: string;
203203
if (this._args.serverSourceRoot && this._args.localSourceRoot) {
204204
// get the part of the path that is relative to the source root

0 commit comments

Comments
 (0)