DTK0050: Dock Already Registered
Message
Dock with id "
{id}" is already registered
Cause
ctx.docks.register(view) is called twice with the same id. The kit's DocksHost enforces unique ids so each dock entry has a stable handle.
Example
ts
ctx.docks.register({ id: 'my-plugin:main', title: 'My Plugin', type: 'iframe', url: '/__foo/' })
ctx.docks.register({ id: 'my-plugin:main', title: 'My Plugin (again)', type: 'iframe', url: '/__foo/' })
// Throws DTK0050Fix
Pick a different id, or call ctx.docks.update(...) to mutate the existing entry. Pass force: true as the second arg to register to intentionally replace the existing entry — this is what the auto-derived dock from createPluginFromDevframe uses internally.
Source
packages/kit/src/node/host-docks.ts—DevToolsDockHost.registerthrowsDTK0050when an id is already inviewsandforcewas not set.