Open svr2kos2 opened 1 month ago
Thank you, I can understand your code, but I think it is not a good idea to modify the matching logic directly. We should add some new implementation classes of CodePrompt
instead of modifying the existing class.
Could you please clarify your concern?
I don’t quite understand why we wouldn’t want to use a better matching method as the default.
I’m willing to make some commits to accommodate your point of view.
Please let me know if you have any additional considerations.
Sorry, I forget to reply this PR.
CodePrompt
is a pure abstract class, an interface, you can implement this to write your own matching logic. If you are going to add default implementation inside this class, I don't think it is a good idea.
There is one problem: when we type
sink
, the highlight result will beS
trin
gSink
. This issue only involves the highlight behavior, and there’s no problem with the autocomplete result. I believe this problem falls under the match quality area. Maybe we should solve it when implementing other features related to match quality, such as result sorting, syntax analysis, or providing interfaces to integrate with existing code analyzers.