Skip to content

Commit f855626

Browse files
authored
Merge branch 'feature/q-lsp-chat' into q-lsp-chat
2 parents 8ac5bbb + b331040 commit f855626

File tree

26 files changed

+193
-63
lines changed

26 files changed

+193
-63
lines changed

.changes/3.71.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"date" : "2025-05-15",
3+
"version" : "3.71",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Add inline completion support for abap language"
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Fix UI freezes that may occur when interacting with large files in the editor"
10+
} ]
11+
}

.changes/next-release/bugfix-1d632e06-24fa-40f1-a8ae-33cca0d86ec4.json

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

.changes/next-release/feature-eeb9909f-8f63-4bd7-8161-df8ca27dd953.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+
# _3.71_ (2025-05-15)
2+
- **(Feature)** Add inline completion support for abap language
3+
- **(Bug Fix)** Fix UI freezes that may occur when interacting with large files in the editor
4+
15
# _3.70_ (2025-05-08)
26
- **(Feature)** Amazon Q: Support selecting customizations across all Q profiles with automatic profile switching for enterprise users
37
- **(Bug Fix)** Do not always show 'Amazon Q Code Issues' tab when switching to the 'Problems' tool window

buildSrc/src/main/kotlin/temp-toolkit-intellij-root-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ val toolkitVersion: String by project
3535

3636
// please check changelog generation logic if this format is changed
3737
// also sync with gateway version
38-
version = "$toolkitVersion-${ideProfile.shortName}"
38+
version = "$toolkitVersion.${ideProfile.shortName}"
3939

4040
val resharperDlls = configurations.register("resharperDlls") {
4141
isCanBeConsumed = false

buildSrc/src/main/kotlin/toolkit-publishing-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ val ideProfile = IdeVersions.ideProfile(project)
1616
val toolkitVersion: String by project
1717

1818
// please check changelog generation logic if this format is changed
19-
version = "$toolkitVersion-${ideProfile.shortName}"
19+
version = "$toolkitVersion.${ideProfile.shortName}"
2020

2121
// attach the current commit hash on local builds
2222
if (!project.isCi()) {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.71-SNAPSHOT
5+
toolkitVersion=3.72-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
150150
agenticMode: true,
151151
quickActionCommands: commands,
152152
disclaimerAcknowledged: ${MeetQSettings.getInstance().disclaimerAcknowledged},
153-
pairProgrammingAcknowledged: ${!MeetQSettings.getInstance().amazonQChatPairProgramming}
153+
pairProgrammingAcknowledged: ${MeetQSettings.getInstance().pairProgrammingAcknowledged}
154154
},
155155
hybridChatConnector,
156156
${CodeWhispererFeatureConfigService.getInstance().getFeatureConfigJsonString()}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import kotlinx.coroutines.flow.onEach
2727
import kotlinx.coroutines.launch
2828
import org.cef.browser.CefBrowser
2929
import org.eclipse.lsp4j.TextDocumentIdentifier
30+
import org.eclipse.lsp4j.jsonrpc.ResponseErrorException
31+
import org.eclipse.lsp4j.jsonrpc.messages.ResponseErrorCode
3032
import software.aws.toolkits.core.utils.error
3133
import software.aws.toolkits.core.utils.getLogger
3234
import software.aws.toolkits.core.utils.warn
@@ -94,6 +96,7 @@ import software.aws.toolkits.jetbrains.settings.MeetQSettings
9496
import software.aws.toolkits.telemetry.MetricResult
9597
import software.aws.toolkits.telemetry.Telemetry
9698
import java.util.concurrent.CompletableFuture
99+
import java.util.concurrent.CompletionException
97100
import java.util.function.Function
98101

99102
class BrowserConnector(
@@ -396,6 +399,12 @@ class BrowserConnector(
396399
)
397400
)
398401
} catch (e: Exception) {
402+
val cause = if (e is CompletionException) e.cause else e
403+
404+
// dont post error to UI if user cancels export
405+
if (cause is ResponseErrorException && cause.responseError.code == ResponseErrorCode.RequestCancelled.getValue()) {
406+
return@whenComplete
407+
}
399408
LOG.error { "Failed to perform chat tab bar action $e" }
400409
params.tabId?.let {
401410
browser.postChat(chatCommunicationManager.getErrorUiMessage(it, e, null))
@@ -429,7 +438,7 @@ class BrowserConnector(
429438
CHAT_PROMPT_OPTION_ACKNOWLEDGED -> {
430439
val acknowledgedMessage = node.params?.get("messageId")
431440
if (acknowledgedMessage?.asText() == "programmerModeCardId") {
432-
MeetQSettings.getInstance().amazonQChatPairProgramming = false
441+
MeetQSettings.getInstance().pairProgrammingAcknowledged = true
433442
}
434443
}
435444

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/CssVariable.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enum class CssVariable(
1818
TextColorWeak("--mynah-color-text-weak"),
1919
TextColorLink("--mynah-color-text-link"),
2020
TextColorInput("--mynah-color-text-input"),
21+
TextColorDisabled("--mynah-color-text-disabled"),
2122

2223
Background("--mynah-color-bg"),
2324
BackgroundAlt("--mynah-color-bg-alt"),

0 commit comments

Comments
 (0)