@@ -70,7 +70,7 @@ async function findDAPExecutable(): Promise<string | undefined> {
7070}
7171
7272async function getDAPExecutable (
73- folder : vscode . WorkspaceFolder | undefined ,
73+ workspaceFolder : vscode . WorkspaceFolder | undefined ,
7474 configuration : vscode . DebugConfiguration ,
7575) : Promise < string | undefined > {
7676 // Check if the executable was provided in the launch configuration.
@@ -80,7 +80,7 @@ async function getDAPExecutable(
8080 }
8181
8282 // Check if the executable was provided in the extension's configuration.
83- const config = vscode . workspace . getConfiguration ( "lldb-dap" , folder ) ;
83+ const config = vscode . workspace . getConfiguration ( "lldb-dap" , workspaceFolder ) ;
8484 const configPath = config . get < string > ( "executable-path" ) ;
8585 if ( configPath && configPath . length !== 0 ) {
8686 return configPath ;
@@ -96,7 +96,7 @@ async function getDAPExecutable(
9696}
9797
9898async function getDAPArguments (
99- folder : vscode . WorkspaceFolder | undefined ,
99+ workspaceFolder : vscode . WorkspaceFolder | undefined ,
100100 configuration : vscode . DebugConfiguration ,
101101 userInteractive ?: boolean ,
102102) : Promise < string [ ] | null | undefined > {
@@ -124,33 +124,33 @@ async function getDAPArguments(
124124 }
125125 // Fall back on the workspace configuration
126126 return vscode . workspace
127- . getConfiguration ( "lldb-dap" , folder )
127+ . getConfiguration ( "lldb-dap" , workspaceFolder )
128128 . get < string [ ] > ( "arguments" , [ ] ) ;
129129}
130130
131131/**
132132 * Creates a new {@link vscode.DebugAdapterExecutable} based on the provided workspace folder and
133133 * debug configuration. Assumes that the given debug configuration is for a local launch of lldb-dap.
134134 *
135- * @param folder The {@link vscode.WorkspaceFolder} that the debug session will be launched within
135+ * @param workspaceFolder The {@link vscode.WorkspaceFolder} that the debug session will be launched within
136136 * @param configuration The {@link vscode.DebugConfiguration}
137137 * @param userInteractive Whether or not this was called due to user interaction (determines if modals should be shown)
138138 * @returns
139139 */
140140export async function createDebugAdapterExecutable (
141- folder : vscode . WorkspaceFolder | undefined ,
141+ workspaceFolder : vscode . WorkspaceFolder | undefined ,
142142 configuration : vscode . DebugConfiguration ,
143143 userInteractive ?: boolean ,
144144) : Promise < vscode . DebugAdapterExecutable | undefined > {
145- const config = vscode . workspace . getConfiguration ( "lldb-dap" , folder ) ;
145+ const config = vscode . workspace . getConfiguration ( "lldb-dap" , workspaceFolder ) ;
146146 const log_path = config . get < string > ( "log-path" ) ;
147147 let env : { [ key : string ] : string } = { } ;
148148 if ( log_path ) {
149149 env [ "LLDBDAP_LOG" ] = log_path ;
150150 }
151151 const configEnvironment =
152152 config . get < { [ key : string ] : string } > ( "environment" ) || { } ;
153- const dapPath = await getDAPExecutable ( folder , configuration ) ;
153+ const dapPath = await getDAPExecutable ( workspaceFolder , configuration ) ;
154154
155155 if ( ! dapPath ) {
156156 if ( userInteractive ) {
@@ -172,7 +172,11 @@ export async function createDebugAdapterExecutable(
172172 ...env ,
173173 } ,
174174 } ;
175- const dbgArgs = await getDAPArguments ( folder , configuration , userInteractive ) ;
175+ const dbgArgs = await getDAPArguments (
176+ workspaceFolder ,
177+ configuration ,
178+ userInteractive ,
179+ ) ;
176180 if ( ! dbgArgs ) {
177181 return undefined ;
178182 }
0 commit comments