[webSymbols] HTML: fix attribute name insert handler behaviour.

GitOrigin-RevId: 05db5b509fee358a5f3c74ebe9ea871b8ea4a19c
This commit is contained in:
Piotr Tomiak
2025-04-02 18:56:55 +00:00
committed by intellij-monorepo-bot
parent 1c92e0e46b
commit ddd4e6406c
@@ -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) {