[Lldb-commits] [lldb] [lldb-dap] Add process picker command to VS Code extension (PR #197513)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 14 09:50:08 PDT 2026
================
@@ -0,0 +1,47 @@
+import * as vscode from "vscode";
+
+/**
+ * Context captured at debug-configuration-resolution time so that the
+ * `lldb-dap.pickProcess` command (invoked later by VS Code's variable
+ * substitution for `${command:pickProcess}`) can target the correct lldb-dap
+ * binary and platform.
+ *
+ * VS Code's command substitution does not pass the in-flight debug
+ * configuration to the command handler, so we stash it here instead. The flow
+ * is:
+ *
+ * 1. `resolveDebugConfiguration(folder, config)` → `set(...)`
+ * 2. VS Code expands `${command:pickProcess}` → `take()`
+ * 3. `resolveDebugConfigurationWithSubstitutedVariables(...)`
----------------
JDevlieghere wrote:
The last commit removes the indirection. LMK what you think.
https://github.com/llvm/llvm-project/pull/197513
More information about the lldb-commits
mailing list