From 0fd2217bd216caa598417fe3b91041a01e132d31 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Sat, 27 Dec 2025 10:26:15 +0300 Subject: [PATCH] Trigger suggestions for property completions Adds logic to trigger the suggestion widget when completing a property if it expects a block or has value suggestions, improving the user experience in the config editor. --- www/config.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/config.html b/www/config.html index 05363c4c..f976702a 100644 --- a/www/config.html +++ b/www/config.html @@ -915,12 +915,14 @@ const innerIndent = indent + ' '; const insertText = wantsBlock ? `${key}:\n${innerIndent}` : `${key}: `; + const hasValueSuggestions = !wantsBlock && getValueSuggestions(s).length > 0; return { label: key, kind: monaco.languages.CompletionItemKind.Property, insertText, insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet, + command: (wantsBlock || hasValueSuggestions) ? {id: 'editor.action.triggerSuggest'} : undefined, documentation: s && s.description, range, };