fix(external-editor): Fix TextEditorConfig parsing and add error handling

- TextEditorConfig.from_dict no longer requires 'name' field since name comes from dict key
- Added try/except around _render_external_editor_panel to prevent tab bar mismatch
This commit is contained in:
2026-05-07 19:30:45 -04:00
parent 0948cae5a0
commit 8fe366e041
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -974,7 +974,10 @@ class App:
self._render_external_tools_panel()
imgui.separator()
imgui.text("")
self._render_external_editor_panel()
try:
self._render_external_editor_panel()
except Exception as e:
imgui.text_colored(vec4(1, 0.3, 0.3, 1), f"Error: {str(e)}")
imgui.end_tab_item()
if imgui.begin_tab_item("Workspace Layouts")[0]:
imgui.text("Experimental: Auto-switch layout by Tier")