monaco-editor-auto-typings
monaco-editor-auto-typings copied to clipboard
[FEEDBACK] Reload all packages after setVersions
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
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
@lukasbach