@@ -9,7 +9,7 @@ import { ICodeEditor, IEditorMouseEvent, MouseTargetType } from 'vs/editor/brows
9
9
import { Range } from 'vs/editor/common/core/range' ;
10
10
import { IModelDecoration } from 'vs/editor/common/model' ;
11
11
import { Disposable , IDisposable } from 'vs/base/common/lifecycle' ;
12
- import { GhostTextController , ShowNextInlineCompletionAction , ShowPreviousInlineCompletionAction } from 'vs/editor/contrib/inlineCompletions/ghostTextController' ;
12
+ import { commitInlineSuggestionAction , GhostTextController , ShowNextInlineCompletionAction , ShowPreviousInlineCompletionAction } from 'vs/editor/contrib/inlineCompletions/ghostTextController' ;
13
13
import { ICommandService } from 'vs/platform/commands/common/commands' ;
14
14
import { IMenuService , MenuId , MenuItemAction } from 'vs/platform/actions/common/actions' ;
15
15
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey' ;
@@ -91,6 +91,11 @@ export class InlineCompletionsHoverParticipant implements IEditorHoverParticipan
91
91
commandId : ShowPreviousInlineCompletionAction . ID ,
92
92
run : ( ) => this . _commandService . executeCommand ( ShowPreviousInlineCompletionAction . ID )
93
93
} ) ;
94
+ statusBar . addAction ( {
95
+ label : nls . localize ( 'acceptInlineSuggestion' , "Accept" ) ,
96
+ commandId : commitInlineSuggestionAction . id ,
97
+ run : ( ) => this . _commandService . executeCommand ( commitInlineSuggestionAction . id )
98
+ } ) ;
94
99
95
100
for ( const [ _ , group ] of menu . getActions ( ) ) {
96
101
for ( const action of group ) {
0 commit comments