mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
add --locate-shell-integration-path to code spec with suggestions (#242708)
fix #242467
This commit is contained in:
@@ -135,6 +135,22 @@ const commonOptions: Fig.Option[] = [
|
|||||||
name: ['-h', '--help'],
|
name: ['-h', '--help'],
|
||||||
description: 'Print usage',
|
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[] = [
|
const extensionManagementOptions: Fig.Option[] = [
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import codeCompletionSpec from '../../completions/code';
|
|||||||
import { testPaths, type ISuiteSpec, type ITestSpec } from '../helpers';
|
import { testPaths, type ISuiteSpec, type ITestSpec } from '../helpers';
|
||||||
import codeInsidersCompletionSpec from '../../completions/code-insiders';
|
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[] {
|
export function createCodeTestSpecs(executable: string): ITestSpec[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user