Skip to content

Commit b096d30

Browse files
author
Kim-Adeline Miguel
committed
Actual fix
1 parent a4d7bce commit b096d30

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • src/client/debugger/extension/configuration/resolvers

src/client/debugger/extension/configuration/resolvers/attach.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,14 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
9696
if (workspaceFolder && debugConfiguration.host &&
9797
debugConfiguration.pathMappings!.length === 0 &&
9898
['LOCALHOST', '127.0.0.1', '::1'].indexOf(debugConfiguration.host.toUpperCase()) >= 0) {
99+
// If on Windows, lowercase the drive letter for path mappings.
100+
let localRoot = workspaceFolder.fsPath;
101+
if (this.platformService.isWindows && localRoot.match(/^[A-Z]:/)) {
102+
localRoot = `${localRoot[0].toLowerCase()}${localRoot.substr(1)}`;
103+
}
104+
99105
debugConfiguration.pathMappings!.push({
100-
localRoot: workspaceFolder.fsPath,
106+
localRoot,
101107
remoteRoot: workspaceFolder.fsPath
102108
});
103109
}

0 commit comments

Comments
 (0)