Skip to content

Commit 1fbb545

Browse files
committed
fix: revert add full file when selection is empty
1 parent 90d54f3 commit 1fbb545

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/vscode/src/util/addCode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ export function getRangeInFileWithContents(
9494
export async function addHighlightedCodeToContext(
9595
webviewProtocol: VsCodeWebviewProtocol | undefined,
9696
) {
97-
const rangeInFileWithContents = getRangeInFileWithContents(true);
97+
// the passed argument below was set to true in https://github.com/continuedev/continue/pull/6711
98+
// which would add the entire file contents when selection is empty
99+
// currently this behaviour is reverted and needs further investigation
100+
const rangeInFileWithContents = getRangeInFileWithContents(false);
98101
if (rangeInFileWithContents) {
99102
webviewProtocol?.request("highlightedCode", {
100103
rangeInFileWithContents,

0 commit comments

Comments
 (0)