Open scripthunter7 opened 1 year ago
VSCode has a command to detect the package manager: npm.packageManager.
npm.packageManager
This setting could be combined with our package manager logic to make the process automatic (in the current solution, user can only set the preferred package manager manually).
References:
import { commands } from 'vscode'; // ... await commands.executeCommand<'npm' | 'pnpm' | 'yarn'>('npm.packageManager')
If I understand correctly, this cannot be used directly in the language server, so there are two options:
VSCode has a command to detect the package manager:
npm.packageManager
.This setting could be combined with our package manager logic to make the process automatic (in the current solution, user can only set the preferred package manager manually).
References:
If I understand correctly, this cannot be used directly in the language server, so there are two options: