From 0dcf469725cd02e5cc084eda8135c8e1293e9458 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 13 Aug 2020 18:08:35 -0500 Subject: [PATCH] Add @version information to --help This mimics a recent change in VS Code's help. See #1965. --- src/node/cli.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/node/cli.ts b/src/node/cli.ts index e3072b1d3..894f79738 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -125,7 +125,11 @@ const options: Options> = { "extra-builtin-extensions-dir": { type: "string[]", path: true }, "list-extensions": { type: "boolean", description: "List installed VS Code extensions." }, force: { type: "boolean", description: "Avoid prompts when installing VS Code extensions." }, - "install-extension": { type: "string[]", description: "Install or update a VS Code extension by id or vsix." }, + "install-extension": { + type: "string[]", + description: + "Install or update a VS Code extension by id or vsix. The identifier of an extension is `${publisher}.${name}`. To install a specific version provide `@${version}`. For example: 'vscode.csharp@1.2.3'.", + }, "uninstall-extension": { type: "string[]", description: "Uninstall a VS Code extension by id." }, "show-versions": { type: "boolean", description: "Show VS Code extension versions." }, "proxy-domain": { type: "string[]", description: "Domain used for proxying ports." },