Skip to content

Commit 0d783e0

Browse files
authored
Merge branch 'master' into feature/securityscans
2 parents 1e63a8c + 9a96e56 commit 0d783e0

File tree

57 files changed

+1546
-809
lines changed

Some content is hidden

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

57 files changed

+1546
-809
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Breaking Change",
3+
"description": "validate that pom.xml is in root directory of project, not anywhere in project"
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": "AWS Toolkit submenus appear in other extension views #4111"
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": "CodeCatalyst: \"No handler found\" error may occur when opening `vscode://` URI #4105"
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": "CodeWhisperer: Security scans for Java no longer require build artifacts"
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: Input prompt gets wrapped to new line which avoids focusing"
4+
}

package-lock.json

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

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"qna": "https://github.com/aws/aws-toolkit-vscode/issues",
4242
"activationEvents": [
4343
"onStartupFinished",
44+
"onUri",
4445
"onDebugResolve:aws-sam",
4546
"onView:aws.codeWhisperer.securityPanel",
4647
"onDebugInitialConfigurations",
@@ -1407,12 +1408,12 @@
14071408
},
14081409
{
14091410
"submenu": "aws.submenu.feedback",
1410-
"when": "view != aws.AmazonQChatView",
1411+
"when": "view =~ /^aws\\./ && view != aws.AmazonQChatView",
14111412
"group": "y_toolkitMeta@1"
14121413
},
14131414
{
14141415
"submenu": "aws.submenu.help",
1415-
"when": "view != aws.AmazonQChatView",
1416+
"when": "view =~ /^aws\\./ && view != aws.AmazonQChatView",
14161417
"group": "y_toolkitMeta@2"
14171418
},
14181419
{
@@ -4261,7 +4262,7 @@
42614262
},
42624263
"devDependencies": {
42634264
"@aws-sdk/types": "^3.13.1",
4264-
"@aws-toolkits/telemetry": "^1.0.168",
4265+
"@aws-toolkits/telemetry": "^1.0.169",
42654266
"@aws/fully-qualified-names": "^2.1.1",
42664267
"@cspotcode/source-map-support": "^0.8.1",
42674268
"@sinonjs/fake-timers": "^10.0.2",
@@ -4352,7 +4353,7 @@
43524353
"@aws-sdk/shared-ini-file-loader": "^3.46.0",
43534354
"@aws-sdk/smithy-client": "^3.46.0",
43544355
"@aws-sdk/util-arn-parser": "^3.46.0",
4355-
"@aws/mynah-ui-chat": "npm:@aws/[email protected].9",
4356+
"@aws/mynah-ui-chat": "npm:@aws/[email protected].10",
43564357
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
43574358
"@iarna/toml": "^2.2.5",
43584359
"@vscode/debugprotocol": "^1.57.0",

scripts/build/package.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
// Creates an artifact that can be given to users for testing alpha/beta builds:
88
//
9-
// aws-toolkit-vscode-99.0.0-xxxxxxxxxxxx.vsix
9+
// aws-toolkit-vscode-99.0.0-xxxxxxx.vsix
1010
//
11-
// Where `xxxxxxxxxxxx` is the first 12 characters of the commit hash that produced the artifact
11+
// Where `xxxxxxx` is the first 7 characters of the commit hash that produced the artifact.
1212
//
1313
// The script works like this:
1414
// 1. temporarily change `version` in package.json
@@ -90,15 +90,15 @@ function isBeta(): boolean {
9090
*
9191
* @returns version-string suffix, for example: "-e6ecd84685a9"
9292
*/
93-
function getVersionSuffix(feature: string): string {
93+
function getVersionSuffix(feature: string, debug: boolean): string {
9494
if (isRelease()) {
9595
return ''
9696
}
97-
const commitId = child_process.execSync('git rev-parse --short=12 HEAD').toString().trim()
98-
if (!commitId) {
99-
return ''
100-
}
101-
return `${feature === '' ? '' : `-${feature}`}-${commitId}`
97+
const debugSuffix = debug ? '-debug' : ''
98+
const featureSuffix = feature === '' ? '' : `-${feature}`
99+
const commitId = child_process.execSync('git rev-parse --short=7 HEAD').toString().trim()
100+
const commitSuffix = commitId ? `-${commitId}` : ''
101+
return `${debugSuffix}${featureSuffix}${commitSuffix}`
102102
}
103103

104104
function main() {
@@ -118,12 +118,11 @@ function main() {
118118
fs.copyFileSync(webpackConfigJsFile, `${webpackConfigJsFile}.bk`)
119119

120120
const packageJson: typeof PackageJson = JSON.parse(fs.readFileSync(packageJsonFile, { encoding: 'utf-8' }))
121-
const versionSuffix = getVersionSuffix(args.feature)
121+
const versionSuffix = getVersionSuffix(args.feature, args.debug)
122122
const version = packageJson.version
123-
// Setting the version to an arbitrarily high number stops VSC from auto-updating the beta extension
124-
const betaOrDebugVersion = `99.0.0${versionSuffix}`
125-
if (isBeta() || args.debug) {
126-
packageJson.version = betaOrDebugVersion
123+
if (isBeta()) {
124+
// Declare an arbitrarily high version number, to stop VSC from auto-updating "beta" builds.
125+
packageJson.version = `99.0.0${versionSuffix}`
127126
} else {
128127
packageJson.version = version.replace('-SNAPSHOT', versionSuffix)
129128
}

src/amazonq/commons/externalBrowser/externalBrowserUtils.ts

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

src/amazonq/explorer/amazonQChildrenNodes.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ import * as vscode from 'vscode'
77
import * as nls from 'vscode-nls'
88
import { Commands, placeholder } from '../../shared/vscode/commands2'
99
import { getIcon } from '../../shared/icons'
10-
import {
11-
focusAmazonQPanel,
12-
reconnect,
13-
showTransformByQ,
14-
transformTreeNode,
15-
} from '../../codewhisperer/commands/basicCommands'
10+
import { focusAmazonQPanel, reconnect, showTransformByQ } from '../../codewhisperer/commands/basicCommands'
1611
import { transformByQState } from '../../codewhisperer/models/model'
1712
import * as CodeWhispererConstants from '../../codewhisperer/models/constants'
1813
import { amazonQHelpUrl } from '../../shared/constants'
@@ -66,7 +61,7 @@ export const createTransformByQ = () => {
6661
if (transformByQState.isRunning()) {
6762
vscode.commands.executeCommand('setContext', 'gumby.isTransformAvailable', false)
6863
if (status === '') {
69-
// job is running but polling has not started yet, so display generic messsage
64+
// job is running but polling has not started yet, so display generic message
7065
status = CodeWhispererConstants.transformByQStateRunningMessage
7166
}
7267
} else if (transformByQState.isCancelled()) {
@@ -80,7 +75,7 @@ export const createTransformByQ = () => {
8075
} else if (transformByQState.isNotStarted()) {
8176
status = ''
8277
}
83-
return showTransformByQ.build(transformTreeNode).asTreeNode({
78+
return showTransformByQ.build(CodeWhispererConstants.transformTreeNode).asTreeNode({
8479
label: status !== '' ? `${prefix} Transform [Job status: ` + status + `]` : `Transform`,
8580
iconPath: transformByQState.getIconForButton(),
8681
tooltip: `${prefix} Transform`,

0 commit comments

Comments
 (0)