Skip to content

Fixer for missing package import that install #711

Closed

Description

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.

Activity

  1. nguerrera commented on Jul 12, 2022

    @nguerrera
    ContributorAuthor

    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

  2. timotheeguerin commented on Aug 9, 2023

    @timotheeguerin
    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

  3. changed the title [-]Fixer for missing package import that does npm install[/-] [+]Fixer for missing package import that install[/+] on Mar 26, 2025
  4. RodgeFu commented on May 28, 2025

    @RodgeFu
    Contributor

    dup of #5633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideIssues for VS, VSCode, Monaco, etc.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions