File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ exports.provider = {
59
59
explicitlyTriggered = false ;
60
60
}
61
61
else {
62
- if ( options . prefix && options . prefix . trim ( ) == ';' ) {
62
+ var prefix = options . prefix . trim ( ) ;
63
+ if ( prefix === '' || prefix === ';' ) {
63
64
return Promise . resolve ( [ ] ) ;
64
65
}
65
66
}
Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ export var provider: autocompleteplus.Provider = {
141
141
explicitlyTriggered = false ;
142
142
}
143
143
else { // else in special cases for automatic triggering refuse to provide completions
144
- if ( options . prefix && options . prefix . trim ( ) == ';' ) {
144
+ const prefix = options . prefix . trim ( )
145
+
146
+ if ( prefix === '' || prefix === ';' ) {
145
147
return Promise . resolve ( [ ] ) ;
146
148
}
147
149
}
You can’t perform that action at this time.
0 commit comments