mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup: get rid of usages of deprecated ApplicationStarter.commandName property (IJPL-503)
Use 'commandNameFromExtension' which takes the value from the extension declaration instead. GitOrigin-RevId: 7758327840028c91703b55aed8f4f608f9c69836
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2c168b6899
commit
c4e3809ac5
+2
-4
@@ -20,6 +20,7 @@ import com.intellij.cce.workspace.ConfigFactory
|
||||
import com.intellij.cce.workspace.EvaluationWorkspace
|
||||
import com.intellij.openapi.application.ApplicationStarter
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.platform.ide.bootstrap.commandNameFromExtension
|
||||
import com.intellij.warmup.util.importOrOpenProject
|
||||
import java.nio.file.FileSystems
|
||||
import java.nio.file.Path
|
||||
@@ -32,9 +33,6 @@ internal class CompletionEvaluationStarter : ApplicationStarter {
|
||||
override val requiredModality: Int
|
||||
get() = ApplicationStarter.NOT_IN_EDT
|
||||
|
||||
override val commandName: String
|
||||
get() = "ml-evaluate"
|
||||
|
||||
override fun main(args: List<String>) {
|
||||
MainEvaluationCommand()
|
||||
.subcommands(
|
||||
@@ -90,7 +88,7 @@ internal class CompletionEvaluationStarter : ApplicationStarter {
|
||||
}
|
||||
}
|
||||
|
||||
inner class MainEvaluationCommand : EvaluationCommand(commandName, "Evaluate code completion quality in headless mode") {
|
||||
inner class MainEvaluationCommand : EvaluationCommand(commandNameFromExtension!!, "Evaluate code completion quality in headless mode") {
|
||||
override fun run() = Unit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user