Skip to content

Commit 6dfdf6a

Browse files
Fix tests attach
1 parent bdec794 commit 6dfdf6a

File tree

1 file changed

+2
-1
lines changed
  • src/client/debugger/extension/configuration/resolvers

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { AttachRequestArguments, DebugOptions, LaunchRequestArguments, PathMappi
1717
import { PythonPathSource } from '../../types';
1818
import { IDebugConfigurationResolver } from '../types';
1919
import { getActiveTextEditor, resolveVariables } from '../utils/common';
20+
import { getOSType, OSType } from '../utils/platform';
2021
import { getWorkspaceFolder as getVSCodeWorkspaceFolder, getWorkspaceFolders } from '../utils/workspaceFolder';
2122

2223
@injectable()
@@ -177,7 +178,7 @@ export abstract class BaseConfigurationResolver<T extends DebugConfiguration>
177178

178179
// If on Windows, lowercase the drive letter for path mappings.
179180
// TODO: Apply even if no localRoot?
180-
if (/^win/.test(process.platform)) {
181+
if (getOSType() == OSType.Windows) {
181182
// TODO: Apply to remoteRoot too?
182183
pathMappings = pathMappings.map(({ localRoot: windowsLocalRoot, remoteRoot }) => {
183184
let localRoot = windowsLocalRoot;

0 commit comments

Comments
 (0)