@@ -10,12 +10,11 @@ import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation
10
10
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
11
11
import { InlineChatController , InlineChatRunOptions } from 'vs/workbench/contrib/inlineChat/browser/inlineChatController' ;
12
12
import { AbstractInlineChatAction } from 'vs/workbench/contrib/inlineChat/browser/inlineChatActions' ;
13
- import { LOCALIZED_START_INLINE_CHAT_STRING , START_INLINE_CHAT } from '../browser /inlineChatActions' ;
13
+ import { LOCALIZED_START_INLINE_CHAT_STRING , START_INLINE_CHAT } from './inlineChatActions' ;
14
14
import { disposableTimeout } from 'vs/base/common/async' ;
15
15
import { EditorContextKeys } from 'vs/editor/common/editorContextKeys' ;
16
16
import { ICommandService } from 'vs/platform/commands/common/commands' ;
17
17
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
18
- import { StartVoiceChatAction , StopListeningAction } from 'vs/workbench/contrib/chat/electron-sandbox/actions/voiceChatActions' ;
19
18
import { IChatExecuteActionContext } from 'vs/workbench/contrib/chat/browser/actions/chatExecuteActions' ;
20
19
import { CTX_INLINE_CHAT_HAS_PROVIDER , CTX_INLINE_CHAT_VISIBLE , InlineChatConfigKeys } from 'vs/workbench/contrib/inlineChat/common/inlineChat' ;
21
20
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
@@ -96,13 +95,13 @@ function holdForSpeech(accessor: ServicesAccessor, ctrl: InlineChatController |
96
95
let listening = false ;
97
96
const handle = disposableTimeout ( ( ) => {
98
97
// start VOICE input
99
- commandService . executeCommand ( StartVoiceChatAction . ID , { voice : { disableTimeout : true } } satisfies IChatExecuteActionContext ) ;
98
+ commandService . executeCommand ( 'workbench.action.chat.startVoiceChat' , { voice : { disableTimeout : true } } satisfies IChatExecuteActionContext ) ;
100
99
listening = true ;
101
100
} , 250 ) ;
102
101
103
102
holdMode . finally ( ( ) => {
104
103
if ( listening ) {
105
- commandService . executeCommand ( StopListeningAction . ID ) . finally ( ( ) => {
104
+ commandService . executeCommand ( 'workbench.action.chat.stopListening' ) . finally ( ( ) => {
106
105
ctrl ! . acceptInput ( ) ;
107
106
} ) ;
108
107
}
0 commit comments