mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[webSymbols] HTML: fix attribute name insert handler behaviour.
(cherry picked from commit 05db5b509fee358a5f3c74ebe9ea871b8ea4a19c) IJ-CR-159237 GitOrigin-RevId: acae00f0c3029f05a922904a8e5434e719acebb1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7ec6f2a4a7
commit
fcb46178f4
@@ -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