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

Fixer for missing package import that does npm install #711

Open
nguerrera opened this issue Jul 12, 2022 · 2 comments
Open

Fixer for missing package import that does npm install #711

nguerrera opened this issue Jul 12, 2022 · 2 comments
Milestone

Comments

@nguerrera
Copy link
Contributor

Combining this with #710, you could do a whole end-to-end experience in the VS Code UI without dropping to the command line. Extensions -> Install cadl, then type, for example, `import "@cadl-lang/rest", then Ctrl+'.' -> select the npm install fix.

@nguerrera
Copy link
Contributor Author

One problem with the fixer is that after you install a lib then you would get a mismatched compiler until you restart. We would also need to do something about that, which I'll take as tracked by #657

@timotheeguerin
Copy link
Member

One issue with this is that users might not be using npm to manage dependencies and if we try to inject with npm it might break their environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants