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

Adrian Vogelsgesang via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 11 06:05:48 PDT 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') {
----------------
vogelsgesang wrote:

> Should we shorten the path to /launch?

Shortened to `/start`, since we support both `/start?request=launch` and `/start?request=attach` with this handler

> Or we could take the search params as keys into the launch config like:

Are we willing to keep the list of string / integer keys up-to-date in the long term in the `LaunchUriHandler`?
Happy to adjust the PR, if we think this is worth the long-term maintenance.

CC @walter-erquinigo 

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


More information about the lldb-commits mailing list