Skip to content

refactor: rename dbtSemantic identifiers to erdStudio with compat shims#49

Merged
liam-machine merged 1 commit into
mainfrom
refactor/erd-studio-identifiers
Jun 10, 2026
Merged

refactor: rename dbtSemantic identifiers to erdStudio with compat shims#49
liam-machine merged 1 commit into
mainfrom
refactor/erd-studio-identifiers

Conversation

@liam-machine

Copy link
Copy Markdown
Owner

Summary

The command palette showed "dbt: Create Domain" and all internal identifiers still used the pre-rename dbtSemantic scheme. This renames everything to the ERD Studio brand:

  • Command palette category "dbt""ERD Studio" (all 16 commands)
  • Command IDs, view IDs, custom editor viewType, context keys, color IDs: dbtSemantic.*erdStudio.*; activity bar container dbt-semanticerd-studio
  • Settings dbtSemantic.projectPath / dbtSemantic.semanticDirerdStudio.* (Settings UI now groups under "ERD Studio")
  • Internal URI scheme dbt-semantic-layererd-studio-layer
  • CLAUDE.md "Legacy Internal Identifiers" section rewritten to document the new scheme and the shims below

Backward compatibility for existing users

  • Keybindings: every legacy dbtSemantic.* command ID stays registered in code as a hidden delegate to its erdStudio.* counterpart (LEGACY_ALIASED_COMMANDS in extension.ts) — old keybindings keep working, palette stays clean
  • Settings: new getErdStudioSetting() helper resolves explicit erdStudio.* values first, then explicit dbtSemantic.* values, then the default — users with the old keys configured lose nothing. Old keys remain contributed with deprecation messages pointing to the new ones
  • Accepted one-time resets: activity bar icon position, tree collapse state, and workbench.editorAssociations manually pinned to dbtSemantic.domainEditor (rare; falls back to the default editor association)

Notes: the dbtSemantic.layer.* color contributions were dead (nothing referenced them in src/ or webview/) — renamed rather than removed. No harness content changes, so no HARNESS_VERSION bump.

Test plan

  • npm run compile, npm run build, full suite 377/377 passing
  • package.json parses; viewsWelcome command links, menus, and when-clauses all point at erdStudio.*
  • Manual smoke in Extension Development Host: palette shows "ERD Studio:" prefix, sidebar tree loads, a dbtSemantic.* keybinding still fires

🤖 Generated with Claude Code

The extension kept its original dbtSemantic.* identifier scheme and a
"dbt" command palette category from before the ERD Studio rename, which
surfaced confusingly in the UI (palette showed "dbt: Create Domain",
settings grouped under the old prefix).

Rename commands, views, viewType, context keys, colors, and settings to
erdStudio.* ("erd-studio" container id, "ERD Studio" palette category).
Pre-rename users keep working via two shims: legacy dbtSemantic.*
command IDs stay registered in code as palette-hidden delegates (old
keybindings keep firing), and settings resolve through a helper that
prefers explicit erdStudio.* values then falls back to explicit
dbtSemantic.* values, with the old keys contributed as deprecated.

One-time cosmetic resets for existing users: activity bar position,
tree collapse state, and any workbench.editorAssociations pinned to the
old viewType.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@liam-machine liam-machine merged commit e197902 into main Jun 10, 2026
2 checks passed
@liam-machine liam-machine deleted the refactor/erd-studio-identifiers branch June 10, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant