PluginCommands
Methods
Section titled “Methods”refresh()
Section titled “refresh()”refresh(): void;Reads every command’s enabled and visible again, after something they depend on changed outside the editor.
Returns
Section titled “Returns”void
register()
Section titled “register()”register(command): () => void;Adds a command; returns a function that removes it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
command |
Command |
Returns
Section titled “Returns”() => void