Skip to content

Commit

Permalink
Fix package manager undefined (#762)
Browse files Browse the repository at this point in the history
#735 uses the
`packageManager` variable that comes from launch configuration instead
of `manager` that was just matched for the given lock file. This results
in packager beeing `undefined`.

Fixes #760

### How Has This Been Tested: 

- Remove node_modules from expo-go project 
- Run IDE in given project
- The IDE should launch
  • Loading branch information
maciekstosio authored Nov 25, 2024
1 parent 3b3b1a2 commit cc2a1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode-extension/src/utilities/packageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function resolvePackageManager(): Promise<PackageManagerInfo | unde
for (const file of files) {
const manager = lockFiles.get(file);
if (manager) {
packageManagerCandidates.push(packageManager);
packageManagerCandidates.push(manager);
}
}

Expand Down

0 comments on commit cc2a1af

Please sign in to comment.