Skip to content

Commit 9f7dad2

Browse files
authored
Merge branch 'main' into rli/caws-endpoint
2 parents 066b5b6 + d14768b commit 9f7dad2

File tree

338 files changed

+21140
-657
lines changed

Some content is hidden

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

338 files changed

+21140
-657
lines changed

.changes/1.89.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"date" : "2023-11-26",
3+
"version" : "1.89",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "CodeWhisperer: Uses Generative AI and automated reasoning to rewrite lines of code flagged for security vulnerabilities during a security scan."
7+
}, {
8+
"type" : "feature",
9+
"description" : "CodeWhisperer now supports new IaC languages: JSON, YAML and Terraform."
10+
}, {
11+
"type" : "feature",
12+
"description" : "CodeWhisperer security scans support typescript, csharp, json, yaml, tf and hcl files."
13+
} ]
14+
}

.changes/2.0.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2023-11-28",
3+
"version" : "2.0",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Support for Amazon Q, your generative AI–powered assistant designed for work that can be tailored to your business, code, data, and operations."
7+
} ]
8+
}

.github/workflows/mac.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20-
- name: Set up JDK 11
20+
- name: Set up JDK 17
2121
uses: actions/setup-java@v1
2222
with:
23-
java-version: 11
23+
java-version: 17
2424
- name: Grant execute permission for gradlew
2525
run: chmod +x gradlew
2626
- name: Build with Gradle

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,22 @@ stale_outputs_checked
1515

1616
# dotnet version
1717
global.json
18+
19+
# local dev files
20+
unload-PythonCore-*
21+
unload-aws.toolkit-*
22+
jetbrains-core/bin/
23+
jetbrains-ultimate/bin/
24+
resources/bin/
25+
core/bin
26+
jetbrains-gateway/bin
27+
jetbrains-rider/bin
28+
sdk-codegen/bin
29+
ui-tests/bin
30+
31+
#CodeWhispererChat
32+
33+
/jetbrains-rider/testData/NuGet.config
34+
/jetbrains-core/ui/package-lock.json
35+
node_modules
36+
package-lock.json

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# _1.89_ (2023-11-26)
2+
- **(Feature)** CodeWhisperer: Uses Generative AI and automated reasoning to rewrite lines of code flagged for security vulnerabilities during a security scan.
3+
- **(Feature)** CodeWhisperer now supports new IaC languages: JSON, YAML and Terraform.
4+
- **(Feature)** CodeWhisperer security scans support typescript, csharp, json, yaml, tf and hcl files.
5+
6+
# _1.88_ (2023-11-17)
7+
- **(Bug Fix)** Fix issue where the toolkit calls the wrong CodeCatalyst service endpoint
8+
19
# _1.87_ (2023-11-10)
210
- **(Bug Fix)** Fix issue where images in 'Authenticate' panel do not show up
311
- **(Deprecation)** An upcoming release will remove support for JetBrains Gateway version 2023.2 and for for IDEs based on the 2022.3 platform

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ We want your feedback!
2323
- Code contributions. See [our contributing guide](CONTRIBUTING.md) for how to get started.
2424

2525
## Supported IDEs
26-
All JetBrains IDEs 2023.3+
26+
All JetBrains IDEs 2022.3+
2727

2828
## Installation
2929

buildSrc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins {
1212
`kotlin-dsl`
1313
}
1414

15+
1516
// Note: We can't use our standard source layout due to https://github.com/gradle/gradle/issues/14310
1617

1718
dependencies {

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/intellij/IdeVersions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ object IdeVersions {
108108
),
109109
community = ProductProfile(
110110
sdkFlavor = IdeFlavor.IC,
111-
sdkVersion = "2023.2",
111+
sdkVersion = "2023.2.2",
112112
plugins = commonPlugins + listOf(
113113
"java",
114114
"com.intellij.gradle",
@@ -119,7 +119,7 @@ object IdeVersions {
119119
),
120120
ultimate = ProductProfile(
121121
sdkFlavor = IdeFlavor.IU,
122-
sdkVersion = "2023.2",
122+
sdkVersion = "2023.2.2",
123123
plugins = commonPlugins + listOf(
124124
"JavaScript",
125125
// Transitive dependency needed for javascript

buildSrc/src/main/kotlin/toolkit-intellij-subplugin.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import org.eclipse.jgit.api.Git
54
import org.gradle.internal.os.OperatingSystem
65
import org.gradle.testing.jacoco.plugins.JacocoTaskExtension.Output
76
import org.jetbrains.intellij.tasks.DownloadRobotServerPluginTask
@@ -15,7 +14,6 @@ import software.aws.toolkits.gradle.intellij.IdeFlavor
1514
import software.aws.toolkits.gradle.intellij.IdeVersions
1615
import software.aws.toolkits.gradle.intellij.ToolkitIntelliJExtension
1716
import software.aws.toolkits.gradle.isCi
18-
import java.io.IOException
1917

2018
val toolkitIntelliJ = project.extensions.create<ToolkitIntelliJExtension>("intellijToolkit")
2119

@@ -62,6 +60,11 @@ configurations {
6260
exclude(group = "software.amazon.awssdk", module = "netty-nio-client")
6361
}
6462

63+
testRuntimeClasspath {
64+
// Conflicts with CRT in test classpath
65+
exclude(group = "software.amazon.awssdk", module = "netty-nio-client")
66+
}
67+
6568
// TODO: https://github.com/gradle/gradle/issues/15383
6669
val versionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs")
6770
dependencies {
@@ -122,7 +125,7 @@ tasks.withType<PatchPluginXmlTask>().all {
122125
if (!project.isCi()){
123126
val buildMetadata = buildMetadata()
124127
tasks.withType<PatchPluginXmlTask>().all {
125-
version.set(intellij.version.map { "$it+$buildMetadata" })
128+
version.set("${project.version}+$buildMetadata")
126129
}
127130

128131
tasks.buildPlugin {

core/src/software/aws/toolkits/core/ToolkitClientManager.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import software.amazon.awssdk.auth.token.signer.aws.BearerTokenSigner
1010
import software.amazon.awssdk.awscore.client.builder.AwsClientBuilder
1111
import software.amazon.awssdk.awscore.client.builder.AwsDefaultClientBuilder
1212
import software.amazon.awssdk.core.SdkClient
13+
import software.amazon.awssdk.core.client.builder.SdkSyncClientBuilder
1314
import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration
1415
import software.amazon.awssdk.core.client.config.SdkAdvancedClientOption
1516
import software.amazon.awssdk.core.retry.RetryMode
@@ -148,9 +149,14 @@ abstract class ToolkitClientManager {
148149

149150
@Suppress("UNCHECKED_CAST")
150151
return builder
151-
.httpClient(sdkHttpClient())
152152
.region(region)
153153
.apply {
154+
if (this is SdkSyncClientBuilder<*, *>) {
155+
// async clients use CRT, and keeps trying to shut down our apache client even though it doesn't respect our client settings
156+
// so only set this for sync clients
157+
httpClient(sdkHttpClient())
158+
}
159+
154160
val clientOverrideConfig = ClientOverrideConfiguration.builder()
155161

156162
if (credProvider != null) {

0 commit comments

Comments
 (0)