File tree Expand file tree Collapse file tree
src/client/debugger/extension/configuration/resolvers Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments