diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-27 11:03:44 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-27 11:03:44 -0700 |
commit | bedd5f31e7a1d7b915fbb2a47a92f58035c96415 (patch) | |
tree | 028e35ca687a40535a0127b538d1580eef6eb170 /extension/src | |
parent | 3d12cc4ac269f90dfe50eef2830887bff6719a33 (diff) | |
download | sncontinue-bedd5f31e7a1d7b915fbb2a47a92f58035c96415.tar.gz sncontinue-bedd5f31e7a1d7b915fbb2a47a92f58035c96415.tar.bz2 sncontinue-bedd5f31e7a1d7b915fbb2a47a92f58035c96415.zip |
stop completion early, accept all improvements
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/lang-server/codeLens.ts | 4 | ||||
-rw-r--r-- | extension/src/suggestions.ts | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/extension/src/lang-server/codeLens.ts b/extension/src/lang-server/codeLens.ts index 3979b64d..629da0b8 100644 --- a/extension/src/lang-server/codeLens.ts +++ b/extension/src/lang-server/codeLens.ts @@ -28,6 +28,10 @@ class SuggestionsCodeLensProvider implements vscode.CodeLensProvider { title: "Reject ❌", command: "continue.rejectSuggestion", arguments: [suggestion], + }), + new vscode.CodeLens(range, { + title: "(⌘⇧↩/⌘⇧⌫ to accept/reject all)", + command: "", }) ); } diff --git a/extension/src/suggestions.ts b/extension/src/suggestions.ts index 4631c33e..209bf8b2 100644 --- a/extension/src/suggestions.ts +++ b/extension/src/suggestions.ts @@ -246,7 +246,7 @@ function handleAllSuggestions(accept: boolean) { if (!suggestions) return; while (suggestions.length > 0) { - selectSuggestion(accept ? "new" : "old"); + selectSuggestion(accept ? "new" : "old", suggestions[0]); } } |