You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Provider API
autocomplete suggestion confirm isn't working if the typed prefix is more than one character.
n
-> NgClass
-> NgFor
-> NgIf
select any of them, it replaces n and works as expected.
ng
-> NgClass
-> NgFor
-> NgIf
after typing g, no matter what you select, it doesn't replace. ng stays.
Looks like the issue is happening because replacementPrefix
It is getting set for the first time n in this case and is not changing later time because of the null condition check in the line:220 (lib/autocomplete-manager.coffee)
Provider API
autocomplete suggestion confirm isn't working if the typed prefix is more than one character.
n
-> NgClass
-> NgFor
-> NgIf
select any of them, it replaces
n
and works as expected.ng
-> NgClass
-> NgFor
-> NgIf
after typing
g
, no matter what you select, it doesn't replace.ng
stays.Looks like the issue is happening because replacementPrefix
It is getting set for the first time
n in this case
and is not changing later time because of the null condition check in the line:220 (lib/autocomplete-manager.coffee)suggestion.replacementPrefix ?= @getDefaultReplacementPrefix(options.prefix)
which is making the condition fail in line: 404
if @editor.getTextInBufferRange([beginningPosition, endPosition]) is suggestion.replacementPrefix
Temporary fix:
Making
replacementPrefix = null
in completions before returning the filtered list from getSuggestions method will work.The text was updated successfully, but these errors were encountered: