Skip to content

Find shell integration module #5217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 {
Expand Down
Loading