Skip to content

Commit

Permalink
Merge pull request #184 from rjmacarthy/development
Browse files Browse the repository at this point in the history
Clear completion on abort
  • Loading branch information
rjmacarthy authored Mar 21, 2024
2 parents 7952ff8 + 6c52079 commit c6a0676
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "twinny",
"displayName": "twinny - AI Code Completion and Chat",
"description": "Locally hosted AI code completion plugin for vscode",
"version": "3.8.9",
"version": "3.8.10",
"icon": "assets/icon.png",
"keywords": [
"code-inference",
Expand Down
1 change: 1 addition & 0 deletions src/extension/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {
}

public abortCompletion() {
this._completion = ''
this._abortController?.abort()
this._statusBar.text = '🤖'
}
Expand Down

0 comments on commit c6a0676

Please sign in to comment.