Skip to content

Commit ad93067

Browse files
authored
Merge pull request #7404 from aws/autoMerge/feature/flare-mega
Merge master into feature/flare-mega
2 parents a42118d + 8c5111a commit ad93067

29 files changed

+404
-32
lines changed

buildspec/release/50githubrelease.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ phases:
3636
- echo "posting $VERSION with sha384 hash $HASH to GitHub"
3737
- PKG_DISPLAY_NAME=$(grep -m 1 displayName packages/${TARGET_EXTENSION}/package.json | grep -o '[a-zA-z][^\"]\+' | tail -n1)
3838
- RELEASE_MESSAGE="${PKG_DISPLAY_NAME} for VS Code $VERSION"
39+
# Only set amazonq as "latest" release. This ensures https://api.github.com/repos/aws/aws-toolkit-vscode/releases/latest
40+
# consistently points to the amazonq artifact, instead of being "random".
41+
- LATEST="$([ "$TARGET_EXTENSION" = amazonq ] && echo '--latest' || echo '--latest=false' )"
3942
- |
4043
if [ "$STAGE" = "prod" ]; then
4144
# note: the tag arg passed here should match what is in 10changeversion.yml
42-
gh release create --repo $REPO --title "$PKG_DISPLAY_NAME $VERSION" --notes "$RELEASE_MESSAGE" -- "${TARGET_EXTENSION}/v${VERSION}" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
45+
gh release create "$LATEST" --repo $REPO --title "$PKG_DISPLAY_NAME $VERSION" --notes "$RELEASE_MESSAGE" -- "${TARGET_EXTENSION}/v${VERSION}" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
4346
else
4447
echo "SKIPPED (stage=${STAGE}): 'gh release create --repo $REPO'"
4548
fi

package-lock.json

Lines changed: 6 additions & 4 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
@@ -41,7 +41,7 @@
4141
"skippedTestReport": "ts-node ./scripts/skippedTestReport.ts ./packages/amazonq/test/e2e/"
4242
},
4343
"devDependencies": {
44-
"@aws-toolkits/telemetry": "^1.0.322",
44+
"@aws-toolkits/telemetry": "^1.0.323",
4545
"@playwright/browser-chromium": "^1.43.1",
4646
"@stylistic/eslint-plugin": "^2.11.0",
4747
"@types/he": "^1.2.3",

packages/amazonq/.changes/1.71.0.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"date": "2025-06-04",
3+
"version": "1.71.0",
4+
"entries": []
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Launch LSP with bundled artifacts as fallback"
4+
}

packages/amazonq/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.71.0 2025-06-04
2+
3+
- Miscellaneous non-user-facing changes
4+
15
## 1.70.0 2025-05-28
26

37
- **Removal** Disable local workspace LSP

packages/amazonq/package.json

Lines changed: 7 additions & 1 deletion
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.71.0-SNAPSHOT",
5+
"version": "1.72.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],
@@ -212,6 +212,12 @@
212212
"items": {
213213
"type": "string"
214214
}
215+
},
216+
"amazonQ.proxy.certificateAuthority": {
217+
"type": "string",
218+
"markdownDescription": "%AWS.configuration.description.amazonq.proxy.certificateAuthority%",
219+
"default": null,
220+
"scope": "application"
215221
}
216222
}
217223
},

packages/amazonq/src/app/chat/activation.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as vscode from 'vscode'
77
import { ExtensionContext } from 'vscode'
88
import { telemetry } from 'aws-core-vscode/telemetry'
99
import { AuthUtil } from 'aws-core-vscode/codewhisperer'
10-
import { Commands, placeholder } from 'aws-core-vscode/shared'
10+
import { Commands, getLogger, placeholder } from 'aws-core-vscode/shared'
1111
import * as amazonq from 'aws-core-vscode/amazonq'
1212

1313
export async function activate(context: ExtensionContext) {
@@ -67,7 +67,9 @@ async function setupAuthNotification() {
6767
const selection = await vscode.window.showWarningMessage('Start using Amazon Q', buttonAction)
6868

6969
if (selection === buttonAction) {
70-
void amazonq.focusAmazonQPanel.execute(placeholder, source)
70+
amazonq.focusAmazonQPanel.execute(placeholder, source).catch((e) => {
71+
getLogger().error('focusAmazonQPanel failed: %s', e)
72+
})
7173
}
7274
}
7375
}

packages/amazonq/src/extension.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import {
3939
Experiments,
4040
isSageMaker,
4141
Commands,
42+
ProxyUtil,
4243
} from 'aws-core-vscode/shared'
4344
import { ExtStartUpSources } from 'aws-core-vscode/telemetry'
4445
import { VSCODE_EXTENSION_ID } from 'aws-core-vscode/utils'
@@ -127,7 +128,10 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
127128
// Auth is dependent on LSP, needs to be activated before CW and Inline
128129
await activateAmazonqLsp(context)
129130

130-
// This contains every lsp agnostic things (security scan, code scan)
131+
// Configure proxy settings early
132+
ProxyUtil.configureProxyForLanguageServer()
133+
134+
// This contains every lsp agnostic things (auth, security scan, code scan)
131135
await activateCodeWhisperer(extContext as ExtContext)
132136
if (!Experiments.instance.get('amazonqLSPInline', false)) {
133137
await activateInlineCompletion()
@@ -170,7 +174,9 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
170174
// Give time for the extension to finish initializing.
171175
globals.clock.setTimeout(async () => {
172176
CommonAuthWebview.authSource = ExtStartUpSources.firstStartUp
173-
void focusAmazonQPanel.execute(placeholder, ExtStartUpSources.firstStartUp)
177+
focusAmazonQPanel.execute(placeholder, ExtStartUpSources.firstStartUp).catch((e) => {
178+
getLogger().error('focusAmazonQPanel failed: %s', e)
179+
})
174180
}, 1000)
175181
}
176182

packages/amazonq/src/lsp/activation.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import vscode from 'vscode'
77
import { startLanguageServer } from './client'
8-
import { AmazonQLspInstaller } from './lspInstaller'
9-
import { lspSetupStage, ToolkitError, messages } from 'aws-core-vscode/shared'
8+
import { AmazonQLspInstaller, getBundledResourcePaths } from './lspInstaller'
9+
import { lspSetupStage, ToolkitError, messages, getLogger } from 'aws-core-vscode/shared'
1010

1111
export async function activate(ctx: vscode.ExtensionContext) {
1212
try {
@@ -16,6 +16,15 @@ export async function activate(ctx: vscode.ExtensionContext) {
1616
})
1717
} catch (err) {
1818
const e = err as ToolkitError
19-
void messages.showViewLogsMessage(`Failed to launch Amazon Q language server: ${e.message}`)
19+
getLogger('amazonqLsp').warn(`Failed to start downloaded LSP, falling back to bundled LSP: ${e.message}`)
20+
try {
21+
await lspSetupStage('all', async () => {
22+
await lspSetupStage('launch', async () => await startLanguageServer(ctx, getBundledResourcePaths(ctx)))
23+
})
24+
} catch (error) {
25+
void messages.showViewLogsMessage(
26+
`Failed to launch Amazon Q language server: ${(error as ToolkitError).message}`
27+
)
28+
}
2029
}
2130
}

0 commit comments

Comments
 (0)