Skip to content

Commit

Permalink
refactor(completion): latestInsertChar alwayes to true (#3536)
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward authored Dec 30, 2021
1 parent 77fb25a commit c7a20c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/completion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,7 @@ export class Completion implements Disposable {
return
}
// Check commit character
if (pretext
&& this.selectedItem
&& this.config.acceptSuggestionOnCommitCharacter
&& latestInsertChar) {
if (pretext && this.selectedItem && this.config.acceptSuggestionOnCommitCharacter) {
let resolvedItem = this.getCompleteItem(this.selectedItem)
let last = pretext[pretext.length - 1]
if (sources.shouldCommit(resolvedItem, last)) {
Expand Down

0 comments on commit c7a20c8

Please sign in to comment.