File tree 3 files changed +27
-13
lines changed
3 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lldb-dap" ,
3
3
"displayName" : " LLDB DAP" ,
4
- "version" : " 0.2.9 " ,
4
+ "version" : " 0.2.10 " ,
5
5
"publisher" : " llvm-vs-code-extensions" ,
6
6
"homepage" : " https://lldb.llvm.org" ,
7
7
"description" : " LLDB debugging from VSCode" ,
27
27
" Debuggers"
28
28
],
29
29
"devDependencies" : {
30
- "@types/node" : " ^18.11.18 " ,
30
+ "@types/node" : " ^18.19.41 " ,
31
31
"@types/vscode" : " 1.75.0" ,
32
32
"@vscode/vsce" : " ^3.2.2" ,
33
33
"prettier-plugin-curly" : " ^0.3.1" ,
86
86
"default" : {},
87
87
"description" : " The environment of the lldb-dap process." ,
88
88
"additionalProperties" : {
89
- "type" : " string"
89
+ "type" : " string"
90
90
}
91
91
}
92
92
}
152
152
" program"
153
153
],
154
154
"properties" : {
155
+ "debugAdapterExecutable" : {
156
+ "type" : " string" ,
157
+ "markdownDescription" : " The absolute path to the LLDB debug adapter executable to use."
158
+ },
155
159
"program" : {
156
160
"type" : " string" ,
157
161
"description" : " Path to the program to debug."
338
342
},
339
343
"attach" : {
340
344
"properties" : {
345
+ "debugAdapterExecutable" : {
346
+ "type" : " string" ,
347
+ "markdownDescription" : " The absolute path to the LLDB debug adapter executable to use."
348
+ },
341
349
"program" : {
342
350
"type" : " string" ,
343
351
"description" : " Path to the program to attach to."
Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ async function findDAPExecutable(): Promise<string | undefined> {
50
50
const executable = process . platform === "win32" ? "lldb-dap.exe" : "lldb-dap" ;
51
51
52
52
// Prefer lldb-dap from Xcode on Darwin.
53
- const xcrun_dap = findWithXcrun ( executable ) ;
53
+ const xcrun_dap = await findWithXcrun ( executable ) ;
54
54
if ( xcrun_dap ) {
55
55
return xcrun_dap ;
56
56
}
57
57
58
58
// Find lldb-dap in the user's path.
59
- const path_dap = findInPath ( executable ) ;
59
+ const path_dap = await findInPath ( executable ) ;
60
60
if ( path_dap ) {
61
61
return path_dap ;
62
62
}
@@ -67,12 +67,17 @@ async function findDAPExecutable(): Promise<string | undefined> {
67
67
async function getDAPExecutable (
68
68
session : vscode . DebugSession ,
69
69
) : Promise < string | undefined > {
70
+ // Check if the executable was provided in the launch configuration.
71
+ const launchConfigPath = session . configuration [ "debugAdapterExecutable" ] ;
72
+ if ( typeof launchConfigPath === "string" && launchConfigPath . length !== 0 ) {
73
+ return launchConfigPath ;
74
+ }
75
+
76
+ // Check if the executable was provided in the extension's configuration.
70
77
const config = vscode . workspace . getConfiguration (
71
78
"lldb-dap" ,
72
79
session . workspaceFolder ,
73
80
) ;
74
-
75
- // Prefer the explicitly specified path in the extension's configuration.
76
81
const configPath = config . get < string > ( "executable-path" ) ;
77
82
if ( configPath && configPath . length !== 0 ) {
78
83
return configPath ;
You can’t perform that action at this time.
0 commit comments