add --locate-shell-integration-path to code spec with suggestions (#242708)

fix #242467
This commit is contained in:
Megan Rogge
2025-03-05 13:41:09 -05:00
committed by GitHub
parent e49e9aee03
commit 0b257aaeb4
2 changed files with 17 additions and 1 deletions

View File

@@ -135,6 +135,22 @@ const commonOptions: Fig.Option[] = [
name: ['-h', '--help'],
description: 'Print usage',
},
{
name: '--locate-shell-integration-path',
description:
'Print the path to the shell integration script for the provided shell',
args: {
isOptional: false,
name: 'shell',
description: 'The shell to locate the integration script for',
suggestions: [
'bash',
'fish',
'pwsh',
'zsh',
]
}
}
];
const extensionManagementOptions: Fig.Option[] = [

View File

@@ -8,7 +8,7 @@ import codeCompletionSpec from '../../completions/code';
import { testPaths, type ISuiteSpec, type ITestSpec } from '../helpers';
import codeInsidersCompletionSpec from '../../completions/code-insiders';
export const codeSpecOptions = ['-', '--add', '--category', '--diff', '--disable-extension', '--disable-extensions', '--disable-gpu', '--enable-proposed-api', '--extensions-dir', '--goto', '--help', '--inspect-brk-extensions', '--inspect-extensions', '--install-extension', '--list-extensions', '--locale', '--log', '--max-memory', '--merge', '--new-window', '--pre-release', '--prof-startup', '--profile', '--reuse-window', '--show-versions', '--status', '--sync', '--telemetry', '--uninstall-extension', '--user-data-dir', '--verbose', '--version', '--wait', '-a', '-d', '-g', '-h', '-m', '-n', '-r', '-s', '-v', '-w'];
export const codeSpecOptions = ['-', '--add', '--category', '--diff', '--disable-extension', '--disable-extensions', '--disable-gpu', '--enable-proposed-api', '--extensions-dir', '--goto', '--help', '--inspect-brk-extensions', '--inspect-extensions', '--install-extension', '--list-extensions', '--locale', '--locate-shell-integration-path', '--log', '--max-memory', '--merge', '--new-window', '--pre-release', '--prof-startup', '--profile', '--reuse-window', '--show-versions', '--status', '--sync', '--telemetry', '--uninstall-extension', '--user-data-dir', '--verbose', '--version', '--wait', '-a', '-d', '-g', '-h', '-m', '-n', '-r', '-s', '-v', '-w'];
export function createCodeTestSpecs(executable: string): ITestSpec[] {