From 839ec91e5b763f393bb8b56e3e5facc1968bfa5b Mon Sep 17 00:00:00 2001 From: detachhead Date: Sun, 6 Oct 2024 19:53:00 +1000 Subject: [PATCH] remove maximum version limit --- client/sessionManager.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/sessionManager.ts b/client/sessionManager.ts index 84f8511..bdceb99 100644 --- a/client/sessionManager.ts +++ b/client/sessionManager.ts @@ -1,8 +1,5 @@ // import _packageJson from 'package-json'; -// Maximum number of pyright versions to return to the caller. -const maxPyrightVersionCount = 50; - export const packageName = 'browser-basedpyright' const packageJson = async (packageName: string) => (await fetch(`https://registry.npmjs.org/${packageName}`)).json() @@ -21,9 +18,6 @@ export async function getPyrightVersions(): Promise { // Return the latest version first. versions = versions.reverse(); - // Limit the number of versions returned. - versions = versions.slice(0, maxPyrightVersionCount); - return versions; }) .catch((err) => {