@@ -7,7 +7,7 @@ import { isWeb } from '../../../../../util/vs/base/common/platform';
77import { IInstantiationService } from '../../../../../util/vs/platform/instantiation/common/instantiation' ;
88import { ICompletionsContextService } from '../../lib/src/context' ;
99import { isCompletionEnabled , isInlineSuggestEnabled } from './config' ;
10- import { CMDCollectDiagnosticsChat , CMDDisableCompletionsChat , CMDEnableCompletionsChat , CMDOpenDocumentationClient , CMDOpenLogsClient } from './constants' ;
10+ import { CMDCollectDiagnosticsChat , CMDDisableCompletionsChat , CMDEnableCompletionsChat , CMDOpenDocumentationClient , CMDOpenLogsClient , CMDOpenPanelClient } from './constants' ;
1111import { CopilotExtensionStatus } from './extensionStatus' ;
1212import { 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