Skip to content

Commit 1c652d8

Browse files
authored
Pass flag to PTVSD to ensure file path case sensitivity is preserved (#936)
Fixes #935
1 parent 12f8f1c commit 1c652d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/client/debugger/mainV2.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { DebugProtocol } from 'vscode-debugprotocol';
2121
import '../../client/common/extensions';
2222
import { noop, sleep } from '../common/core.utils';
2323
import { createDeferred, Deferred, isNotInstalledError } from '../common/helpers';
24+
import { IPlatformService } from '../common/platform/types';
2425
import { ICurrentProcess } from '../common/types';
2526
import { IServiceContainer } from '../ioc/types';
2627
import { AttachRequestArguments, LaunchRequestArguments } from './Common/Contracts';
@@ -333,7 +334,9 @@ class DebugManager implements Disposable {
333334

334335
// Send PTVSD a bogus launch request, and wait for it to respond.
335336
// This needs to be done, so PTVSD can keep track of how it was launched (whether it as for attach or launch).
336-
this.sendMessage(await this.launchRequest, this.ptvsdSocket);
337+
const launchRequest = await this.launchRequest;
338+
(launchRequest.arguments as any).fixFilePathCase = this.serviceContainer.get<IPlatformService>(IPlatformService).isWindows;
339+
this.sendMessage(launchRequest, this.ptvsdSocket);
337340
await new Promise(resolve => debugSoketProtocolParser.once('response_launch', resolve));
338341

339342
// The PTVSD process has launched, now send the initialize request to it (required by PTVSD).

0 commit comments

Comments
 (0)