Skip to content

Commit 1dd7355

Browse files
authored
Rename Completions to Inline Suggestions (#1801)
1 parent 11711fe commit 1dd7355

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,19 +2293,19 @@
22932293
},
22942294
{
22952295
"command": "github.copilot.chat.completions.disable",
2296-
"title": "Disable Completions",
2296+
"title": "Disable Inline Suggestions",
22972297
"enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && config.editor.inlineSuggest.enabled && github.copilot.completions.enabled",
22982298
"category": "GitHub Copilot"
22992299
},
23002300
{
23012301
"command": "github.copilot.chat.completions.enable",
2302-
"title": "Enable Completions",
2302+
"title": "Enable Inline Suggestions",
23032303
"enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && !(config.editor.inlineSuggest.enabled && github.copilot.completions.enabled)",
23042304
"category": "GitHub Copilot"
23052305
},
23062306
{
23072307
"command": "github.copilot.chat.completions.toggle",
2308-
"title": "Toggle (Enable/Disable) Completions",
2308+
"title": "Toggle (Enable/Disable) Inline Suggestions",
23092309
"enablement": "github.copilot.extensionUnification.activated && github.copilot.activated",
23102310
"category": "GitHub Copilot"
23112311
}

src/extension/completions-core/vscode-node/extension/src/statusBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class CopilotStatusBar extends StatusReporter implements IDisposable {
115115
break;
116116
}
117117
this.item.accessibilityInformation = {
118-
label: 'Copilot Completions',
118+
label: 'Inline Suggestions',
119119
};
120120
if (this.state.command) {
121121
this.item.command = this.state.command;

src/extension/completions-core/vscode-node/extension/src/statusBarPicker.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isWeb } from '../../../../../util/vs/base/common/platform';
77
import { IInstantiationService } from '../../../../../util/vs/platform/instantiation/common/instantiation';
88
import { ICompletionsContextService } from '../../lib/src/context';
99
import { isCompletionEnabled, isInlineSuggestEnabled } from './config';
10-
import { CMDCollectDiagnosticsChat, CMDDisableCompletionsChat, CMDEnableCompletionsChat, CMDOpenDocumentationClient, CMDOpenLogsClient } from './constants';
10+
import { CMDCollectDiagnosticsChat, CMDDisableCompletionsChat, CMDEnableCompletionsChat, CMDOpenDocumentationClient, CMDOpenLogsClient, CMDOpenPanelClient } from './constants';
1111
import { CopilotExtensionStatus } from './extensionStatus';
1212
import { Icon } from './icon';
1313

@@ -24,7 +24,7 @@ export class CopilotStatusBarPickMenu {
2424
showStatusMenu() {
2525
const quickpickList = window.createQuickPick();
2626
quickpickList.placeholder = 'Select an option';
27-
quickpickList.title = 'Configure Copilot Completions';
27+
quickpickList.title = 'Configure Inline Suggestions';
2828
quickpickList.items = this.collectQuickPickItems();
2929
quickpickList.onDidAccept(() => this.handleItemSelection(quickpickList));
3030
quickpickList.show();
@@ -64,10 +64,8 @@ export class CopilotStatusBarPickMenu {
6464
if (!this.hasActiveStatus()) { return items; }
6565

6666
const editor = window.activeTextEditor;
67-
//if (!isWeb && editor) { items.push(this.newPanelItem()); }
67+
if (!isWeb && editor) { items.push(this.newPanelItem()); }
6868
// Always show the model picker even if only one model is available
69-
// Except on web where the model picker is not available pending CORS
70-
// support from CAPI https://github.com/github/copilot-api/pull/12233
7169
//if (!isWeb) { items.push(this.newChangeModelItem()); }
7270
if (editor) { items.push(...this.newEnableLanguageItem()); }
7371
if (items.length) { items.push(this.newSeparator()); }
@@ -86,9 +84,9 @@ export class CopilotStatusBarPickMenu {
8684
private newEnableLanguageItem() {
8785
const isEnabled = this.isCompletionEnabled();
8886
if (isEnabled) {
89-
return [this.newCommandItem('Disable Completions', CMDDisableCompletionsChat)];
87+
return [this.newCommandItem('Disable Inline Suggestions', CMDDisableCompletionsChat)];
9088
} else if (isEnabled === false) {
91-
return [this.newCommandItem('Enable Completions', CMDEnableCompletionsChat)];
89+
return [this.newCommandItem('Enable Inline Suggestions', CMDEnableCompletionsChat)];
9290
} else {
9391
return [];
9492
}
@@ -138,11 +136,11 @@ export class CopilotStatusBarPickMenu {
138136
'GitHub Copilot',
139137
]);
140138
}
141-
/* private newPanelItem() {
139+
142140
private newPanelItem() {
143-
return this.newCommandItem('Open Completions Panel...', CMDOpenPanel);
141+
return this.newCommandItem('Open Completions Panel...', CMDOpenPanelClient);
144142
}
145-
143+
/*
146144
private newChangeModelItem() {
147145
return this.newCommandItem('Change Completions Model...', CMDOpenModelPicker);
148146
}

0 commit comments

Comments
 (0)