mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[webSymbols] HTML: fix attribute name insert handler behaviour.
GitOrigin-RevId: 05db5b509fee358a5f3c74ebe9ea871b8ea4a19c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1c92e0e46b
commit
ddd4e6406c
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user