Skip to content

Commit fbff050

Browse files
fix(amazonq): Merge from main (#8533)
- Merge Amazon Q necessary code from main. - Cherry picking commits a2849d0 and 53f02cf --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: invictus <149003065+ashishrp-aws@users.noreply.github.com>
1 parent 1425b4a commit fbff050

File tree

9 files changed

+13
-86
lines changed

9 files changed

+13
-86
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
matrix:
127127
node-version: [18.x]
128128
vscode-version: [minimum, stable, insiders]
129-
package: [amazonq, toolkit]
129+
package: [amazonq]
130130
env:
131131
VSCODE_TEST_VERSION: ${{ matrix.vscode-version }}
132132
NODE_OPTIONS: '--max-old-space-size=8192'
@@ -181,67 +181,6 @@ jobs:
181181
with:
182182
run: npm run testWeb
183183

184-
cloudformation-integ:
185-
needs: lint-commits
186-
name: CloudFormation LSP E2E Tests
187-
runs-on: ${{ matrix.os }}
188-
strategy:
189-
fail-fast: false
190-
matrix:
191-
os: [ubuntu-latest, macos-latest, windows-latest]
192-
node-version: [18.x]
193-
vscode-version: [stable]
194-
env:
195-
VSCODE_TEST_VERSION: ${{ matrix.vscode-version }}
196-
NODE_OPTIONS: '--max-old-space-size=8192'
197-
steps:
198-
- uses: actions/checkout@v4
199-
- name: Use Node.js ${{ matrix.node-version }}
200-
uses: actions/setup-node@v4
201-
with:
202-
node-version: ${{ matrix.node-version }}
203-
- name: Setup CloudFormation LSP
204-
shell: bash
205-
run: bash packages/core/src/testE2E/cloudformation/setup-local-lsp.sh
206-
- run: npm ci
207-
- name: Run CloudFormation E2E Tests (Unix)
208-
if: runner.os != 'Windows'
209-
uses: coactions/setup-xvfb@v1
210-
with:
211-
run: npm run testE2ECfn -w packages/toolkit
212-
- name: Run CloudFormation E2E Tests (Windows)
213-
if: runner.os == 'Windows'
214-
run: npm run testE2ECfn -w packages/toolkit
215-
- name: Print Extension Logs
216-
if: failure()
217-
shell: bash
218-
run: |
219-
echo "=== AWS Toolkit Extension Logs ==="
220-
find packages/toolkit/.vscode-test/user-data/logs -name "*.log" -type f 2>/dev/null | while read logfile; do
221-
echo "--- $logfile ---"
222-
cat "$logfile" || echo "Could not read log file"
223-
done || echo "No extension logs found"
224-
225-
echo ""
226-
echo "=== CloudFormation LSP Server Logs ==="
227-
echo "LSP Path: $__CLOUDFORMATIONLSP_PATH"
228-
if [ -n "$__CLOUDFORMATIONLSP_PATH" ]; then
229-
LSP_LOG_DIR="$__CLOUDFORMATIONLSP_PATH/.aws-cfn-storage/logs"
230-
echo "Checking directory: $LSP_LOG_DIR"
231-
if [ -d "$LSP_LOG_DIR" ]; then
232-
find "$LSP_LOG_DIR" -name "*.log" -type f 2>/dev/null | while read logfile; do
233-
echo "--- $logfile ---"
234-
cat "$logfile" || echo "Could not read log file"
235-
done
236-
else
237-
echo "LSP logs directory does not exist: $LSP_LOG_DIR"
238-
echo "Contents of LSP path:"
239-
ls -la "$__CLOUDFORMATIONLSP_PATH" 2>/dev/null || echo "Cannot list LSP path"
240-
fi
241-
else
242-
echo "Environment variable __CLOUDFORMATIONLSP_PATH is not set"
243-
fi
244-
245184
windows:
246185
needs: lint-commits
247186
name: test Windows
@@ -251,7 +190,7 @@ jobs:
251190
matrix:
252191
node-version: [18.x]
253192
vscode-version: [stable, insiders]
254-
package: [amazonq, toolkit]
193+
package: [amazonq]
255194
env:
256195
VSCODE_TEST_VERSION: ${{ matrix.vscode-version }}
257196
NODE_OPTIONS: '--max-old-space-size=8192'

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"date": "2026-01-23",
3+
"version": "1.108.0",
4+
"entries": []
5+
}

