Release the resource. Resolves once the player confirmed the release (or immediately for purely local resources). Never rejects.
A "Turn feature off" item removes the feature's own menu item at once,
before the plugin stops. dispose takes the command out of the menu and
the binding table and resolves once the player confirmed it; the id can
be added again later.
const extra = plugin.commands.add({ id: "extra", path: ["Tools", "Extra"], run() {} });
plugin.commands.add({
id: "extra-off",
path: ["Tools", "Turn extra off"],
run: () => extra.dispose(), // never rejects
});
ReadonlyreadyResolves when the player registered it; rejects otherwise: conflict
when another resolver has the extension or the scheme + host (another
plugin's: activation goes on; this plugin's own: activation fails),
invalid for a malformed declaration (a player before 0.4.1 also for
extensions).
A registered resolver. Disposing it unregisters it and aborts resolutions in flight.
Remarks
A registered resolver, from Resolvers.add. Disposing it, its scope or stopping the plugin unregisters it and aborts resolutions in flight; the extensions or hosts are free again for other plugins.
Example: Report when another plugin already handles the format
The plugin tells the user when its
.ch8resolver could not register because another plugin holds that extension.readyrejects withconflict; for another plugin's claim that does not fail activation, so the plugin keeps running without the resolver.Since
1.0.0