From bedc50e9d8959419aa43fef4c22e387a41f71d0a Mon Sep 17 00:00:00 2001
From: Waleed Yaseen <walied.developer@hotmail.com>
Date: Wed, 9 Oct 2024 14:07:02 +0300
Subject: [PATCH] Fix project opening not working as expected in IntelliJ 2023
 builds

---
 CHANGELOG.md                                                  | 4 ++++
 .../plugin/ide/neptune/NeptuneOpenProjectProvider.kt          | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1cc2073..b6f89ae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
 
 ## [Unreleased]
 
+### Fixed
+
+- Fix project opening not working as expected in IntelliJ 2023 builds.
+
 ## [1.6.0] - 2024-08-30
 
 ### Added
diff --git a/src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneOpenProjectProvider.kt b/src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneOpenProjectProvider.kt
index 7ead7df..3618418 100644
--- a/src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneOpenProjectProvider.kt
+++ b/src/main/kotlin/io/runescript/plugin/ide/neptune/NeptuneOpenProjectProvider.kt
@@ -13,7 +13,7 @@ object NeptuneOpenProjectProvider : AbstractOpenProjectProvider() {
         return file.isNeptuneBuildFile
     }
 
-    override suspend fun linkToExistingProjectAsync(projectFile: VirtualFile, project: Project) {
+    override fun linkToExistingProject(projectFile: VirtualFile, project: Project) {
         val projectRoot = if (projectFile.isDirectory) projectFile else projectFile.parent
 
         val settings = NeptuneProjectSettings()