Skip to content

Commit 2111428

Browse files
Find shell integration module (#5217)
1 parent 58aa029 commit 2111428

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { satisfies } from "semver";
99
export const PowerShellLanguageId = "powershell";
1010

1111
// Path to the shell integration script in the VS Code installation
12-
// See https://github.com/microsoft/vscode/pull/227244
13-
const shellIntegrationMoved = satisfies(vscode.version, ">=1.94", {
12+
// See https://github.com/microsoft/vscode/pull/251303
13+
const shellIntegrationMoved = satisfies(vscode.version, ">=1.102", {
1414
includePrerelease: true,
1515
});
1616
export const ShellIntegrationScript = path.join(
@@ -20,9 +20,9 @@ export const ShellIntegrationScript = path.join(
2020
"workbench",
2121
"contrib",
2222
"terminal",
23-
shellIntegrationMoved ? "common" : "browser",
24-
shellIntegrationMoved ? "scripts" : "media",
25-
"shellIntegration.ps1",
23+
"common",
24+
"scripts",
25+
shellIntegrationMoved ? "shellIntegration.psm1" : "shellIntegration.ps1",
2626
);
2727

2828
export function escapeSingleQuotes(p: string): string {

0 commit comments

Comments
 (0)