Only fire completion cycling requests if specifically asked for by the user

This commit is contained in:
Mikayla Maki 2023-04-18 14:53:01 -07:00
parent 8610f3acf3
commit ea1c3fa7a0
3 changed files with 53 additions and 26 deletions

View file

@ -29,7 +29,10 @@ const COPILOT_AUTH_NAMESPACE: &'static str = "copilot_auth";
actions!(copilot_auth, [SignIn, SignOut]);
const COPILOT_NAMESPACE: &'static str = "copilot";
actions!(copilot, [NextSuggestion, PreviousSuggestion, Reinstall]);
actions!(
copilot,
[Suggest, NextSuggestion, PreviousSuggestion, Reinstall]
);
pub fn init(http: Arc<dyn HttpClient>, node_runtime: Arc<NodeRuntime>, cx: &mut AppContext) {
// Disable Copilot for stable releases.