Skip to content

Commit 1ffdd70

Browse files
committed
Add notification
1 parent cf286b5 commit 1ffdd70

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/DiskCache.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import software.aws.toolkits.core.utils.tryDirOp
3434
import software.aws.toolkits.core.utils.tryFileOp
3535
import software.aws.toolkits.core.utils.tryOrNull
3636
import software.aws.toolkits.core.utils.warn
37+
import software.aws.toolkits.jetbrains.utils.notifyInfo
38+
import software.aws.toolkits.resources.AwsCoreBundle.message
3739
import software.aws.toolkits.telemetry.AuthTelemetry
3840
import software.aws.toolkits.telemetry.Result
3941
import java.io.ByteArrayInputStream
@@ -308,6 +310,10 @@ class DiskCache(
308310
if (e.message?.contains("No space left on device") == true) {
309311
LOG.warn { "Disk space full. Storing credentials in memory for this session" }
310312
storeInMemory(path, consumer)
313+
notifyInfo(
314+
title = message("disk.full.notification.title"),
315+
content = message("disk.full.notification.body")
316+
)
311317
}
312318
}
313319
}

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,8 @@ developerTool.toolWindow.help.github=Connect with us on GitHub
10211021
developerTool.toolWindow.title=Developer Tools
10221022
developerTool.toolWindow.welcome.connect=Connect to an account to get started:
10231023
developerTool.toolWindow.welcome.creds.about=You can connect to and switch between\naccounts at any time in the toolkit.
1024+
disk.full.notification.title=Disk Full: Credentials Not Saved
1025+
disk.full.notification.body=Your disk is full. Credentials could not be saved and will only last for this session.
10241026
docker.not.found=Docker not found
10251027
dockerfile.building=Building Dockerfile: {0}
10261028
dockerfile.label=Dockerfile:

0 commit comments

Comments
 (0)