typespec icon indicating copy to clipboard operation
typespec copied to clipboard

Fixer for missing package import that install

Open nguerrera opened this issue 3 years ago • 2 comments

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 avatar Jul 12 '22 17:07 nguerrera

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

nguerrera avatar Jul 12 '22 18:07 nguerrera

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

timotheeguerin avatar Aug 09 '23 18:08 timotheeguerin

dup of #5633

RodgeFu avatar May 28 '25 03:05 RodgeFu