@@ -18,19 +18,18 @@ import { IConfigurationService } from '../../../../../platform/configuration/com
18
18
import { IContextMenuService } from '../../../../../platform/contextview/browser/contextView.js' ;
19
19
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js' ;
20
20
import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.js' ;
21
- import { IProductService } from '../../../../../platform/product/common/productService.js' ;
22
21
import { IStorageService , StorageScope , StorageTarget } from '../../../../../platform/storage/common/storage.js' ;
23
22
import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.js' ;
24
23
import { ITerminalCapabilityStore , TerminalCapability } from '../../../../../platform/terminal/common/capabilities/capabilities.js' ;
25
24
import { AccessibilityVerbositySettingId } from '../../../accessibility/browser/accessibilityConfiguration.js' ;
26
25
import { IChatAgent , IChatAgentService } from '../../../chat/common/chatAgents.js' ;
26
+ import { ChatAgentLocation } from '../../../chat/common/constants.js' ;
27
27
import { IDetachedTerminalInstance , ITerminalContribution , ITerminalEditorService , ITerminalGroupService , ITerminalInstance , ITerminalService , IXtermTerminal } from '../../../terminal/browser/terminal.js' ;
28
28
import { registerTerminalContribution , type IDetachedCompatibleTerminalContributionContext , type ITerminalContributionContext } from '../../../terminal/browser/terminalExtensions.js' ;
29
29
import { TerminalInstance } from '../../../terminal/browser/terminalInstance.js' ;
30
30
import { TerminalInitialHintSettingId } from '../common/terminalInitialHintConfiguration.js' ;
31
31
import './media/terminalInitialHint.css' ;
32
32
import { TerminalChatCommandId } from './terminalChat.js' ;
33
- import { ChatAgentLocation } from '../../../chat/common/constants.js' ;
34
33
35
34
const $ = dom . $ ;
36
35
@@ -215,12 +214,10 @@ class TerminalInitialHintWidget extends Disposable {
215
214
216
215
constructor (
217
216
private readonly _instance : ITerminalInstance ,
218
- @IChatAgentService private readonly _chatAgentService : IChatAgentService ,
219
217
@ICommandService private readonly _commandService : ICommandService ,
220
218
@IConfigurationService private readonly _configurationService : IConfigurationService ,
221
219
@IContextMenuService private readonly _contextMenuService : IContextMenuService ,
222
220
@IKeybindingService private readonly _keybindingService : IKeybindingService ,
223
- @IProductService private readonly _productService : IProductService ,
224
221
@IStorageService private readonly _storageService : IStorageService ,
225
222
@ITelemetryService private readonly _telemetryService : ITelemetryService ,
226
223
@ITerminalService private readonly _terminalService : ITerminalService ,
@@ -244,13 +241,7 @@ class TerminalInitialHintWidget extends Disposable {
244
241
}
245
242
246
243
private _getHintInlineChat ( agents : IChatAgent [ ] ) {
247
- let providerName = ( agents . length === 1 ? agents [ 0 ] . fullName : undefined ) ?? this . _productService . nameShort ;
248
- const defaultAgent = this . _chatAgentService . getDefaultAgent ( ChatAgentLocation . Panel ) ;
249
- if ( defaultAgent ?. extensionId . value === agents [ 0 ] . extensionId . value ) {
250
- providerName = defaultAgent . fullName ?? providerName ;
251
- }
252
-
253
- let ariaLabel = `Ask ${ providerName } something or start typing to dismiss.` ;
244
+ let ariaLabel = `Open chat.` ;
254
245
255
246
const handleClick = ( ) => {
256
247
this . _storageService . store ( Constants . InitialHintHideStorageKey , true , StorageScope . APPLICATION , StorageTarget . USER ) ;
@@ -285,7 +276,7 @@ class TerminalInitialHintWidget extends Disposable {
285
276
const keybindingHintLabel = keybindingHint ?. getLabel ( ) ;
286
277
287
278
if ( keybindingHint && keybindingHintLabel ) {
288
- const actionPart = localize ( 'emptyHintText' , 'Press {0} to ask {1} to do something . ' , keybindingHintLabel , providerName ) ;
279
+ const actionPart = localize ( 'emptyHintText' , 'Open chat {0}. ' , keybindingHintLabel ) ;
289
280
290
281
const [ before , after ] = actionPart . split ( keybindingHintLabel ) . map ( ( fragment ) => {
291
282
const hintPart = $ ( 'a' , undefined , fragment ) ;
@@ -316,7 +307,7 @@ class TerminalInitialHintWidget extends Disposable {
316
307
comment : [
317
308
'Preserve double-square brackets and their order' ,
318
309
]
319
- } , '[[Ask {0} to do something ]] or start typing to dismiss.' , providerName ) ;
310
+ } , '[[Open chat ]] or start typing to dismiss.' ) ;
320
311
const rendered = renderFormattedText ( hintMsg , { actionHandler : hintHandler } ) ;
321
312
hintElement . appendChild ( rendered ) ;
322
313
}
0 commit comments