Skip to content

Commit d9e991e

Browse files
amaembointellij-monorepo-bot
authored andcommitted
IJPL-214795 [java-completion] ModNavigator: provide PsiFile and Project; simplify use-sites
GitOrigin-RevId: b07de3da4844f53e0d0fc97198555dc760c153d5
1 parent e8fa97a commit d9e991e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

features-impl/kotlin/src/com/jetbrains/ls/api/features/impl/common/kotlin/diagnostics/intentions/LSKotlinIntentionCodeActionProviderImpl.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.intellij.openapi.diagnostic.fileLogger
99
import com.intellij.openapi.diagnostic.getOrHandleException
1010
import com.intellij.openapi.editor.Document
1111
import com.intellij.openapi.editor.colors.TextAttributesKey
12+
import com.intellij.openapi.project.Project
1213
import com.intellij.openapi.util.NlsContexts
1314
import com.intellij.openapi.util.TextRange
1415
import com.intellij.openapi.vfs.findDocument
@@ -243,4 +244,12 @@ private class FakeModPsiUpdater(
243244
override fun getDocument(): Document {
244245
return psiElement.containingFile.fileDocument
245246
}
247+
248+
override fun getPsiFile(): PsiFile {
249+
return psiElement.containingFile
250+
}
251+
252+
override fun getProject(): Project {
253+
return psiElement.project
254+
}
246255
}

0 commit comments

Comments
 (0)