Skip to content

Commit a27705e

Browse files
Kapil Borledaviwil
Kapil Borle
authored andcommitted
Check document before trigger character for help completion
1 parent dcbc634 commit a27705e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/HelpCompletion.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ class TriggerFinder {
8181
break;
8282

8383
case SearchState.Locked:
84-
if (changeText.length === 1 && changeText[0] === this.triggerCharacters[this.count] && document === this.document) {
84+
if (document === this.document &&
85+
changeText.length === 1 &&
86+
changeText[0] === this.triggerCharacters[this.count]) {
8587
this.count++;
8688
if (this.count === this.triggerCharacters.length) {
8789
this.state = SearchState.Found;

0 commit comments

Comments
 (0)