Skip to content

Commit

Permalink
fix(completion): clear completion on processing
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 18, 2024
1 parent 3b64bf4 commit 216c5c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/renderer/utils/shell-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ export class ShellIntegrationAddon implements ITerminalAddon {
}
}),
xterm.onCursorMove(() => {
if (settings['terminal.shell.autoCompletion']) {
if (this.currentCommand && !this.currentCommand.command) {
this.triggerCompletion()
}
if (settings['terminal.shell.autoCompletion'] && this.currentCommand && !this.currentCommand.command) {
this.triggerCompletion()
} else {
this.clearCompletion()
}
Expand Down

0 comments on commit 216c5c2

Please sign in to comment.