diff --git a/src/vs/code/node/cli.ts b/src/vs/code/node/cli.ts index 735a7e39669c4..c64e6fe05036e 100644 --- a/src/vs/code/node/cli.ts +++ b/src/vs/code/node/cli.ts @@ -62,20 +62,20 @@ export async function main(argv: string[]): Promise { } // Shell integration - else if (args['shell-integration']) { + else if (args['locate-shell-integration-path']) { // Silently fail when the terminal is not VS Code's integrated terminal if (process.env['TERM_PROGRAM'] !== 'vscode') { return; } let file: string; - switch (args['shell-integration']) { - // Usage: `[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --shell-integration bash)"` + switch (args['locate-shell-integration-path']) { + // Usage: `[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path bash)"` case 'bash': file = 'shellIntegration-bash.sh'; break; - // Usage: `if ($env:TERM_PROGRAM -eq "vscode") { . "$(code --shell-integration pwsh)" }` + // Usage: `if ($env:TERM_PROGRAM -eq "vscode") { . "$(code --locate-shell-integration-path pwsh)" }` case 'pwsh': file = 'shellIntegration.ps1'; break; - // Usage: `[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --shell-integration zsh)"` + // Usage: `[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"` case 'zsh': file = 'shellIntegration-rc.zsh'; break; - default: throw new Error('Error using --shell-integration: Invalid shell type'); + default: throw new Error('Error using --locate-shell-integration-path: Invalid shell type'); } console.log(join(dirname(FileAccess.asFileUri('', require)).fsPath, 'out', 'vs', 'workbench', 'contrib', 'terminal', 'browser', 'media', file)); } diff --git a/src/vs/platform/environment/common/argv.ts b/src/vs/platform/environment/common/argv.ts index 5424707ace6c4..71d2d312250e1 100644 --- a/src/vs/platform/environment/common/argv.ts +++ b/src/vs/platform/environment/common/argv.ts @@ -90,7 +90,7 @@ export interface NativeParsedArgs { 'logsPath'?: string; '__enable-file-policy'?: boolean; editSessionId?: string; - 'shell-integration'?: string; + 'locate-shell-integration-path'?: string; // chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches 'no-proxy-server'?: boolean; diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts index c3583c85e1a94..1728cfec19a24 100644 --- a/src/vs/platform/environment/node/argv.ts +++ b/src/vs/platform/environment/node/argv.ts @@ -128,7 +128,7 @@ export const OPTIONS: OptionDescriptions> = { 'logsPath': { type: 'string' }, '__enable-file-policy': { type: 'boolean' }, 'editSessionId': { type: 'string' }, - 'shell-integration': { type: 'string', args: ['bash', 'pwsh', 'zsh'] }, + 'locate-shell-integration-path': { type: 'string', args: ['bash', 'pwsh', 'zsh'] }, // chromium flags 'no-proxy-server': { type: 'boolean' }, diff --git a/src/vs/server/node/server.cli.ts b/src/vs/server/node/server.cli.ts index 56a704050b3df..4c5ec7e1e2aad 100644 --- a/src/vs/server/node/server.cli.ts +++ b/src/vs/server/node/server.cli.ts @@ -44,7 +44,7 @@ const isSupportedForCmd = (optionId: keyof RemoteParsedArgs) => { case 'enable-smoke-test-driver': case 'extensions-download-dir': case 'builtin-extensions-dir': - case 'shell-integration': + case 'locate-shell-integration-path': case 'telemetry': return false; default: diff --git a/src/vs/server/node/serverEnvironmentService.ts b/src/vs/server/node/serverEnvironmentService.ts index 2efbb4c5c9875..c075cf134fdf7 100644 --- a/src/vs/server/node/serverEnvironmentService.ts +++ b/src/vs/server/node/serverEnvironmentService.ts @@ -81,7 +81,7 @@ export const serverOptions: OptionDescriptions = { 'help': OPTIONS['help'], 'version': OPTIONS['version'], - 'shell-integration': OPTIONS['shell-integration'], + 'locate-shell-integration-path': OPTIONS['locate-shell-integration-path'], 'compatibility': { type: 'string' }, @@ -194,7 +194,7 @@ export interface ServerParsedArgs { /* ----- server cli ----- */ help: boolean; version: boolean; - 'shell-integration'?: string; + 'locate-shell-integration-path'?: string; compatibility: string;