Skip to content

Commit 80cc6db

Browse files
committed
Merge 'public/master' into feature/q-region-expansion
2 parents b283ffc + 413ce4b commit 80cc6db

29 files changed

+122
-72
lines changed

package-lock.json

Lines changed: 12 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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: Update chat history icon"
4+
}
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: chat occasionally freezes and displays gray screen"
4+
}
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: Set owner-only permissions for chat history and saved prompt files"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q chat: Click export icon to save chat transcript in Markdown or HTML"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "SageMaker: Disable the unsupported agentic commands and welcome prompt"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q Chat: Add @Code context for PHP, Ruby, Scala, Shell, and Swift projects"
4+
}

packages/amazonq/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
"amazonQWorkspaceLspManifestMessage": {
128128
"type": "boolean",
129129
"default": false
130+
},
131+
"amazonQChatDisclaimer": {
132+
"type": "boolean",
133+
"default": false
130134
}
131135
},
132136
"additionalProperties": false
@@ -439,6 +443,7 @@
439443
},
440444
{
441445
"command": "aws.amazonq.generateUnitTests",
446+
"when": "!aws.isSageMaker",
442447
"group": "cw_chat@5"
443448
},
444449
{
@@ -474,6 +479,7 @@
474479
},
475480
{
476481
"command": "aws.amazonq.exploreAgents",
482+
"when": "!aws.isSageMaker",
477483
"group": "1_help@2"
478484
},
479485
{
@@ -528,7 +534,7 @@
528534
"command": "aws.amazonq.security.scan-statusbar",
529535
"title": "%AWS.command.amazonq.security.scan%",
530536
"category": "%AWS.amazonq.title%",
531-
"enablement": "aws.codewhisperer.connected"
537+
"enablement": "aws.codewhisperer.connected && !aws.isSageMaker"
532538
},
533539
{
534540
"command": "aws.amazonq.refactorCode",
@@ -558,7 +564,7 @@
558564
"command": "aws.amazonq.generateUnitTests",
559565
"title": "%AWS.command.amazonq.generateUnitTests%",
560566
"category": "%AWS.amazonq.title%",
561-
"enablement": "aws.codewhisperer.connected"
567+
"enablement": "aws.codewhisperer.connected && !aws.isSageMaker"
562568
},
563569
{
564570
"command": "aws.amazonq.reconnect",
@@ -768,7 +774,7 @@
768774
"command": "aws.amazonq.exploreAgents",
769775
"title": "%AWS.amazonq.exploreAgents%",
770776
"category": "%AWS.amazonq.title%",
771-
"enablement": "aws.codewhisperer.connected"
777+
"enablement": "aws.codewhisperer.connected && !aws.isSageMaker"
772778
},
773779
{
774780
"command": "aws.amazonq.walkthrough.show",

packages/amazonq/src/app/inline/sessionManager.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 { InlineCompletionItemWithReferences } from '@aws/language-server-runtimes-types/inlineCompletionWithReferences'
6+
import { InlineCompletionItemWithReferences } from '@aws/language-server-runtimes-types'
77

88
// TODO: add more needed data to the session interface
99
interface CodeWhispererSession {

packages/amazonq/src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
147147
// Hide the Amazon Q tree in toolkit explorer
148148
await setContext('aws.toolkit.amazonq.dismissed', true)
149149

150+
// set context var to check if its SageMaker AI or not
151+
await setContext('aws.isSageMaker', isSageMaker())
152+
150153
// set context var to check if its SageMaker Unified Studio or not
151154
await setContext('aws.isSageMakerUnifiedStudio', isSageMaker('SMUS'))
152155

0 commit comments

Comments
 (0)