From e2dd2baae60f71ed3508db555581b6c65cfc2405 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 17 Jun 2025 14:18:29 -0700 Subject: [PATCH] Find shell integration module --- src/utils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index b1d4aadfb5..ed858192fa 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -9,8 +9,8 @@ import { satisfies } from "semver"; export const PowerShellLanguageId = "powershell"; // Path to the shell integration script in the VS Code installation -// See https://github.com/microsoft/vscode/pull/227244 -const shellIntegrationMoved = satisfies(vscode.version, ">=1.94", { +// See https://github.com/microsoft/vscode/pull/251303 +const shellIntegrationMoved = satisfies(vscode.version, ">=1.102", { includePrerelease: true, }); export const ShellIntegrationScript = path.join( @@ -20,9 +20,9 @@ export const ShellIntegrationScript = path.join( "workbench", "contrib", "terminal", - shellIntegrationMoved ? "common" : "browser", - shellIntegrationMoved ? "scripts" : "media", - "shellIntegration.ps1", + "common", + "scripts", + shellIntegrationMoved ? "shellIntegration.psm1" : "shellIntegration.ps1", ); export function escapeSingleQuotes(p: string): string {