Skip to content

Commit ad65180

Browse files
committed
Revert changes which may show invalid notification
1 parent eb63397 commit ad65180

File tree

1 file changed

+2
-7
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cloud-shell/src/main/kotlin/com/microsoft/azure/toolkit/intellij/cloudshell/actions

1 file changed

+2
-7
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cloud-shell/src/main/kotlin/com/microsoft/azure/toolkit/intellij/cloudshell/actions/UploadToCloudShellAction.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ class UploadToCloudShellAction : AnAction() {
4040
title = "Select File(s) To Upload To Azure Cloud Shell"
4141
}
4242
FileChooser.chooseFiles(descriptor, project, null, null, object : FileChooser.FileChooserConsumer {
43-
override fun consume(files: MutableList<VirtualFile>) {
44-
files.forEach { activeConnector.uploadFile(it.name, it) }
45-
val message = if (files.size > 1) String.format(
46-
"Selected %d files has been uploaded to Azure Cloud Shell",
47-
files.size
48-
) else String.format("'%s' has been uploaded to Azure Cloud Shell", files.get(0).name)
49-
AzureMessager.getMessager().info(message)
43+
override fun consume(files: MutableList<VirtualFile>) = files.forEach {
44+
activeConnector.uploadFile(it.name, it)
5045
}
5146

5247
override fun cancelled() {

0 commit comments

Comments
 (0)