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

[FEEDBACK] Reload all packages after setVersions #21

Open
seho-dev opened this issue Sep 25, 2022 · 2 comments
Open

[FEEDBACK] Reload all packages after setVersions #21

seho-dev opened this issue Sep 25, 2022 · 2 comments
Assignees

Comments

@seho-dev
Copy link

I am writing a web ide, and I use this plugin for the first time. I want to reload all package versions after I setversions. For example, react has been loaded at this time. When setversions, there is no react dependency, so monaco needs to reload The import of react is marked in red

@seho-dev
Copy link
Author

  public setVersions(versions: { [packageName: string]: string }) {
    this.versions = versions;
    this.options.onUpdateVersions?.(versions);
    // TODO reload packages whose version has changed
  }

Or can the respected author tell me the implementation idea of reload, I am willing to submit a pull request for the warehouse

@seho-dev
Copy link
Author

@lukasbach

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

2 participants