From ddd4e6406c94497e0bfa265dd9fcc1bd809da82d Mon Sep 17 00:00:00 2001 From: Piotr Tomiak Date: Wed, 2 Apr 2025 16:32:42 +0200 Subject: [PATCH] [webSymbols] HTML: fix attribute name insert handler behaviour. GitOrigin-RevId: 05db5b509fee358a5f3c74ebe9ea871b8ea4a19c --- .../attributes/WebSymbolAttributeNameCompletionProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/impl/src/com/intellij/html/webSymbols/attributes/WebSymbolAttributeNameCompletionProvider.kt b/xml/impl/src/com/intellij/html/webSymbols/attributes/WebSymbolAttributeNameCompletionProvider.kt index a1d5e3f926a8..e1389c06ac09 100644 --- a/xml/impl/src/com/intellij/html/webSymbols/attributes/WebSymbolAttributeNameCompletionProvider.kt +++ b/xml/impl/src/com/intellij/html/webSymbols/attributes/WebSymbolAttributeNameCompletionProvider.kt @@ -74,9 +74,9 @@ class WebSymbolAttributeNameCompletionProvider : WebSymbolsCompletionProviderBas queryExecutor.allowResolve) // TODO Fix pointer dereference and use it here val fullName = name.substring(0, item.offset) + item.name - val match = freshRegistry.runNameMatchQuery(NAMESPACE_HTML, KIND_HTML_ATTRIBUTES, fullName) - .asSingleSymbol() ?: return@withInsertHandlerAdded val info = XmlTagInsertHandler.runWithTimeoutOrNull { + val match = freshRegistry.runNameMatchQuery(NAMESPACE_HTML, KIND_HTML_ATTRIBUTES, fullName) + .asSingleSymbol() ?: return@runWithTimeoutOrNull null WebSymbolHtmlAttributeInfo.create(fullName, freshRegistry, match, insertionContext.file) } if (info != null && info.acceptsValue && !info.acceptsNoValue) {