Skip to content

Commit da1a808

Browse files
committed
Fix compatability issue with 2025 api
1 parent 1458792 commit da1a808

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneAutoImportAware.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.runescript.plugin.ide.neptune
22

3+
import ai.grazie.utils.emptyLinkedSet
34
import com.intellij.openapi.components.service
45
import com.intellij.openapi.externalSystem.ExternalSystemAutoImportAware
56
import com.intellij.openapi.project.Project
@@ -21,9 +22,9 @@ class NeptuneAutoImportAware : ExternalSystemAutoImportAware {
2122
return file.parent
2223
}
2324

24-
override fun getAffectedExternalProjectFiles(projectPath: String, project: Project): MutableList<File>? {
25+
override fun getAffectedExternalProjectFiles(projectPath: String, project: Project): MutableList<File> {
2526
val settings = project.service<NeptuneSettings>()
26-
val projectSettings = settings.getLinkedProjectSettings(projectPath) ?: return null
27+
val projectSettings = settings.getLinkedProjectSettings(projectPath) ?: return mutableListOf()
2728
val neptuneToml = File(projectSettings.externalProjectPath, "neptune.toml")
2829
return Collections.singletonList(neptuneToml)
2930
}

src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class NeptuneManager :
7272
return autoImport.getAffectedExternalProjectPath(changedFileOrDirPath, project)
7373
}
7474

75-
override fun getAffectedExternalProjectFiles(projectPath: String, project: Project): MutableList<File>? {
75+
override fun getAffectedExternalProjectFiles(projectPath: String, project: Project): MutableList<File> {
7676
return autoImport.getAffectedExternalProjectFiles(projectPath, project)
7777
}
7878

0 commit comments

Comments
 (0)