mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
JetBrains: clear last autocomplete candidate after acceptance (#56505)
clear last candidate after acceptance
This commit is contained in:
parent
83166945fa
commit
ccb7e35979
@ -61,4 +61,7 @@ public interface CodyAgentServer {
|
||||
|
||||
@JsonNotification("debug/message")
|
||||
void debugMessage(DebugMessage message);
|
||||
|
||||
@JsonNotification("autocomplete/clearLastCandidate")
|
||||
void autocompleteClearLastCandidate();
|
||||
}
|
||||
|
||||
@ -51,6 +51,7 @@ public class AcceptCodyAutocompleteAction extends EditorAction {
|
||||
CodyAutocompleteManager.getInstance().getCurrentAutocompleteTelemetry();
|
||||
GraphQlLogger.logAutocompleteAcceptedEvent(
|
||||
project, telemetry != null ? telemetry.params() : null);
|
||||
server.autocompleteClearLastCandidate();
|
||||
acceptAgentAutocomplete(editor, maybeCaret);
|
||||
} else {
|
||||
Optional.ofNullable(maybeCaret)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user