Skip to content

Commit a637584

Browse files
authored
[lldb-dap] Add supported languages in package.json (#144414)
This patch fixes the [problem]. It was caused by missing supported languages list in `package.json`. VSCode uses `guessDebugger` [function] to find supported debuggers based on supported languages in case of opened file. It uses `interestedInLanguage` [function][1] to do that, so we should provide list of supported languages. Also, fixed typo in `fortran`. [problem]: #144239 [function]: https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/browser/debugAdapterManager.ts#L344 [1]: https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/common/debugger.ts#L171
1 parent b0378e7 commit a637584

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

lldb/tools/lldb-dap/package.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"language": "d"
291291
},
292292
{
293-
"language": "fortan"
293+
"language": "fortran"
294294
},
295295
{
296296
"language": "fortran-modern"
@@ -318,6 +318,22 @@
318318
{
319319
"type": "lldb-dap",
320320
"label": "LLDB DAP Debugger",
321+
"languages": [
322+
"ada",
323+
"arm",
324+
"c",
325+
"cpp",
326+
"crystal",
327+
"d",
328+
"fortran",
329+
"fortran-modern",
330+
"nim",
331+
"objective-c",
332+
"objectpascal",
333+
"pascal",
334+
"rust",
335+
"swift"
336+
],
321337
"configurationAttributes": {
322338
"launch": {
323339
"required": [

0 commit comments

Comments
 (0)