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 | d45ce41f6476a96cd0e4d375f7cd00393865d9cf (patch) | |
tree | 5ab1963dd0836a1dc86980c16f1c98b4afe40815 /extension/src | |
parent | 96483ac8c7603c594766c3a6f6abd279c7f85da4 (diff) | |
download | sncontinue-d45ce41f6476a96cd0e4d375f7cd00393865d9cf.tar.gz sncontinue-d45ce41f6476a96cd0e4d375f7cd00393865d9cf.tar.bz2 sncontinue-d45ce41f6476a96cd0e4d375f7cd00393865d9cf.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]); } } |