fix(external_editor): only auto-detect when no editors configured

This commit is contained in:
2026-05-07 21:08:07 -04:00
parent fa0026371d
commit f137295e92
2 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -52,7 +52,7 @@ Response = false
"Tool Calls" = false "Tool Calls" = false
Theme = true Theme = true
"Log Management" = true "Log Management" = true
Diagnostics = false Diagnostics = true
"External Tools" = false "External Tools" = false
"Shader Editor" = false "Shader Editor" = false
"Undo/Redo History" = false "Undo/Redo History" = false
@@ -86,6 +86,7 @@ chunk_overlap = 200
provider = "mock" provider = "mock"
collection_name = "manual_slop" collection_name = "manual_slop"
[tools.text_editors.vscode] [tools.text_editors.vscode]
path = "C:\\apps\\Microsoft VS Code Insiders\\Code - Insiders.exe" path = "C:\\apps\\Microsoft VS Code Insiders\\Code - Insiders.exe"
diff_args = [ diff_args = [
+1 -1
View File
@@ -113,9 +113,9 @@ def get_default_launcher() -> ExternalEditorLauncher:
"default_editor": default_editor, "default_editor": default_editor,
}) })
launcher = ExternalEditorLauncher(ext_config) launcher = ExternalEditorLauncher(ext_config)
if not launcher.config.editors:
detected = auto_detect_vscode() detected = auto_detect_vscode()
if detected: if detected:
if not launcher.config.editors:
launcher.config.editors["vscode"] = detected launcher.config.editors["vscode"] = detected
launcher.config.default_editor = "vscode" launcher.config.default_editor = "vscode"
else: else: