Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically detect package manager #117

Open
scripthunter7 opened this issue Nov 8, 2023 · 0 comments
Open

Automatically detect package manager #117

scripthunter7 opened this issue Nov 8, 2023 · 0 comments
Assignees

Comments

@scripthunter7
Copy link
Member

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:

  • pass detected package manager from client to server
  • an alternative solution might be to detect the lock file type (VSCode also does this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants