Skip to content

Commit 27cf915

Browse files
committed
merge
2 parents 8194371 + 4606f5e commit 27cf915

File tree

80 files changed

+2092
-1480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2092
-1480
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ Example:
439439
"supportedVersions": "4.0.0",
440440
"id": "AmazonQ",
441441
"path": "/custom/path/to/local/lsp/folder",
442+
"ui": "/custom/path/to/chat-client/ui"
442443
}
443444
```
444445

@@ -503,11 +504,12 @@ Unlike the user setting overrides, not all of these environment variables have t
503504
- `__AMAZONQLSP_MANIFEST_URL`: for aws.dev.amazonqLsp.manifestUrl
504505
- `__AMAZONQLSP_SUPPORTED_VERSIONS`: for aws.dev.amazonqLsp.supportedVersions
505506
- `__AMAZONQLSP_ID`: for aws.dev.amazonqLsp.id
506-
- `__AMAZONQLSP_PATH`: for aws.dev.amazonqWorkspaceLsp.locationOverride
507+
- `__AMAZONQLSP_PATH`: for aws.dev.amazonqLsp.path
508+
- `__AMAZONQLSP_UI`: for aws.dev.amazonqLsp.ui
507509
- `__AMAZONQWORKSPACELSP_MANIFEST_URL`: for aws.dev.amazonqWorkspaceLsp.manifestUrl
508510
- `__AMAZONQWORKSPACELSP_SUPPORTED_VERSIONS`: for aws.dev.amazonqWorkspaceLsp.supportedVersions
509511
- `__AMAZONQWORKSPACELSP_ID`: for aws.dev.amazonqWorkspaceLsp.id
510-
- `__AMAZONQWORKSPACELSP_PATH`: for aws.dev.amazonqWorkspaceLsp.locationOverride
512+
- `__AMAZONQWORKSPACELSP_PATH`: for aws.dev.amazonqWorkspaceLsp.path
511513

512514
#### Lambda
513515

docs/lsp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ sequenceDiagram
5454
}
5555
```
5656
4. Uncomment the `__AMAZONQLSP_PATH` variable in `amazonq/.vscode/launch.json` Extension configuration
57+
1. Uncomment the `__AMAZONQLSP_UI` variable in `amazonq/.vscode/launch.json` Extension configuration if you want to debug the flare chat-client as well
5758
5. Use the `Launch LSP with Debugging` configuration and set breakpoints in VSCode or the language server
5859
5960
## Amazon Q Inline Activation

package-lock.json

Lines changed: 30 additions & 6 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
@@ -33,7 +33,7 @@
3333
"newChange": "echo 'Must specify subproject/workspace with -w packages/<subproject>' && false",
3434
"createRelease": "echo 'Must specify subproject/workspace with -w packages/<subproject>' && false",
3535
"lint": "npm run lint -w packages/ --if-present",
36-
"lintfix": "eslint -c .eslintrc.js --ignore-path .gitignore --ignore-pattern '**/*.json' --ignore-pattern '**/*.gen.ts' --ignore-pattern '**/types/*.d.ts' --ignore-pattern '**/src/testFixtures/**' --ignore-pattern '**/resources/js/graphStateMachine.js' --fix --ext .ts packages plugins",
36+
"lintfix": "eslint -c .eslintrc.js --ignore-path .gitignore --ignore-pattern '**/*.json' --ignore-pattern '**/*.gen.ts' --ignore-pattern '**/types/*.d.ts' --ignore-pattern '**/src/testFixtures/**' --fix --ext .ts packages plugins",
3737
"clean": "npm run clean -w packages/ -w plugins/",
3838
"reset": "npm run clean && ts-node ./scripts/clean.ts node_modules && npm install",
3939
"generateNonCodeFiles": "npm run generateNonCodeFiles -w packages/ --if-present",
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"date": "2025-04-03",
3+
"version": "1.54.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Amazon Q chat: `@prompts` not added to context"
8+
},
9+
{
10+
"type": "Feature",
11+
"description": "Amazon Q chat: View and search chat history"
12+
},
13+
{
14+
"type": "Feature",
15+
"description": "SageMaker Unified Studio: Disable Sign out"
16+
},
17+
{
18+
"type": "Feature",
19+
"description": "SageMaker Unified Studio: Update Q Chat Introduction message"
20+
},
21+
{
22+
"type": "Feature",
23+
"description": "/review: automatically generate fix without clicking Generate Fix button"
24+
},
25+
{
26+
"type": "Feature",
27+
"description": "Amazon Q chat: Automatically persist chats between IDE sessions"
28+
},
29+
{
30+
"type": "Feature",
31+
"description": "Save user command execution logs to plugin output."
32+
},
33+
{
34+
"type": "Feature",
35+
"description": "Amazon Q chat: Code blocks in chat messages have a max-height of 21 lines and can be scrolled inside"
36+
}
37+
]
38+
}

