You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ScarlettKK that wouldn't work either because we can't reference the name of addons in the core API (xterm.d.ts). This was considered when redesigning the types but trying to come up with a way to get addons back really complicated things and was a bit weird as well since you needed to pass the ctor into getAddon in order to get the instance of it back, see #1128 (comment)
I don't think we should do this because of how seemingly complicated this is to do right and there's a very simple workaround on the embedder side (just keep the reference to the addon object).
As is known, if we need to load some addons for terminal, we should use the following code:
That means we still need the variable
fitAddon
if we want to execute thefit()
function.But this is inconvenient when the project is using modularization, we need to export more variables.
Since the
terminal
has already loaded the addon, can we set agetAddon
API forterminal
? The using will like this:The text was updated successfully, but these errors were encountered: