File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/kotlin/io/runescript/plugin/ide/neptune Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
package io.runescript.plugin.ide.neptune
2
2
3
+ import ai.grazie.utils.emptyLinkedSet
3
4
import com.intellij.openapi.components.service
4
5
import com.intellij.openapi.externalSystem.ExternalSystemAutoImportAware
5
6
import com.intellij.openapi.project.Project
@@ -21,9 +22,9 @@ class NeptuneAutoImportAware : ExternalSystemAutoImportAware {
21
22
return file.parent
22
23
}
23
24
24
- override fun getAffectedExternalProjectFiles (projectPath : String , project : Project ): MutableList <File >? {
25
+ override fun getAffectedExternalProjectFiles (projectPath : String , project : Project ): MutableList <File > {
25
26
val settings = project.service<NeptuneSettings >()
26
- val projectSettings = settings.getLinkedProjectSettings(projectPath) ? : return null
27
+ val projectSettings = settings.getLinkedProjectSettings(projectPath) ? : return mutableListOf ()
27
28
val neptuneToml = File (projectSettings.externalProjectPath, " neptune.toml" )
28
29
return Collections .singletonList(neptuneToml)
29
30
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class NeptuneManager :
72
72
return autoImport.getAffectedExternalProjectPath(changedFileOrDirPath, project)
73
73
}
74
74
75
- override fun getAffectedExternalProjectFiles (projectPath : String , project : Project ): MutableList <File >? {
75
+ override fun getAffectedExternalProjectFiles (projectPath : String , project : Project ): MutableList <File > {
76
76
return autoImport.getAffectedExternalProjectFiles(projectPath, project)
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments