Skip to content

Commit a6673aa

Browse files
committed
updated open-user-guide and open-form-link combined to open-link
1 parent 8d2c440 commit a6673aa

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ class BrowserConnector(
5454
}
5555

5656
// some weird issue preventing deserialization from working
57-
"open-user-guide" -> {
58-
BrowserUtil.browse(node.get("userGuideLink").asText())
59-
}
60-
"open-form-link" -> {
57+
"open-link" -> {
6158
BrowserUtil.browse(node.get("link").asText())
6259
}
6360
"send-telemetry" -> {

plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/amazonqCommonsConnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export class Connector {
107107
this.sendMessageToExtension(createClickTelemetry(`amazonq-explore-${actionId}`))
108108

109109
this.sendMessageToExtension({
110-
command: 'open-user-guide',
111-
userGuideLink,
110+
command: 'open-link',
111+
link: userGuideLink,
112112
})
113113
}
114114
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ type MessageCommand =
6060
| 'codescan_open_issues'
6161
| 'generate-test'
6262
| 'start-test-gen'
63-
| 'open-user-guide'
64-
| 'open-form-link'
63+
| 'open-link'
6564
| 'send-telemetry'
6665
| 'doc_stop_generate'
6766
| 'updatePromptProgress'

plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ export class Connector {
133133
}
134134
}
135135

136-
onFormLinkClick = (link: string): void => {
136+
onLinkClick = (link: string): void => {
137137
this.sendMessageToExtension({
138-
command: 'open-form-link',
138+
command: 'open-link',
139139
link,
140140
})
141141
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ export const createMynahUI = (
681681
mouseEvent?.preventDefault()
682682
mouseEvent?.stopPropagation()
683683
mouseEvent?.stopImmediatePropagation()
684-
connector.onFormLinkClick(link)
684+
connector.onLinkClick(link)
685685
},
686686
onInfoLinkClick: (tabId: string, link: string, mouseEvent?: MouseEvent) => {
687687
mouseEvent?.preventDefault()

0 commit comments

Comments
 (0)