Skip to content

Commit e79795f

Browse files
committed
fix to remove application from paths list
1 parent 62a894e commit e79795f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/common/utils/frameUtils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as path from 'path';
21
import { Uri } from 'vscode';
32
import { ENVS_EXTENSION_ID, PYTHON_EXTENSION_ID } from '../constants';
43
import { parseStack } from '../errors/utils';
@@ -26,7 +25,6 @@ function getPathFromFrame(frame: FrameData): string {
2625

2726
export function getCallingExtension(): string {
2827
const pythonExts = [ENVS_EXTENSION_ID, PYTHON_EXTENSION_ID];
29-
const execPath = normalizePath(path.dirname(process.execPath));
3028
const extensions = allExtensions();
3129
const otherExts = extensions.filter((ext) => !pythonExts.includes(ext.id));
3230
const frames = getFrameData();
@@ -41,7 +39,7 @@ export function getCallingExtension(): string {
4139
continue;
4240
}
4341

44-
if (filePath.startsWith(execPath) && filePath.endsWith('extensionhostprocess.js')) {
42+
if (filePath.toLowerCase().endsWith('extensionhostprocess.js')) {
4543
continue;
4644
}
4745

0 commit comments

Comments
 (0)