Skip to content

Commit f126a56

Browse files
authored
fix(amazonq): code-block styling #4253
Problem: With the new version of VSCode, they've implemented a global styling for code blocks to give background color to the texts inside them which also effects the code blocks in the Q Chat too. Solution: MynahUI 3.3.2 adds code block background color as inherited from parent. * update mynah ui version * rename mynah-ui version to its true name
1 parent 4f4eb98 commit f126a56

File tree

19 files changed

+33
-41
lines changed

19 files changed

+33
-41
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q Chat: Fixed code block text background"
4+
}

package-lock.json

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4348,7 +4348,7 @@
43484348
"@aws-sdk/property-provider": "3.46.0",
43494349
"@aws-sdk/smithy-client": "^3.46.0",
43504350
"@aws-sdk/util-arn-parser": "^3.46.0",
4351-
"@aws/mynah-ui-chat": "npm:@aws/[email protected]",
4351+
"@aws/mynah-ui": "3.3.3",
43524352
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
43534353
"@iarna/toml": "^2.2.5",
43544354
"@smithy/shared-ini-file-loader": "^2.2.8",

src/amazonq/webview/ui/apps/amazonqCommonsConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp } from '@aws/mynah-ui-chat'
6+
import { ChatItemFollowUp } from '@aws/mynah-ui'
77
import { ExtensionMessage } from '../commands'
88
import { AuthFollowUpType } from '../followUps/generator'
99

src/amazonq/webview/ui/apps/cwChatConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui'
77
import { ExtensionMessage } from '../commands'
88
import { CodeReference } from './amazonqCommonsConnector'
99
import { TabOpenType, TabsStorage } from '../storages/tabsStorage'

src/amazonq/webview/ui/apps/featureDevChatConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui'
77
import { ExtensionMessage } from '../commands'
88
import { TabType, TabsStorage } from '../storages/tabsStorage'
99
import { CodeReference } from './amazonqCommonsConnector'

src/amazonq/webview/ui/connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, FeedbackPayload, Engagement } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemFollowUp, FeedbackPayload, Engagement } from '@aws/mynah-ui'
77
import { Connector as CWChatConnector } from './apps/cwChatConnector'
88
import { Connector as FeatureDevChatConnector } from './apps/featureDevChatConnector'
99
import { Connector as AmazonQCommonsConnector } from './apps/amazonqCommonsConnector'

src/amazonq/webview/ui/followUps/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { MynahIcons } from '@aws/mynah-ui-chat'
6+
import { MynahIcons } from '@aws/mynah-ui'
77
import { TabType } from '../storages/tabsStorage'
88
import { FollowUpsBlock } from './model'
99

src/amazonq/webview/ui/followUps/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp, ChatItemType, MynahUI } from '@aws/mynah-ui-chat'
6+
import { ChatItemFollowUp, ChatItemType, MynahUI } from '@aws/mynah-ui'
77
import { Connector } from '../connector'
88
import { TabsStorage } from '../storages/tabsStorage'
99
import { WelcomeFollowupType } from '../apps/amazonqCommonsConnector'

src/amazonq/webview/ui/followUps/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp } from '@aws/mynah-ui-chat'
6+
import { ChatItemFollowUp } from '@aws/mynah-ui'
77

88
export interface FollowUpsBlock {
99
text?: string

0 commit comments

Comments
 (0)