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

(cherry picked from commit 05db5b509fee358a5f3c74ebe9ea871b8ea4a19c)

IJ-CR-159237

GitOrigin-RevId: acae00f0c3029f05a922904a8e5434e719acebb1
This commit is contained in:
Piotr Tomiak
2025-04-02 16:32:42 +02:00
committed by intellij-monorepo-bot
parent 7ec6f2a4a7
commit fcb46178f4

View File

@@ -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) {