https://github.com/JDevlieghere created 
https://github.com/llvm/llvm-project/pull/137485

Change the scope [1] of lldb-dap.executable-path to "machine-overridable":

> Machine specific settings that can be overridden by workspace or
> folder settings.

Practically speaking, this means that the path won't be synced across machines 
and "(Not synced)" will show up next to the setting. I believe it doesn't make 
sense to sync this setting (and I remember a bug report where this caused 
trouble when using VS Code remotely), plus it matches what clangd does for its 
corresponding setting.

[1] 
https://code.visualstudio.com/api/references/contribution-points#Configuration-property-schema

>From ad5a6c59685f1c298455e0384391823dfe2d49ff Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jo...@devlieghere.com>
Date: Sat, 26 Apr 2025 19:31:27 -0700
Subject: [PATCH] [lldb-dap] Make lldb-dap.executable-path machine specific

Change the scope [1] of lldb-dap.executable-path to
"machine-overridable":

> Machine specific settings that can be overridden by workspace or
> folder settings.

Practically speaking, this means that the path won't be synced across
machines and "(Not synced)" will show up next to the setting. I believe
it doesn't make sense to sync this setting (and I remember a bug report
where this caused trouble when using VS Code remotely), plus it matches
what clangd does for its corresponding setting.

[1] 
https://code.visualstudio.com/api/references/contribution-points#Configuration-property-schema
---
 lldb/tools/lldb-dap/package.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lldb/tools/lldb-dap/package.json b/lldb/tools/lldb-dap/package.json
index 3957e3f27f297..c25d5033d09f1 100644
--- a/lldb/tools/lldb-dap/package.json
+++ b/lldb/tools/lldb-dap/package.json
@@ -74,7 +74,8 @@
         "lldb-dap.executable-path": {
           "scope": "resource",
           "type": "string",
-          "description": "The path to the lldb-dap binary."
+          "scope": "machine-overridable",
+          "description": "The path to the lldb-dap binary, e.g. 
/usr/local/bin/lldb-dap"
         },
         "lldb-dap.arguments": {
           "scope": "resource",

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to