refactor: 🔥 don't check for old extensions version
This commit is contained in:
parent
1905f31947
commit
bf79b7b940
1 changed files with 0 additions and 28 deletions
|
|
@ -56,34 +56,6 @@ export async function activateExtension(context: vscode.ExtensionContext) {
|
|||
} catch (e) {
|
||||
console.log("Error getting workspace folder: ", e);
|
||||
}
|
||||
// Before anything else, check whether this is an out-of-date version of the extension
|
||||
// Do so by grabbing the package.json off of the GitHub repository for now.
|
||||
fetch(PACKAGE_JSON_RAW_GITHUB_URL)
|
||||
.then(async (res) => res.json())
|
||||
.then((packageJson) => {
|
||||
const n1 = getExtensionVersionInt(packageJson.version);
|
||||
const n2 = getExtensionVersionInt(getExtensionVersion());
|
||||
if (Math.abs(n1 - n2) > 1) {
|
||||
// Accept up to 1 version difference
|
||||
vscode.window.showInformationMessage(
|
||||
`You are using an out-of-date version of the Continue extension. Please update to the latest version.`
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch((e) => console.log("Error checking for extension updates: ", e));
|
||||
|
||||
// Add to python.analysis.extraPaths global setting
|
||||
// const pythonConfig = vscode.workspace.getConfiguration("python");
|
||||
// const extraPaths = pythonConfig.get<string[]>("analysis.extraPaths");
|
||||
// const pathToAdd = path.join(os.homedir(), ".continue", "server");
|
||||
// if (extraPaths) {
|
||||
// if (!extraPaths.includes(pathToAdd)) {
|
||||
// extraPaths.push(pathToAdd);
|
||||
// pythonConfig.update("analysis.extraPaths", extraPaths);
|
||||
// }
|
||||
// } else {
|
||||
// pythonConfig.update("analysis.extraPaths", [pathToAdd]);
|
||||
// }
|
||||
|
||||
// Register commands and providers
|
||||
registerAllCodeLensProviders(context);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue