Add separator for TS version quick pick
This commit is contained in:
parent
fa1266520c
commit
9939a82851
|
@ -10,6 +10,7 @@
|
|||
"enabledApiProposals": [
|
||||
"inlayHints",
|
||||
"languageStatus",
|
||||
"quickPickSeparators",
|
||||
"resolvers",
|
||||
"workspaceTrust"
|
||||
],
|
||||
|
|
|
@ -82,6 +82,11 @@ export class TypeScriptVersionManager extends Disposable {
|
|||
const selected = await vscode.window.showQuickPick<QuickPickItem>([
|
||||
this.getBundledPickItem(),
|
||||
...this.getLocalPickItems(),
|
||||
{
|
||||
kind: vscode.QuickPickItemKind.Separator,
|
||||
label: '',
|
||||
run: () => { /* noop */ },
|
||||
},
|
||||
LearnMorePickItem,
|
||||
], {
|
||||
placeHolder: localize(
|
||||
|
@ -180,7 +185,7 @@ export class TypeScriptVersionManager extends Disposable {
|
|||
}
|
||||
|
||||
const LearnMorePickItem: QuickPickItem = {
|
||||
label: localize('learnMore', 'Learn more about managing TypeScript versions'),
|
||||
label: localize('learnMore', "Learn more about managing TypeScript versions"),
|
||||
description: '',
|
||||
run: () => {
|
||||
vscode.env.openExternal(vscode.Uri.parse('https://go.microsoft.com/fwlink/?linkid=839919'));
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"../../src/vscode-dts/vscode.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.inlayHints.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.languageStatus.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.quickPickSeparators.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.resolvers.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.workspaceTrust.d.ts",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue