From 1d57188894d888f4622d26f4b71220109da1bf5a Mon Sep 17 00:00:00 2001 From: Piotr Tomiak Date: Thu, 14 Mar 2024 09:57:47 +0100 Subject: [PATCH] WEB-63850 TS: properly handle strictNullChecks setting - fix Web Symbols and Vue GitOrigin-RevId: 53a97ce80fdf7368d93bd9958940259eea57713b --- .../attributes/WebSymbolHtmlAttributeValueTypeSupport.kt | 2 -- .../attributes/impl/WebSymbolHtmlAttributeInfoImpl.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/WebSymbolHtmlAttributeValueTypeSupport.kt b/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/WebSymbolHtmlAttributeValueTypeSupport.kt index fc553ee7e5ed..7d202cb46294 100644 --- a/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/WebSymbolHtmlAttributeValueTypeSupport.kt +++ b/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/WebSymbolHtmlAttributeValueTypeSupport.kt @@ -8,8 +8,6 @@ import com.intellij.webSymbols.completion.WebSymbolCodeCompletionItem interface WebSymbolHtmlAttributeValueTypeSupport : WebSymbolTypeSupport { - fun resolve(symbol: WebSymbol, type: Any?): Any? - /** * @return [ThreeState.YES] if the type is equal to boolean ignoring null or undefined values, * [ThreeState.UNSURE] if the boolean is assignable to the type and diff --git a/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/impl/WebSymbolHtmlAttributeInfoImpl.kt b/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/impl/WebSymbolHtmlAttributeInfoImpl.kt index f47359fc3a00..848ed230e20d 100644 --- a/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/impl/WebSymbolHtmlAttributeInfoImpl.kt +++ b/xml/xml-psi-impl/src/com/intellij/html/webSymbols/attributes/impl/WebSymbolHtmlAttributeInfoImpl.kt @@ -50,7 +50,7 @@ internal data class WebSymbolHtmlAttributeInfoImpl( WebSymbolHtmlAttributeValue.Type.SYMBOL -> null WebSymbolHtmlAttributeValue.Type.OF_MATCH -> symbol.type WebSymbolHtmlAttributeValue.Type.COMPLEX -> attrValue?.langType - }?.let { typeSupport.resolve(symbol, it) } + } else null val isHtmlBoolean = if (kind == WebSymbolHtmlAttributeValue.Kind.PLAIN)