From 5ee2c56fd513ea46996407ad73a8f1bcb9b468ec Mon Sep 17 00:00:00 2001 From: Andrew Yu Date: Tue, 14 Jan 2025 14:57:29 -0800 Subject: [PATCH 1/2] feat(amazonq): change active file context limit to 40k --- .../editor/context/focusArea/focusAreaExtractor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/codewhispererChat/editor/context/focusArea/focusAreaExtractor.ts b/packages/core/src/codewhispererChat/editor/context/focusArea/focusAreaExtractor.ts index d2b80f2619f..d782f7147ff 100644 --- a/packages/core/src/codewhispererChat/editor/context/focusArea/focusAreaExtractor.ts +++ b/packages/core/src/codewhispererChat/editor/context/focusArea/focusAreaExtractor.ts @@ -7,7 +7,7 @@ import { TextEditor, Selection, TextDocument, Range } from 'vscode' import { FocusAreaContext, FullyQualifiedName } from './model' -const focusAreaCharLimit = 9_000 +const focusAreaCharLimit = 40_000 export class FocusAreaContextExtractor { public isCodeBlockSelected(editor: TextEditor): boolean { From 12df38632157e428cb0c433620830adcace209fe Mon Sep 17 00:00:00 2001 From: Andrew Yu Date: Wed, 15 Jan 2025 13:10:02 -0800 Subject: [PATCH 2/2] add changelog --- .../Feature-7f17c8e5-2242-4a8a-93bc-f7a6c08899dc.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 packages/amazonq/.changes/next-release/Feature-7f17c8e5-2242-4a8a-93bc-f7a6c08899dc.json diff --git a/packages/amazonq/.changes/next-release/Feature-7f17c8e5-2242-4a8a-93bc-f7a6c08899dc.json b/packages/amazonq/.changes/next-release/Feature-7f17c8e5-2242-4a8a-93bc-f7a6c08899dc.json new file mode 100644 index 00000000000..5afafc86aef --- /dev/null +++ b/packages/amazonq/.changes/next-release/Feature-7f17c8e5-2242-4a8a-93bc-f7a6c08899dc.json @@ -0,0 +1,4 @@ +{ + "type": "Feature", + "description": "Amazon Q: increase chat current active file context char limit to 40k" +}