File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/amazonq/src/app/inline Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class DocumentEventListener {
2424 // The VS Code provideInlineCompletionCallback may not trigger when Enter is pressed, especially in Python files
2525 // manually make this trigger. In case of duplicate, the provideInlineCompletionCallback is already debounced
2626 if ( this . isEnter ( e ) && vscode . window . activeTextEditor ) {
27- vscode . commands . executeCommand ( 'editor.action.inlineSuggest.trigger' )
27+ void vscode . commands . executeCommand ( 'editor.action.inlineSuggest.trigger' )
2828 }
2929 }
3030 } )
@@ -54,6 +54,9 @@ export class DocumentEventListener {
5454 }
5555
5656 private isEnter ( e : vscode . TextDocumentChangeEvent ) : boolean {
57+ if ( e . contentChanges . length !== 1 ) {
58+ return false
59+ }
5760 const str = e . contentChanges [ 0 ] . text
5861 if ( str . length === 0 ) {
5962 return false
You can’t perform that action at this time.
0 commit comments