File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
codewhispererChat/controllers/chat Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ import { ContextCommandItem } from '../../../amazonq/lsp/types'
6969import { createPromptCommand , workspaceCommand } from '../../../amazonq/webview/ui/tabs/constants'
7070import fs from '../../../shared/fs/fs'
7171import * as vscode from 'vscode'
72+ import { FeatureConfigProvider , Features } from '../../../shared/featureConfig'
7273
7374export interface ChatControllerMessagePublishers {
7475 readonly processPromptChatMessage : MessagePublisher < PromptMessage >
@@ -439,6 +440,17 @@ export class ChatController {
439440 ] ,
440441 } ,
441442 ]
443+
444+ const feature = FeatureConfigProvider . getFeature ( Features . highlightCommand )
445+ const commandName = feature ?. value . stringValue
446+ if ( commandName ) {
447+ const commandDescription = feature . variation
448+ contextCommand . push ( {
449+ groupName : 'Additional Commands' ,
450+ commands : [ { command : commandName , description : commandDescription } ] ,
451+ } )
452+ }
453+
442454 const lspClientReady = await LspClient . instance . waitUntilReady ( )
443455 if ( ! lspClientReady ) {
444456 return
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export const Features = {
4141 projectContextFeature : 'ProjectContextV2' ,
4242 workspaceContextFeature : 'WorkspaceContext' ,
4343 test : 'testFeature' ,
44+ highlightCommand : 'highlightCommand' ,
4445} as const
4546
4647export type FeatureName = ( typeof Features ) [ keyof typeof Features ]
You can’t perform that action at this time.
0 commit comments