FIR IDE: do not recreate analysis session for tests now
This commit is contained in:
-4
@@ -27,10 +27,6 @@ class KtFirAnalysisSessionProvider(project: Project) : KtAnalysisSessionProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getAnalysisSessionFor(contextElement: KtElement): KtAnalysisSession {
|
override fun getAnalysisSessionFor(contextElement: KtElement): KtAnalysisSession {
|
||||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
return KtFirAnalysisSession.createForElement(contextElement)
|
|
||||||
}
|
|
||||||
return analysisSessionByModuleInfoCache.value.getOrPut(contextElement.getModuleInfo()) {
|
return analysisSessionByModuleInfoCache.value.getOrPut(contextElement.getModuleInfo()) {
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
KtFirAnalysisSession.createForElement(contextElement)
|
KtFirAnalysisSession.createForElement(contextElement)
|
||||||
|
|||||||
Reference in New Issue
Block a user