ruki 7 kuukautta sitten
vanhempi
commit
b148b1c877

+ 3 - 3
src/main/kotlin/io/xmake/actions/UpdateCompileCommandsAction.kt

@@ -34,7 +34,7 @@ class UpdateCompileCommandsAction : AnAction() {
 
                             SystemUtils.runvInConsole(
                                 project,
-                                xmakeConfiguration.updateCompileCommansLine,
+                                xmakeConfiguration.updateCompileCommandsLine,
                                 false,
                                 true,
                                 true
@@ -55,7 +55,7 @@ class UpdateCompileCommandsAction : AnAction() {
                     })
                 xmakeConfiguration.changed = false
             } else {
-                SystemUtils.runvInConsole(project, xmakeConfiguration.updateCompileCommansLine, false, true, true)
+                SystemUtils.runvInConsole(project, xmakeConfiguration.updateCompileCommandsLine, false, true, true)
                     ?.addProcessListener(
                         object : ProcessAdapter() {
                             override fun processTerminated(e: ProcessEvent) {
@@ -75,4 +75,4 @@ class UpdateCompileCommandsAction : AnAction() {
                 .notify(project)
         }
     }
-}
+}

+ 1 - 1
src/main/kotlin/io/xmake/shared/XMakeConfiguration.kt

@@ -131,7 +131,7 @@ class XMakeConfiguration(val project: Project) {
     val updateCmakeListsCommandLine: GeneralCommandLine
         get() = makeCommandLine(mutableListOf("project", "-k", "cmake", "-y"))
 
-    val updateCompileCommansLine: GeneralCommandLine
+    val updateCompileCommandsLine: GeneralCommandLine
         get() = makeCommandLine(mutableListOf("project", "-k", "compile_commands"))