[Lldb-commits] [lldb] [lldb-dap] Add supported languages in package.json (PR #144414)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 16 12:31:06 PDT 2025
https://github.com/DrSergei created https://github.com/llvm/llvm-project/pull/144414
This patch fixes the [problem](https://github.com/llvm/llvm-project/issues/144239). It was caused by missing supported languages list in `package.json`. VSCode uses `guessDebugger` [function](https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/browser/debugAdapterManager.ts#L344) to find supported debuggers based on supported languages in case of opened file. It uses `interestedInLanguage` [function](https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/common/debugger.ts#L171) to do that, so we should provide list of supported languages. Also, fixed typo in `fortran`.
Before:

After:

>From da1a74c3586286125f6be36bab9780d41169da39 Mon Sep 17 00:00:00 2001
From: Druzhkov Sergei <serzhdruzhok at gmail.com>
Date: Mon, 16 Jun 2025 22:10:48 +0300
Subject: [PATCH] [lldb-dap] Add supported languages in package.json
---
lldb/tools/lldb-dap/package.json | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/lldb/tools/lldb-dap/package.json b/lldb/tools/lldb-dap/package.json
index 0f51c4f935e33..b150dee792c34 100644
--- a/lldb/tools/lldb-dap/package.json
+++ b/lldb/tools/lldb-dap/package.json
@@ -290,7 +290,7 @@
"language": "d"
},
{
- "language": "fortan"
+ "language": "fortran"
},
{
"language": "fortran-modern"
@@ -318,6 +318,22 @@
{
"type": "lldb-dap",
"label": "LLDB DAP Debugger",
+ "languages": [
+ "ada",
+ "arm",
+ "c",
+ "cpp",
+ "crystal",
+ "d",
+ "fortran",
+ "fortran-modern",
+ "nim",
+ "objective-c",
+ "objectpascal",
+ "pascal",
+ "rust",
+ "swift"
+ ],
"configurationAttributes": {
"launch": {
"required": [
More information about the lldb-commits
mailing list