We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc6423 commit 83bf98dCopy full SHA for 83bf98d
libs/vscode/typescript-plugin/src/lib/plugin-configuration.ts
@@ -84,10 +84,15 @@ export async function getPluginConfiguration(
84
let packageManager: Configuration['packageManager'] =
85
await detectPackageManager(workspaceRoot);
86
if (packageManager === 'yarn') {
87
- const yarnVersion = await getPackageManagerVersion(
88
- packageManager,
89
- workspaceRoot,
90
- );
+ let yarnVersion;
+ try {
+ yarnVersion = await getPackageManagerVersion(
+ packageManager,
91
+ workspaceRoot,
92
+ );
93
+ } catch {
94
+ yarnVersion = '1.0.0';
95
+ }
96
if (lt(yarnVersion, '2.0.0')) {
97
packageManager = 'yarn-classic';
98
}
0 commit comments