Skip to content

DTK0055: Command Already Registered

Message

Command "{id}" is already registered

Cause

ctx.commands.register(command) was called twice with the same id. Command ids must be globally unique across all registered integrations because the palette merges them by id.

Fix

Pick a different namespaced id (e.g. my-plugin:do-thing), or use the handle returned from the original register call to mutate the existing command:

ts
const handle = ctx.commands.register({ id: 'my-plugin:open', title: 'Open', handler: () => {} })
handle.update({ title: 'Open File' })

Source

Released under the MIT License.