Introduce index for folders with script definitions templates

Replace it with nonBlockingReadAction meaning that if update was canceled then loading will be restarted after all write events happen
Also scanning is now started after indexing

^KT-36378 Fixed
^KT-34138 Fixed
^KT-37863 Fixed
This commit is contained in:
Natalia Selezneva
2020-02-12 14:19:20 +03:00
parent 839e4ecff2
commit 942c8aaafc
5 changed files with 262 additions and 244 deletions
@@ -9,5 +9,6 @@
<projectService serviceImplementation="org.jetbrains.kotlin.idea.core.script.configuration.utils.ScriptClassRootsStorage"/>
<trafficLightRendererContributor implementation="org.jetbrains.kotlin.idea.core.script.ScriptTrafficLightRendererContributor"/>
<fileBasedIndex implementation="org.jetbrains.kotlin.idea.script.ScriptTemplatesClassRootsIndex"/>
</extensions>
</idea-plugin>