Skip to content

Commit

Permalink
fix: should set isIndeterminate to false if fraction exist #137
Browse files Browse the repository at this point in the history
  • Loading branch information
jialiu-github committed Apr 7, 2024
1 parent 5f139d9 commit 91f1875
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -32,7 +32,7 @@ abstract class BaseCompletionTask(private val request: CodeCompletionRequest) :
open fun keepHistory(): Boolean = true

override fun run(indicator: ProgressIndicator) {
indicator.isIndeterminate = true
indicator.isIndeterminate = false
indicator.fraction = 0.1
indicator.text = AutoDevBundle.message("intentions.chat.code.test.step.prepare-context")

Expand All @@ -57,7 +57,7 @@ abstract class BaseCompletionTask(private val request: CodeCompletionRequest) :
val project = request.project
var currentOffset = request.offset

indicator.isIndeterminate = true
indicator.isIndeterminate = false
indicator.fraction = 0.5
indicator.text = AutoDevBundle.message("intentions.request.background.process.title")

Expand Down

0 comments on commit 91f1875

Please sign in to comment.