insert at cursor, patch

This commit is contained in:
Nate Sesti 2023-07-04 13:56:38 -07:00
parent 4b1d10f3ba
commit b7d1c2ffe7
4 changed files with 18 additions and 18 deletions

View file

@ -174,7 +174,7 @@ class DefaultModelEditCodeStep(Step):
name = await models.gpt3516k.complete(f"Write a very short title to describe this requested change (no quotes): '{self.user_input}'. This is the title:")
self.name = self._cleanup_output(name)
return f"`{self.user_input}`\n\n{self._cleanup_output(description)}"
return f"{self._cleanup_output(description)}"
async def get_prompt_parts(self, rif: RangeInFileWithContents, sdk: ContinueSDK, full_file_contents: str):
# We don't know here all of the functions being passed in.

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.0.107",
"version": "0.0.108",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.0.107",
"version": "0.0.108",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
"version": "0.0.107",
"version": "0.0.108",
"publisher": "Continue",
"engines": {
"vscode": "^1.67.0"

View file

@ -410,21 +410,21 @@ class IdeProtocolClient {
let rangeInFiles: RangeInFile[] = [];
vscode.window.visibleTextEditors.forEach((editor) => {
editor.selections.forEach((selection) => {
if (!selection.isEmpty) {
rangeInFiles.push({
filepath: editor.document.uri.fsPath,
range: {
start: {
line: selection.start.line,
character: selection.start.character,
},
end: {
line: selection.end.line,
character: selection.end.character,
},
// if (!selection.isEmpty) {
rangeInFiles.push({
filepath: editor.document.uri.fsPath,
range: {
start: {
line: selection.start.line,
character: selection.start.character,
},
});
}
end: {
line: selection.end.line,
character: selection.end.character,
},
},
});
// }
});
});
return rangeInFiles;