From b12b35ad4bec98c028a1926e4891e746b1f55d2f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 1 May 2023 14:08:43 -0700 Subject: [lldb] Add debugger.external-editor setting Add a new setting (debugger.external-editor) to specify an external editor. The setting takes precedence over the existing LLDB_EXTERNAL_EDITOR environment variable. Differential revision: https://reviews.llvm.org/D149565 --- lldb/source/Interpreter/CommandInterpreter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp') diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index f89cff4..ba61884 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -3272,7 +3272,8 @@ bool CommandInterpreter::SaveTranscript( const FileSpec file_spec; error = file->GetFileSpec(const_cast(file_spec)); if (error.Success()) { - if (llvm::Error e = Host::OpenFileInExternalEditor(file_spec, 1)) + if (llvm::Error e = Host::OpenFileInExternalEditor( + m_debugger.GetExternalEditor(), file_spec, 1)) result.AppendError(llvm::toString(std::move(e))); } } -- cgit v1.1