[Lldb-commits] [lldb] [lldb-dap] Support vscode launch URLs (PR #125843)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 5 11:01:26 PST 2025


================
@@ -0,0 +1,37 @@
+import * as vscode from "vscode";
+
+export class LaunchUriHandler implements vscode.UriHandler {
+    async handleUri(uri: vscode.Uri) {
+        try {
+            const params = new URLSearchParams(uri.query);
+            if (uri.path == '/launch/config') {
+                const configJson = params.get("config");
+                if (configJson === null) {
+                    throw new Error("Missing `config` URI parameter");
+                }
+                // Build the debug config
----------------
JDevlieghere wrote:

```suggestion
                // Build the debug config.
```

https://github.com/llvm/llvm-project/pull/125843


More information about the lldb-commits mailing list