diff --git a/extensions/vscode/src/util/addCode.ts b/extensions/vscode/src/util/addCode.ts index 05d9c3afe..61147c183 100644 --- a/extensions/vscode/src/util/addCode.ts +++ b/extensions/vscode/src/util/addCode.ts @@ -94,7 +94,10 @@ export function getRangeInFileWithContents( export async function addHighlightedCodeToContext( webviewProtocol: VsCodeWebviewProtocol | undefined, ) { - const rangeInFileWithContents = getRangeInFileWithContents(true); + // the passed argument below was set to true in https://github.com/continuedev/continue/pull/6711 + // which would add the entire file contents when selection is empty + // currently this behaviour is reverted and needs further investigation + const rangeInFileWithContents = getRangeInFileWithContents(false); if (rangeInFileWithContents) { webviewProtocol?.request("highlightedCode", { rangeInFileWithContents,