Skip to content

Commit

Permalink
Add background progress for downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Nov 21, 2024
1 parent 4e1b428 commit 64d7219
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import com.intellij.openapi.diagnostic.debug
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.diagnostic.trace
import com.intellij.openapi.project.Project
import com.intellij.platform.ide.progress.withBackgroundProgress
import com.jetbrains.rd.util.lifetime.Lifetime
import com.jetbrains.rider.azure.model.AzureFunctionWorkerModel
import com.jetbrains.rider.azure.model.AzureFunctionWorkerModelRequest
Expand Down Expand Up @@ -75,9 +76,11 @@ class FunctionRunExecutorFactory(
}

val functionCoreToolsPath = withContext(Dispatchers.Default) {
FunctionCoreToolsManager
.getInstance()
.getFunctionCoreToolsPathOrDownloadForVersion(azureFunctionsRuntimeVersion)
withBackgroundProgress(project, "Getting Azure Functions core tools") {
FunctionCoreToolsManager
.getInstance()
.getFunctionCoreToolsPathOrDownloadForVersion(azureFunctionsRuntimeVersion)
}
}
if (functionCoreToolsPath == null) {
LOG.warn("Unable to find or download Function core tools for the project '${parameters.projectFilePath}'")
Expand Down

0 comments on commit 64d7219

Please sign in to comment.