Closed Aerijo closed 5 years ago
@50Wliu The package-lock.json
looks quite different to the one you committed earlier, specifically the version range symbols have been removed. Is this fine?
Yeah, that's fine. Just commit whatever the result of npm install
is.
Converts the internal uses of
ac.AnySuggestion
to the newSuggestion
, which is an extended version of the original. In particular, it has the propertyfilterText
, used for custom filtering. It also makes it easier to add features, such as the replacement prefix tracking in #254Regarding filtering using
filterText
, it seems not even VS Code had a solid idea on the difference betweenfilterText
andsortText
for a timeThe latest I could find is in that last issue, where they say [paraphrasing] "use sort text for no prefix" and "use filterText for when there's a prefix" (and they base on other things like match index). The source code also supports using
filterText
to sort as well when there's a prefix.