Skip to content

Commit d98f436

Browse files
authored
fix(cloudformation): modify notification popup title and actions (#6313)
1 parent a68a066 commit d98f436

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,10 @@ cloudformation.lsp.error.no_compatible_version=No compatible CloudFormation LSP
581581
cloudformation.lsp.error.node_not_found=Node.js not found. Install or configure Node.js for CloudFormation Language Server.
582582
cloudformation.lsp.error.title=CloudFormation Language Server
583583
cloudformation.lsp.intro.prompt.action.dont_show=Don't show again
584-
cloudformation.lsp.intro.prompt.action.explore=Explore CloudFormation
585-
cloudformation.lsp.intro.prompt.message=Author templates with hover, code completion, and cfn-lint support, validate and deploy templates to stacks, and view stack information such as events and resources
586-
cloudformation.lsp.intro.prompt.title=Introducing the new CloudFormation Panel
584+
cloudformation.lsp.intro.prompt.action.explore=Open CloudFormation Panel
585+
cloudformation.lsp.intro.prompt.action.learn_more=Learn more
586+
cloudformation.lsp.intro.prompt.message=Author templates with hover, code completion, and diagnostic support, validate and deploy templates to stacks, and view stack information such as events and resources
587+
cloudformation.lsp.intro.prompt.title=Introducing CloudFormation Language Server
587588
cloudformation.lsp.stack.view=CloudFormation Stack
588589
cloudformation.missing_property=Property {0} not found in {1}
589590
cloudformation.settings.cfnguard.enable=Enable CloudFormation Guard validation

plugins/toolkit/jetbrains-core/src-253+/software/aws/toolkits/jetbrains/services/cfnlsp/CfnLspIntroPrompter.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package software.aws.toolkits.jetbrains.services.cfnlsp
55

6+
import com.intellij.ide.BrowserUtil
67
import com.intellij.notification.Notification
78
import com.intellij.notification.NotificationAction
89
import com.intellij.notification.NotificationType
@@ -12,6 +13,8 @@ import com.intellij.openapi.startup.ProjectActivity
1213
import software.aws.toolkits.jetbrains.core.explorer.AwsToolkitExplorerToolWindow
1314
import software.aws.toolkits.resources.AwsToolkitBundle.message
1415

16+
private const val LANGUAGE_SERVER_DOCS_URL = "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/ide-extension.html"
17+
1518
internal class CfnLspIntroPrompter : ProjectActivity {
1619
override suspend fun execute(project: Project) {
1720
if (CfnLspIntroPromptState.getInstance().hasResponded()) return
@@ -35,6 +38,12 @@ internal class CfnLspIntroPrompter : ProjectActivity {
3538
}
3639
})
3740

41+
notification.addAction(object : NotificationAction(message("cloudformation.lsp.intro.prompt.action.learn_more")) {
42+
override fun actionPerformed(e: AnActionEvent, notification: Notification) {
43+
BrowserUtil.browse(LANGUAGE_SERVER_DOCS_URL)
44+
}
45+
})
46+
3847
notification.addAction(object : NotificationAction(message("cloudformation.lsp.intro.prompt.action.dont_show")) {
3948
override fun actionPerformed(e: AnActionEvent, notification: Notification) {
4049
applyChoice()

0 commit comments

Comments
 (0)