Skip to content

Commit fed6b94

Browse files
committed
Merge branch 'master' of https://github.com/aws/aws-toolkit-vscode into gajjardh/refactor-add-ComputeEnv-telemetry
2 parents af0af24 + 3c912a0 commit fed6b94

File tree

13 files changed

+60
-129
lines changed

13 files changed

+60
-129
lines changed

.changes/2.10.0.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"date": "2024-02-16",
3+
"version": "2.10.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "CDK Explorer: Refresh button is now visible."
8+
}
9+
]
10+
}

.changes/next-release/Bug Fix-7858d5db-fde1-4db1-860f-5be3b0bce411.json

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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.10.0 2024-02-16
2+
3+
- **Bug Fix** CDK Explorer: Refresh button is now visible.
4+
15
## 2.9.0 2024-02-09
26

37
- **Bug Fix** Cloud9: certain filesystem calls did not work in Cloud9

package-lock.json

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

packages/toolkit/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "aws-toolkit-vscode",
33
"displayName": "AWS Toolkit - Amazon Q, CodeWhisperer, and more",
44
"description": "Including Amazon Q, CodeWhisperer, CodeCatalyst, Application Composer, and support for Lambda, S3, CloudWatch Logs, CloudFormation, and many other services",
5-
"version": "2.10.0-SNAPSHOT",
5+
"version": "2.11.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],
@@ -4293,7 +4293,6 @@
42934293
"@types/node-fetch": "^2.6.8",
42944294
"@types/prismjs": "^1.26.0",
42954295
"@types/readline-sync": "^1.4.3",
4296-
"@types/sanitize-html": "2.3.1",
42974296
"@types/semver": "^7.5.0",
42984297
"@types/sinon": "^10.0.5",
42994298
"@types/sinonjs__fake-timers": "^8.1.2",
@@ -4321,12 +4320,12 @@
43214320
"sass-loader": "^12.6.0",
43224321
"sinon": "^14.0.0",
43234322
"style-loader": "^3.3.1",
4323+
"ts-node": "^10.9.1",
4324+
"typescript": "^5.0.4",
43244325
"umd-compat-loader": "^2.1.2",
43254326
"vue-loader": "^17.2.2",
43264327
"vue-style-loader": "^4.1.3",
4327-
"webfont": "^11.2.26",
4328-
"typescript": "^5.0.4",
4329-
"ts-node": "^10.9.1"
4328+
"webfont": "^11.2.26"
43304329
},
43314330
"dependencies": {
43324331
"@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming",
@@ -4367,7 +4366,6 @@
43674366
"mime-types": "^2.1.32",
43684367
"node-fetch": "^2.7.0",
43694368
"portfinder": "^1.0.32",
4370-
"sanitize-html": "^2.3.3",
43714369
"semver": "^7.5.4",
43724370
"strip-ansi": "^5.2.0",
43734371
"tcp-port-used": "^1.0.1",

packages/toolkit/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import sanitizeHtml from 'sanitize-html'
76
import * as vscode from 'vscode'
87
import { ToolkitError } from '../../shared/errors'
98
import { getLogger } from '../../shared/logger'
@@ -12,6 +11,7 @@ import { IllegalStateTransition, UserMessageNotFoundError } from '../errors'
1211
import { SessionState, SessionStateAction, SessionStateConfig, SessionStateInteraction } from '../types'
1312
import { prepareRepoData } from '../util/files'
1413
import { uploadCode } from '../util/upload'
14+
import { encodeHTML } from '../../shared/utilities/textUtilities'
1515

1616
export class ConversationNotStartedState implements Omit<SessionState, 'uploadId'> {
1717
public tokenSource: vscode.CancellationTokenSource
@@ -90,10 +90,9 @@ export class RefinementState implements SessionState {
9090
action.msg
9191
)
9292

93-
this.approach = sanitizeHtml(
93+
this.approach = encodeHTML(
9494
approach ??
95-
'There has been a problem generating an approach. Please open a conversation in a new tab',
96-
{}
95+
'There has been a problem generating an approach. Please open a conversation in a new tab'
9796
)
9897
getLogger().debug(`Approach response: %O`, this.approach)
9998

packages/toolkit/src/extension.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import { activate as activateEc2 } from './ec2/activation'
3232
import { activate as activateSam } from './shared/sam/activation'
3333
import { activate as activateS3 } from './s3/activation'
3434
import * as awsFiletypes from './shared/awsFiletypes'
35-
import { activate as activateCodeWhisperer, shutdown as codewhispererShutdown } from './codewhisperer/activation'
3635
import { activate as activateApiGateway } from './apigateway/activation'
3736
import { activate as activateStepFunctions } from './stepFunctions/activation'
3837
import { activate as activateSsmDocument } from './ssmDocument/activation'
@@ -133,8 +132,6 @@ export async function activate(context: vscode.ExtensionContext) {
133132
remoteInvokeOutputChannel: globals.invokeOutputChannel,
134133
})
135134

136-
await activateCodeWhisperer(extContext)
137-
138135
await activateAppRunner(extContext)
139136

140137
await activateApiGateway({
@@ -230,7 +227,6 @@ export async function activate(context: vscode.ExtensionContext) {
230227

231228
export async function deactivate() {
232229
await deactivateShared()
233-
await codewhispererShutdown()
234230
await globals.resourceManager.dispose()
235231
}
236232

packages/toolkit/src/extensionShared.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { documentationUrl, githubCreateIssueUrl, githubUrl } from './shared/cons
1818
import { getIdeProperties, aboutToolkit, isCloud9 } from './shared/extensionUtilities'
1919
import { telemetry } from './shared/telemetry/telemetry'
2020
import { openUrl } from './shared/utilities/vsCodeUtils'
21+
import { activate as activateCodeWhisperer, shutdown as codewhispererShutdown } from './codewhisperer/activation'
2122

2223
import { activate as activateLogger } from './shared/logger/activation'
2324
import { initializeComputeRegion } from './shared/extensionUtilities'
@@ -42,6 +43,9 @@ import { showQuickStartWebview } from './shared/extensionStartup'
4243
import { ExtContext } from './shared/extensions'
4344
import { getSamCliContext } from './shared/sam/cli/samCliContext'
4445
import { UriHandler } from './shared/vscode/uriHandler'
46+
import { disableAwsSdkWarning } from './shared/awsClientBuilder'
47+
48+
disableAwsSdkWarning()
4549

4650
let localize: nls.LocalizeFunc
4751

@@ -131,13 +135,15 @@ export async function activateShared(
131135
credentialsStore: globals.loginManager.store,
132136
}
133137

138+
await activateCodeWhisperer(extContext)
139+
134140
return extContext
135141
}
136142

137143
/** Deactivation code that is shared between nodejs and browser implementations */
138144
export async function deactivateShared() {
139145
await globals.telemetry.shutdown()
140-
// await codewhispererShutdown()
146+
await codewhispererShutdown()
141147
}
142148
/**
143149
* Registers generic commands used by both browser and node versions of the toolkit.

0 commit comments

Comments
 (0)