Skip to content

Commit 7b8eaff

Browse files
committed
refactor(database): rename AutoSqlTask to AutoSqlBackgroundTask
This commit renames the `AutoSqlTask` class to `AutoSqlBackgroundTask` in order to provide a more descriptive name that accurately reflects its purpose. This change improves code readability and maintainability.
1 parent ea7bb9b commit 7b8eaff

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

exts/database/src/main/kotlin/cc/unitmesh/database/actions/AutoSqlAction.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cc.unitmesh.database.actions
33
import cc.unitmesh.database.DbContextActionProvider
44
import cc.unitmesh.database.flow.AutoSqlContext
55
import cc.unitmesh.database.flow.AutoSqlFlow
6-
import cc.unitmesh.database.flow.AutoSqlTask
6+
import cc.unitmesh.database.flow.AutoSqlBackgroundTask
77
import cc.unitmesh.devti.AutoDevBundle
88
import cc.unitmesh.devti.gui.sendToChatPanel
99
import cc.unitmesh.devti.intentions.action.base.ChatBaseIntention
@@ -60,7 +60,7 @@ class AutoSqlAction : ChatBaseIntention() {
6060
val llmProvider = LlmFactory().create(project)
6161
val prompter = AutoSqlFlow(genSqlContext, actions, contentPanel, llmProvider)
6262

63-
val task = AutoSqlTask(project, prompter, editor)
63+
val task = AutoSqlBackgroundTask(project, prompter, editor)
6464
ProgressManager.getInstance()
6565
.runProcessWithProgressAsynchronously(task, BackgroundableProcessIndicator(task))
6666
}

exts/database/src/main/kotlin/cc/unitmesh/database/flow/AutoSqlTask.kt renamed to exts/database/src/main/kotlin/cc/unitmesh/database/flow/AutoSqlBackgroundTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import com.intellij.openapi.progress.ProgressIndicator
99
import com.intellij.openapi.progress.Task
1010
import com.intellij.openapi.project.Project
1111

12-
class AutoSqlTask(
12+
class AutoSqlBackgroundTask(
1313
private val project: Project,
1414
private val flow: AutoSqlFlow,
1515
private val editor: Editor
1616
) : Task.Backgroundable(project, "Gen SQL", true) {
17-
private val logger = logger<AutoSqlTask>()
17+
private val logger = logger<AutoSqlBackgroundTask>()
1818

1919
override fun run(indicator: ProgressIndicator) {
2020
indicator.fraction = 0.2

gradle-233.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ goPlugin=org.jetbrains.plugins.go:233.11799.196
2323

2424
# android
2525
# https://plugins.jetbrains.com/plugin/22989-android
26-
# https://plugins.jetbrains.com/docs/intellij/android-studio.html#configuring-the-plugin-pluginxml-file
27-
# com.intellij.modules.androidstudio:231.9392.1.2311.11330709
2826
androidPlugin=org.jetbrains.android:233.11799.196

0 commit comments

Comments
 (0)