@@ -230,46 +230,6 @@ describe('InlineCompletionManager', () => {
230230 assert ( registerProviderStub . calledTwice ) // Once in constructor, once after rejection
231231 } )
232232 } )
233-
234- describe ( 'previous command' , ( ) => {
235- it ( 'should register and handle previous command correctly' , async ( ) => {
236- const prevCommandCall = registerCommandStub
237- . getCalls ( )
238- . find ( ( call ) => call . args [ 0 ] === 'editor.action.inlineSuggest.showPrevious' )
239-
240- assert ( prevCommandCall , 'Previous command should be registered' )
241-
242- if ( prevCommandCall ) {
243- const handler = prevCommandCall . args [ 1 ]
244- await handler ( )
245-
246- assert ( executeCommandStub . calledWith ( 'editor.action.inlineSuggest.hide' ) )
247- assert ( disposableStub . calledOnce )
248- assert ( registerProviderStub . calledTwice )
249- assert ( executeCommandStub . calledWith ( 'editor.action.inlineSuggest.trigger' ) )
250- }
251- } )
252- } )
253-
254- describe ( 'next command' , ( ) => {
255- it ( 'should register and handle next command correctly' , async ( ) => {
256- const nextCommandCall = registerCommandStub
257- . getCalls ( )
258- . find ( ( call ) => call . args [ 0 ] === 'editor.action.inlineSuggest.showNext' )
259-
260- assert ( nextCommandCall , 'Next command should be registered' )
261-
262- if ( nextCommandCall ) {
263- const handler = nextCommandCall . args [ 1 ]
264- await handler ( )
265-
266- assert ( executeCommandStub . calledWith ( 'editor.action.inlineSuggest.hide' ) )
267- assert ( disposableStub . calledOnce )
268- assert ( registerProviderStub . calledTwice )
269- assert ( executeCommandStub . calledWith ( 'editor.action.inlineSuggest.trigger' ) )
270- }
271- } )
272- } )
273233 } )
274234
275235 describe ( 'AmazonQInlineCompletionItemProvider' , ( ) => {
0 commit comments