From 360af0191b369dceb714b5838ff745d201260f3f Mon Sep 17 00:00:00 2001 From: Mohankumar Ramachandran Date: Sat, 1 Feb 2025 22:36:53 +0530 Subject: [PATCH] Version bump to --- package-lock.json | 7 +++++-- package.json | 2 +- src/extension.ts | 17 +++++++++++++++++ src/startup.ts | 20 ++++++-------------- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index f74323f..01b011f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "flexpilot-vscode-extension", - "version": "1.95.1", + "version": "1.97.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "flexpilot-vscode-extension", - "version": "1.95.1", + "version": "1.97.0", "license": "GPL-3.0-only", "dependencies": { "@ai-sdk/anthropic": "^0.0.51", @@ -59,6 +59,9 @@ "typescript-eslint": "^8.12.2", "webpack": "^5.89.0", "webpack-cli": "^5.1.4" + }, + "engines": { + "vscode": "1.97.x" } }, "node_modules/@ai-sdk/anthropic": { diff --git a/package.json b/package.json index 9e3e70e..0312034 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "flexpilot-vscode-extension", "displayName": "Flexpilot", "description": "Open-Source, Native and a True GitHub Copilot Alternative for VS Code", - "version": "1.96.4", + "version": "1.97.0", "icon": "assets/logo.png", "license": "GPL-3.0-only", "pricing": "Free", diff --git a/src/extension.ts b/src/extension.ts index edce748..82b1b47 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -44,6 +44,23 @@ export async function activate(context: vscode.ExtensionContext) { } }); + // Show message to user to hide the default copilot signup page + if (!context.globalState.get("hideWarningMessage")) { + vscode.window + .showWarningMessage( + "If you see a Copilot signup page in the chat panel by default, please click the 'Hide Copilot' button to dismiss it.", + "Hide Default Copilot Sign Up", + "Don't Show Again", + ) + .then((selection) => { + if (selection === "Don't Show Again") { + context.globalState.update("hideWarningMessage", true); + } else if (selection === "Hide Default Copilot Sign Up") { + vscode.commands.executeCommand("workbench.action.chat.hideSetup"); + } + }); + } + // lazy load the extension await (await import("./lazy-load.js")).activate(); } diff --git a/src/startup.ts b/src/startup.ts index 7eb9df0..8e71196 100644 --- a/src/startup.ts +++ b/src/startup.ts @@ -262,20 +262,12 @@ export const updateRuntimeArguments = async () => { let restartMessage = "Flexpilot: Please restart VS Code to apply the latest updates"; - // Hide the chat setup if it is visible - try { - const chatExpConfig = - vscode.workspace.getConfiguration("chat.experimental"); - if (chatExpConfig && chatExpConfig.get("offerSetup") != false) { - chatExpConfig.update( - "offerSetup", - false, - vscode.ConfigurationTarget.Global, - ); - } - } catch (error) { - logger.warn(`Chat setup not found: ${String(error)}`); - } + // Update `chat.commandCenter.enabled` to always true + vscode.workspace.onDidChangeConfiguration(() => { + vscode.workspace + .getConfiguration("chat.commandCenter") + .update("enabled", true, vscode.ConfigurationTarget.Global); + }); // Check if the argv.json file is outdated if (await isArgvJsonOutdated()) {