monaco-editor-auto-typings icon indicating copy to clipboard operation
monaco-editor-auto-typings copied to clipboard

[FEEDBACK] Reload all packages after setVersions

Open seho-dev opened this issue 3 years ago • 2 comments

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 avatar Sep 25 '22 11:09 seho-dev

  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 avatar Sep 25 '22 11:09 seho-dev

@lukasbach

seho-dev avatar Sep 26 '22 14:09 seho-dev