Skip to content

Commit 0649283

Browse files
committed
lint
1 parent 4e72ef1 commit 0649283

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/amazonq/src/app/inline/documentEventListener.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)