don't show autocomplete if the only suggestion is exact match

This commit is contained in:
Gani Georgiev
2026-09-02 08:05:30 +03:00
parent 229240b374
commit d0b441bc24
7 changed files with 15 additions and 8 deletions
+8 -1
View File
@@ -222,7 +222,14 @@ window.app.components.codeEditor = function(propsArg = {}) {
});
}
if (!suggestions?.length) {
if (
!suggestions?.length
// don't show if the only suggestion is exact match
|| (
suggestions.length == 1
&& (suggestions[0].value || suggestions[0]) == match.word
)
) {
return;
}