Skip to content

Commit 3e76370

Browse files
authored
Use more generic button title for jsconfig create/open (microsoft#167482)
For microsoft#166808
1 parent 725330a commit 3e76370

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extensions/typescript-language-features/src/ui/intellisenseStatus.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace IntellisenseState {
4646
export class IntellisenseStatus extends Disposable {
4747

4848
public readonly openOpenConfigCommandId = '_typescript.openConfig';
49-
public readonly createConfigCommandId = '_typescript.createConfig';
49+
public readonly createOrOpenConfigCommandId = '_typescript.createOrOpenConfig';
5050

5151
private _statusItem?: vscode.LanguageStatusItem;
5252

@@ -71,7 +71,7 @@ export class IntellisenseStatus extends Disposable {
7171
},
7272
});
7373
commandManager.register({
74-
id: this.createConfigCommandId,
74+
id: this.createOrOpenConfigCommandId,
7575
execute: async (rootPath: string, projectType: ProjectType) => {
7676
await openOrCreateConfig(projectType, rootPath, this._client.configuration);
7777
},
@@ -178,10 +178,10 @@ export class IntellisenseStatus extends Disposable {
178178
statusItem.text = noConfigFileText;
179179
statusItem.detail = undefined;
180180
statusItem.command = {
181-
command: this.createConfigCommandId,
181+
command: this.createOrOpenConfigCommandId,
182182
title: this._state.projectType === ProjectType.TypeScript
183-
? vscode.l10n.t("Create tsconfig")
184-
: vscode.l10n.t("Create jsconfig"),
183+
? vscode.l10n.t("Configure tsconfig")
184+
: vscode.l10n.t("Configure jsconfig"),
185185
arguments: [rootPath],
186186
};
187187
} else {

0 commit comments

Comments
 (0)