When changing the theme through the DBCode ER Diagram Theme dropdown, the theme change itself appears to complete successfully. However, after closing and reopening the ER Diagram, the diagram rendering becomes corrupted.
The issue does not necessarily occur immediately after selecting a new theme. Instead, it manifests when the ER Diagram is reopened, at which point the layout and visualization are rendered incorrectly.
Steps to Reproduce
- Open an ER Diagram in DBCode.
- Change the theme using the Theme dropdown (Auto, Light, Dark, or Custom).
- Close the ER Diagram tab.
- Reopen the same ER Diagram.
- Observe the diagram rendering.
Expected Behavior
The ER Diagram should render correctly after reopening, regardless of the selected theme. Table positions, relationship lines, and overall layout should remain intact.
Actual Behavior
After changing the theme using the DBCode ER Diagram Theme feature and reopening the ER Diagram:
- The ER Diagram layout becomes distorted.
- Relationship lines disappear completely.
- Font color changed.
- The diagram rendering becomes visually broken and unusable.
Workaround
The issue persists even after reopening the ER Diagram. To restore the diagram correctly, all of the following steps are required:
- Clear the VS Code WebView cache.
- Reset the VS Code theme to the default theme.
- Restart VS Code.
Only after performing these steps does the ER Diagram render correctly again.
Environment
- VS Code Version:
1.122.1
- DBCode Extension Version:
1.32.1
- OS:
Windows
Distorted Diagram After Theme Change
Developer Console Errors

When changing the theme through the DBCode ER Diagram Theme dropdown, the theme change itself appears to complete successfully. However, after closing and reopening the ER Diagram, the diagram rendering becomes corrupted.
The issue does not necessarily occur immediately after selecting a new theme. Instead, it manifests when the ER Diagram is reopened, at which point the layout and visualization are rendered incorrectly.
Steps to Reproduce
Expected Behavior
The ER Diagram should render correctly after reopening, regardless of the selected theme. Table positions, relationship lines, and overall layout should remain intact.
Actual Behavior
After changing the theme using the DBCode ER Diagram Theme feature and reopening the ER Diagram:
Workaround
The issue persists even after reopening the ER Diagram. To restore the diagram correctly, all of the following steps are required:
Only after performing these steps does the ER Diagram render correctly again.
Environment
1.122.11.32.1WindowsDistorted Diagram After Theme Change
Developer Console Errors