Skip to content

Commit

Permalink
Clear state on failed insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
minosvasilias committed Mar 29, 2023
1 parent 332ec58 commit ab78958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/copilot/Copilot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ func _on_code_completion_received(completion, pre, post):
remove_loading_indicator()
if matches_request_state(pre, post):
insert_completion(completion, pre, post)
else:
clear_highlights()

func _on_code_completion_error(error):
#Display error
Expand Down

0 comments on commit ab78958

Please # to comment.