mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
Revert "[http-client, microservices] IJPL-179625 ignoreSupPathContext for correct generation requests with query parameters"
This reverts commit c637114044d68ed1ad78ef796ac6a77e8acf4a79. GitOrigin-RevId: c2e9e3991bb16072725f78fe101c055e3e3d5ed2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
086e84afd4
commit
5621f8be9e
@@ -16,17 +16,11 @@ import org.jetbrains.uast.UExpression
|
||||
import org.jetbrains.uast.UReferenceExpression
|
||||
import org.jetbrains.uast.expressions.UInjectionHost
|
||||
|
||||
/**
|
||||
* if [ignoreSubPathContext] is true then [UrlPathReferenceInjector.defaultRootContextProvider] is used
|
||||
*/
|
||||
fun urlInlayHintProvider(
|
||||
injector: UrlPathReferenceInjector<UExpression>,
|
||||
ignoreSubPathContext: Boolean = false,
|
||||
): UastSemProvider<UrlPathInlayHintsProviderSemElement> {
|
||||
fun urlInlayHintProvider(injector: UrlPathReferenceInjector<UExpression>): UastSemProvider<UrlPathInlayHintsProviderSemElement> {
|
||||
return uastSemElementProvider(listOf(UInjectionHost::class.java, UReferenceExpression::class.java)) { uExpression, _ ->
|
||||
val context = forbidExpensiveUrlContext {
|
||||
val rootContext = injector.defaultRootContextProvider(uExpression)
|
||||
if (!ignoreSubPathContext) rootContext.subContext(injector.toUrlPath(uExpression))
|
||||
if (!injector.ignoreSubPathContext) rootContext.subContext(injector.toUrlPath(uExpression))
|
||||
else rootContext
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user