default scripting support: remove notifications after script definitions update
This commit is contained in:
+11
-4
@@ -342,6 +342,17 @@ class DefaultScriptingSupport(manager: CompositeScriptConfigurationManager) : De
|
|||||||
LoadScriptConfigurationNotificationFactory.hideNotification(file, project)
|
LoadScriptConfigurationNotificationFactory.hideNotification(file, project)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun updateScriptDefinitionsReferences() {
|
||||||
|
// remove notification for all files
|
||||||
|
cache.allApplied().forEach { (file, _) ->
|
||||||
|
saveReports(file, listOf())
|
||||||
|
file.removeScriptDependenciesNotificationPanel(project)
|
||||||
|
LoadScriptConfigurationNotificationFactory.hideNotification(file, project)
|
||||||
|
}
|
||||||
|
|
||||||
|
cache.clear()
|
||||||
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun getInstance(project: Project) =
|
fun getInstance(project: Project) =
|
||||||
(ScriptConfigurationManager.getInstance(project) as CompositeScriptConfigurationManager).default
|
(ScriptConfigurationManager.getInstance(project) as CompositeScriptConfigurationManager).default
|
||||||
@@ -509,10 +520,6 @@ abstract class DefaultScriptingSupportBase(val manager: CompositeScriptConfigura
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateScriptDefinitionsReferences() {
|
|
||||||
cache.clear()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun collectConfigurations(builder: ScriptClassRootsBuilder) {
|
fun collectConfigurations(builder: ScriptClassRootsBuilder) {
|
||||||
// todo: drop the hell below
|
// todo: drop the hell below
|
||||||
// keep this one only:
|
// keep this one only:
|
||||||
|
|||||||
Reference in New Issue
Block a user