From 7a47ea93ef4a1d28031476158de9df0a0183d7e5 Mon Sep 17 00:00:00 2001 From: Mikhail Pyltsin Date: Fri, 31 Oct 2025 18:34:38 +0100 Subject: [PATCH] [command-completion] IDEA-381534 Some fixes are unavailable after closed brackets (cherry picked from commit 35af82906d71920156cfb6a01c84e5d23f55feef) IJ-CR-180941 GitOrigin-RevId: 265c993a01490aab1e402c7ec355c21b8d63e212 --- .../command/commands/DirectIntentionCommandProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt b/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt index 512f6c02737b..4ac47fcc6494 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt @@ -241,7 +241,7 @@ internal class DirectIntentionCommandProvider : CommandProvider { val profileToUse = getInstance(psiFile.project).getCurrentProfile() val inspectionWrapper = InspectionProfileWrapper(profileToUse) val inspectionTools = getInspectionTools(inspectionWrapper, originalFile) - val lineRange = getLineRange(topLevelFile, currentOffset) + val lineRange = getLineRange(topLevelFile, topLevelCurrentOffset) val indicator = EmptyProgressIndicator() val inspectionResult = jobToIndicator(coroutineContext.job, indicator) { if (!isInjected) {