( webviewProtocol: VsCodeWebviewProtocol | undefined, )
| 92 | } |
| 93 | |
| 94 | export async function addHighlightedCodeToContext( |
| 95 | webviewProtocol: VsCodeWebviewProtocol | undefined, |
| 96 | ) { |
| 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 | // some of this behaviour is reverted and needs further investigation |
| 100 | const rangeInFileWithContents = getRangeInFileWithContents(false); |
| 101 | if (rangeInFileWithContents) { |
| 102 | webviewProtocol?.request("highlightedCode", { |
| 103 | rangeInFileWithContents, |
| 104 | }); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | export async function addEntireFileToContext( |
| 109 | uri: vscode.Uri, |
no test coverage detected