packages/amazonq/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.108.0 2026-01-23
2+
3+
- Miscellaneous non-user-facing changes
4+
15
## 1.107.0 2026-01-08
26

37
- Miscellaneous non-user-facing changes

packages/amazonq/package.json

Lines changed: 1 addition & 6 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 software development.",
5-
"version": "1.108.0-SNAPSHOT",
5+
"version": "1.109.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],
@@ -148,11 +148,6 @@
148148
"markdownDescription": "%AWS.configuration.description.amazonq%",
149149
"default": true
150150
},
151-
"amazonQ.allowFeatureDevelopmentToRunCodeAndTests": {
152-
"markdownDescription": "%AWS.configuration.description.featureDevelopment.allowRunningCodeAndTests%",
153-
"type": "object",
154-
"default": {}
155-
},
156151
"amazonQ.importRecommendationForInlineCodeSuggestions": {
157152
"type": "boolean",
158153
"description": "%AWS.configuration.description.amazonq.importRecommendation%",

packages/core/package.nls.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"AWS.configuration.description.suppressPrompts": "Prompts which ask for confirmation. Checking an item suppresses the prompt.",
2121
"AWS.configuration.enableCodeLenses": "Enable SAM hints in source code and template.yaml files",
2222
"AWS.configuration.description.resources.enabledResources": "AWS resources to display in the 'Resources' portion of the explorer.",
23-
"AWS.configuration.description.featureDevelopment.allowRunningCodeAndTests": "Allow /dev to run code and test commands",
2423
"AWS.configuration.description.experiments": "Try experimental features and give feedback. Note that experimental features may be removed at any time.\n * `jsonResourceModification` - Enables basic create, update, and delete support for cloud resources via the JSON Resources explorer component.",
2524
"AWS.stepFunctions.publishStateMachine.error.invalidYAML": "Cannot publish invalid YAML file",
2625
"AWS.stepFunctions.publishStateMachine.info.creating": "Creating state machine '{0}' in {1}...",

packages/core/src/codewhisperer/util/codewhispererSettings.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const description = {
1616
workspaceIndexMaxFileSize: Number,
1717
workspaceIndexCacheDirPath: String,
1818
workspaceIndexIgnoreFilePatterns: ArrayConstructor(String),
19-
allowFeatureDevelopmentToRunCodeAndTests: Object,
2019
ignoredSecurityIssues: ArrayConstructor(String),
2120
}
2221

@@ -74,18 +73,6 @@ export class CodeWhispererSettings extends fromExtensionManifest('amazonQ', desc
7473
return this.get('workspaceIndexIgnoreFilePatterns', [])
7574
}
7675

77-
public getAutoBuildSetting(): { [key: string]: boolean } {
78-
return this.get('allowFeatureDevelopmentToRunCodeAndTests', {})
79-
}
80-
81-
public async updateAutoBuildSetting(projectName: string, setting: boolean) {
82-
const projects = this.getAutoBuildSetting()
83-
84-
projects[projectName] = setting
85-
86-
await this.update('allowFeatureDevelopmentToRunCodeAndTests', projects)
87-
}
88-
8976
public getIgnoredSecurityIssues(): string[] {
9077
return this.get('ignoredSecurityIssues', [])
9178
}

packages/core/src/shared/settings-amazonq.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const amazonqSettings = {
2626
"amazonQSelectDeveloperProfile": {}
2727
},
2828
"amazonQ.showCodeWithReferences": {},
29-
"amazonQ.allowFeatureDevelopmentToRunCodeAndTests": {},
3029
"amazonQ.importRecommendationForInlineCodeSuggestions": {},
3130
"amazonQ.shareContentWithAWS": {},
3231
"amazonQ.workspaceIndex": {},

packages/core/src/testLint/eslint.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ describe('eslint', function () {
3333
'.ts',
3434
'../amazonq',
3535
'../core',
36-
'../toolkit',
3736
// TODO: fix lint issues in scripts/
3837
// '../../scripts',
3938
],

0 commit comments

Comments
 (0)