Skip to content

Commit

Permalink
remove maximum version limit
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Oct 6, 2024
1 parent 8797eec commit 839ec91
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/sessionManager.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -21,9 +18,6 @@ export async function getPyrightVersions(): Promise<string[]> {
// Return the latest version first.
versions = versions.reverse();

// Limit the number of versions returned.
versions = versions.slice(0, maxPyrightVersionCount);

return versions;
})
.catch((err) => {
Expand Down

0 comments on commit 839ec91

Please sign in to comment.