Skip to content

Commit

Permalink
[infinity-loop-on-auto-install-fails] avoid infinity loop if auto ins…
Browse files Browse the repository at this point in the history
…tall fails (#955)
  • Loading branch information
mtxr committed Sep 7, 2022
1 parent a049e68 commit ed5c08e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export default class DependencyManager implements IExtensionPlugin {
if (dep.args) args.push(...dep.args);
})
progress.report({ message: `Installing "${depNamesString.join(", ")}". Please wait till it finishes. Check the opened terminal for more info.` });
terminal.sendText(`${dependencyManagerSettings.packageManager} ${args.join(" ")}`);
terminal.show();
terminal.sendText("exit 0");
terminal.sendText(`${dependencyManagerSettings.packageManager} ${args.join(" ")} && exit 0`);
});
progress.report({ increment: 100, message: `Finished installing ${depNamesString.join(", ")}` });
});
Expand Down

0 comments on commit ed5c08e

Please sign in to comment.