packages/amazonq/.changes/next-release/Bug Fix-ccbc5e50-0a90-4340-b6d5-e57537949898.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"SSMDOCUMENT_LANGUAGESERVER_PORT": "6010",
1616
"WEBPACK_DEVELOPER_SERVER": "http://localhost:8080"
1717
// "__AMAZONQLSP_PATH": "${workspaceFolder}/../../../language-servers/app/aws-lsp-codewhisperer-runtimes/out/token-standalone.js",
18+
// "__AMAZONQLSP_UI": "${workspaceFolder}/../../../language-servers/chat-client/build/amazonq-ui.js"
1819
},
1920
"envFile": "${workspaceFolder}/.local.env",
2021
"outFiles": ["${workspaceFolder}/dist/**/*.js", "${workspaceFolder}/../core/dist/**/*.js"],

packages/amazonq/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 1.54.0 2025-04-03
2+
3+
- **Bug Fix** Amazon Q chat: `@prompts` not added to context
4+
- **Feature** Amazon Q chat: View and search chat history
5+
- **Feature** SageMaker Unified Studio: Disable Sign out
6+
- **Feature** SageMaker Unified Studio: Update Q Chat Introduction message
7+
- **Feature** /review: automatically generate fix without clicking Generate Fix button
8+
- **Feature** Amazon Q chat: Automatically persist chats between IDE sessions
9+
- **Feature** Save user command execution logs to plugin output.
10+
- **Feature** Amazon Q chat: Code blocks in chat messages have a max-height of 21 lines and can be scrolled inside
11+
112
## 1.53.0 2025-03-28
213

314
- **Bug Fix** Amazon Q Chat: Choosing a nested subfolder for `/doc` on Windows results in `The folder you chose did not contain any source files` error

packages/amazonq/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
5-
"version": "1.54.0-SNAPSHOT",
5+
"version": "1.55.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],
@@ -364,7 +364,7 @@
364364
},
365365
{
366366
"command": "aws.amazonq.signout",
367-
"when": "(view == aws.amazonq.AmazonQChatView) && aws.codewhisperer.connected",
367+
"when": "(view == aws.amazonq.AmazonQChatView) && aws.codewhisperer.connected && !aws.isSageMakerUnifiedStudio",
368368
"group": "2_amazonQ@4"
369369
},
370370
{
@@ -640,7 +640,7 @@
640640
"title": "%AWS.command.codewhisperer.signout%",
641641
"category": "%AWS.amazonq.title%",
642642
"icon": "$(debug-disconnect)",
643-
"enablement": "aws.codewhisperer.connected"
643+
"enablement": "aws.codewhisperer.connected && !aws.isSageMakerUnifiedStudio"
644644
},
645645
{
646646
"command": "aws.amazonq.learnMore",

packages/amazonq/src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
setupUninstallHandler,
3333
maybeShowMinVscodeWarning,
3434
Experiments,
35+
isSageMaker,
3536
} from 'aws-core-vscode/shared'
3637
import { ExtStartUpSources } from 'aws-core-vscode/telemetry'
3738
import { VSCODE_EXTENSION_ID } from 'aws-core-vscode/utils'
@@ -146,6 +147,9 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
146147
// Hide the Amazon Q tree in toolkit explorer
147148
await setContext('aws.toolkit.amazonq.dismissed', true)
148149

150+
// set context var to check if its SageMaker Unified Studio or not
151+
await setContext('aws.isSageMakerUnifiedStudio', isSageMaker('SMUS'))
152+
149153
// reload webviews
150154
await vscode.commands.executeCommand('workbench.action.webview.reloadWebviewAction')
151155

0 commit comments

Comments
 (0)