Skip to content

Commit 9ec4763

Browse files
committed
better comment
1 parent dc94746 commit 9ec4763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/codewhisperer/util/editorContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export function getEditorState(editor: vscode.TextEditor, fileContext: codewhisp
220220
const cursorOffset = editor.document.offsetAt(cursorPosition)
221221
const documentText = editor.document.getText()
222222

223-
// Truncate if text needs truncation (longer than 40000 characters)
223+
// Truncate if document content is too large (defined in constants.ts)
224224
let fileText = documentText
225225
if (documentText.length > editorStateMaxLength) {
226226
const startOffset = Math.max(0, cursorOffset - Math.floor(editorStateMaxLength / 2))

0 commit comments

Comments
 (0)