-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run inspections after completion of general highlight pass in 201
#KT-37553 Fixed (cherry picked from commit e1ae81e)
- Loading branch information
1 parent
52cb5bf
commit 5519806
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
package org.jetbrains.kotlin.idea | ||
|
||
import com.intellij.openapi.project.Project | ||
|
||
// BUNCH: 193 | ||
fun runActivity(project: Project) { | ||
// nothing for 193 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
package org.jetbrains.kotlin.idea | ||
|
||
import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl | ||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.kotlin.idea.util.runWhenSmart | ||
|
||
// BUNCH: 201 | ||
|
||
fun runActivity(project: Project) { | ||
project.runWhenSmart { | ||
val daemonCodeAnalyzer = DaemonCodeAnalyzerImpl.getInstanceEx(project) as DaemonCodeAnalyzerImpl | ||
daemonCodeAnalyzer.runLocalInspectionPassAfterCompletionOfGeneralHighlightPass(true) | ||
} | ||
} |