Skip to content

Commit 52309bc

Browse files
committed
fix paths and path sep
1 parent 7a91829 commit 52309bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/extension/noConfigDebugInit.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ export async function registerNoConfigDebug(context: IExtensionContext): Promise
2626
const debuggerAdapterEndpointPath = path.join(debugAdapterEndpointDir, 'debuggerAdapterEndpoint.txt');
2727
collection.replace('DEBUGPY_ADAPTER_ENDPOINTS', debuggerAdapterEndpointPath);
2828

29-
const noConfigScriptsDir = path.join(context.extensionPath, 'bundled/scripts/noConfigScripts');
30-
collection.append('PATH', `:${noConfigScriptsDir}`);
29+
const noConfigScriptsDir = path.join(context.extensionPath, 'bundled', 'scripts', 'noConfigScripts');
30+
const pathSeparator = process.platform === 'win32' ? ';' : ':';
31+
collection.append('PATH', `${pathSeparator}${noConfigScriptsDir}`);
3132

32-
const bundledDebugPath = path.join(context.extensionPath, 'bundled/libs/debugpy');
33+
const bundledDebugPath = path.join(context.extensionPath, 'bundled', 'libs', 'debugpy');
3334
collection.replace('BUNDLED_DEBUGPY_PATH', bundledDebugPath);
3435

3536
// create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written

0 commit comments

Comments
 (0)