[Lldb-commits] [lldb] [lldb-dap] show dialog when executable is not	found (PR #104711)
    Walter Erquinigo via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Thu Aug 22 12:12:29 PDT 2024
    
    
  
================
@@ -58,6 +64,21 @@ export class LLDBDapExtension extends DisposableContext {
         new LLDBDapDescriptorFactory(this.lldbDapOptions),
       ),
     );
+
+    this.pushSubscription(
+      vscode.workspace.onDidChangeConfiguration((event) => {
+        if (event.affectsConfiguration("lldb-dap.executable-path")) {
+          const dapPath = vscode.workspace
+            .getConfiguration("lldb-dap")
+            .get<string>("executable-path");
+          if (dapPath) {
+            LLDBDapDescriptorFactory.validateDebugAdapterPath(
+              vscode.Uri.file(dapPath),
+            );
+          }
+        }
+      }),
+    );
----------------
walter-erquinigo wrote:
I like this!
https://github.com/llvm/llvm-project/pull/104711
    
    
More information about the lldb-commits
mailing list