Skip to content

Commit 96331c8

Browse files
leigaolrli
andauthored
fix(amazonq): raise max @workspace indexing size to 4GB (#4954)
* raise max indexing size to 4GB * change log * Update bugfix-e76aa3d8-3d9a-4887-8ce6-018ed4c7c443.json --------- Co-authored-by: Richard Li <[email protected]>
1 parent a74994d commit 96331c8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Raise max `@workspace` indexing size to 4GB"
4+
}

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/settings/CodeWhispererConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class CodeWhispererConfigurable(private val project: Project) :
124124

125125
row(message("aws.settings.codewhisperer.project_context_index_max_size")) {
126126
intTextField(
127-
range = IntRange(1, 250)
127+
range = IntRange(1, 4096)
128128
).bindIntText(codeWhispererSettings::getProjectContextIndexMaxSize, codeWhispererSettings::setProjectContextIndexMaxSize)
129129
.align(AlignX.FILL).apply {
130130
connect.subscribe(

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/settings/CodeWhispererSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguratio
8787

8888
fun getProjectContextIndexMaxSize(): Int = state.intValue.getOrDefault(
8989
CodeWhispererIntConfigurationType.ProjectContextIndexMaxSize,
90-
200
90+
250
9191
)
9292

9393
fun setProjectContextIndexMaxSize(value: Int) {

0 commit comments

Comments
 (0)