fix: revert add full file when selection is empty
This commit is contained in:
parent
90d54f3f66
commit
1fbb545aeb
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue