File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
extensions/vscode/src/util Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ export function getRangeInFileWithContents(
9494export 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,
You can’t perform that action at this time.
0 commit comments