mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[grazie] LanguageDetectionInspection: cleanup
GitOrigin-RevId: 32e47d14b3949fbbcdf02dead934d4aaac907418
This commit is contained in:
committed by
intellij-monorepo-bot
parent
865397c360
commit
b90ff7bce9
@@ -20,9 +20,8 @@ import com.intellij.psi.PsiElementVisitor
|
||||
import com.intellij.psi.PsiWhiteSpace
|
||||
|
||||
internal class LanguageDetectionInspection : LocalInspectionTool() {
|
||||
companion object {
|
||||
private val key = KeyWithDefaultValue.create("language-detection-inspection-key", DetectionContext.Local())
|
||||
}
|
||||
|
||||
private val key get() = KeyWithDefaultValue.create("language-detection-inspection-key", DetectionContext.Local())
|
||||
|
||||
override fun inspectionStarted(session: LocalInspectionToolSession, isOnTheFly: Boolean) {
|
||||
session.getUserData(key)!!.clear()
|
||||
|
||||
Reference in New Issue
Block a user