Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Sep 30, 2024
1 parent 3ef72e8 commit 89fae1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ function getDefaultShell(platform: IPlatformService, currentProcess: ICurrentPro
}
function getTerminalDefaultShellWindows(platform: IPlatformService, currentProcess: ICurrentProcess): string {
const isAtLeastWindows10 = parseFloat(platform.osRelease) >= 10;
const is32ProcessOn64Windows = currentProcess.env.hasOwnProperty('PROCESSOR_ARCHITEW6432');
const isWoW64 = currentProcess.env.hasOwnProperty('PROCESSOR_ARCHITEW6432');
const powerShellPath = `${currentProcess.env.windir}\\${
is32ProcessOn64Windows ? 'Sysnative' : 'System32'
isWoW64 ? 'Sysnative' : 'System32'
}\\WindowsPowerShell\\v1.0\\powershell.exe`;
return isAtLeastWindows10 ? powerShellPath : getWindowsShell(currentProcess);
}
Expand Down
31 changes: 0 additions & 31 deletions src/client/common/utils/runAfterActivation.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import { initializeStandard, initializeComponents, initializeGlobals } from './e
import { IServiceContainer } from './ioc/types';
import { sendErrorTelemetry, sendStartupTelemetry } from './startupTelemetry';
import { IStartupDurations } from './types';
import { runAfterActivation } from './common/utils/runAfterActivation';
import { IInterpreterService } from './interpreter/contracts';
import { PythonExtension } from './api/types';
import { WorkspaceService } from './common/application/workspace';
Expand Down Expand Up @@ -155,8 +154,6 @@ async function activateUnsafe(
.catch((ex) => traceError('Python Extension: interpreterManager.refresh', ex));
}
}

runAfterActivation();
});

const api = buildApi(
Expand Down

0 comments on commit 89fae1c

Please sign in to comment.