summaryrefslogtreecommitdiff
path: root/extension/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-04 13:56:38 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-04 13:56:38 -0700
commitb7d1c2ffe7aef8f28cdcf504261dde5594fe84e5 (patch)
treee93723a0274306f56a4a2e261601d3dc4a7e6fc0 /extension/src
parent4b1d10f3bae1f1c80ecf74993f18f318c7b22b7f (diff)
downloadsncontinue-b7d1c2ffe7aef8f28cdcf504261dde5594fe84e5.tar.gz
sncontinue-b7d1c2ffe7aef8f28cdcf504261dde5594fe84e5.tar.bz2
sncontinue-b7d1c2ffe7aef8f28cdcf504261dde5594fe84e5.zip
insert at cursor, patch
Diffstat (limited to 'extension/src')
-rw-r--r--extension/src/continueIdeClient.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts
index c517eb98..b9969858 100644
--- a/extension/src/continueIdeClient.ts
+++ b/extension/src/continueIdeClient.ts
@@ -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;