Skip to content

Commit

Permalink
Version bump to
Browse files Browse the repository at this point in the history
  • Loading branch information
mohankumarelec committed Feb 1, 2025
1 parent d1b95db commit 360af01
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 17 deletions.
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 17 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
20 changes: 6 additions & 14 deletions src/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 360af01

Please sign in to comment.