From 529c3d434d945de8e38ba62ff41b823b23554167 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 24 Jun 2025 15:53:24 -0700 Subject: [PATCH] Shell integration script moved back --- src/utils.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index ed858192fa..a3236ebceb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -4,15 +4,11 @@ import os = require("os"); import path = require("path"); import vscode = require("vscode"); -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/251303 -const shellIntegrationMoved = satisfies(vscode.version, ">=1.102", { - includePrerelease: true, -}); +// Path to the shell integration script in the VS Code installation. +// See commit 21114288b if it moves again. export const ShellIntegrationScript = path.join( vscode.env.appRoot, "out", @@ -22,7 +18,7 @@ export const ShellIntegrationScript = path.join( "terminal", "common", "scripts", - shellIntegrationMoved ? "shellIntegration.psm1" : "shellIntegration.ps1", + "shellIntegration.ps1", ); export function escapeSingleQuotes(p: string): string {