Skip to content

Commit

Permalink
fix find path
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Nov 12, 2024
1 parent 6495289 commit 0b6654f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ data class BuildData(
val ideaSDKVersion: String,
val sinceBuild: String,
val untilBuild: String,
val archiveName: String = "IntelliJ-SumnekoLua",
val archiveName: String = "IntelliJ-EmmyLua2",
val jvmTarget: String = "17",
val targetCompatibilityLevel: JavaVersion = JavaVersion.VERSION_17,
// https://github.com/JetBrains/gradle-intellij-plugin/issues/403#issuecomment-542890849
val instrumentCodeCompilerVersion: String = ideaSDKVersion,
val type: String = "IU"
val type: String = "IC"
)

val buildDataList = listOf(
BuildData(
ideaSDKShortVersion = "242",
ideaSDKVersion = "2024.2",
sinceBuild = "232",
untilBuild = "242.*",
untilBuild = "243.*",
)
)

Expand Down Expand Up @@ -145,7 +145,7 @@ intellij {

type.set(buildVersionData.type) // Target IDE Platform
sandboxDir.set("${project.buildDir}/${buildVersionData.ideaSDKShortVersion}/idea-sandbox")
plugins.set(listOf("com.redhat.devtools.lsp4ij:0.4.0"))
plugins.set(listOf("com.redhat.devtools.lsp4ij:0.5.0"))
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tang/intellij/lua/psi/LuaFileUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object LuaFileUtil {
else {
val extensions = LuaFileManager.extensions
for (extension in extensions) {
val fileName = if (extension.isEmpty()) fixedShortUrl else "$fixedShortUrl.$extension"
val fileName = if (extension.isEmpty()) fixedShortUrl else "$fixedShortUrl$extension"
val virtualFile = VfsUtil.findRelativeFile(fileName, project.baseDir)
if (virtualFile != null && virtualFile.exists()) {
return virtualFile
Expand Down

0 comments on commit 0b6654f

Please sign in to comment.