Skip to content

Commit

Permalink
Read launch from devcontainer (microsoft#23817)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 authored Jul 16, 2024
1 parent 8c18f74 commit 33f423c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export async function getConfigurationsForWorkspace(workspace: WorkspaceFolder):
const filename = path.join(workspace.uri.fsPath, '.vscode', 'launch.json');
if (!(await fs.pathExists(filename))) {
// Check launch config in the workspace file
const codeWorkspaceConfig = getConfiguration('launch');
const codeWorkspaceConfig = getConfiguration('launch', workspace);
if (!codeWorkspaceConfig.configurations || !Array.isArray(codeWorkspaceConfig.configurations)) {
return [];
}
traceLog(`Using launch configuration in workspace folder.`);
traceLog(`Using launch configuration in workspace folder2.`, codeWorkspaceConfig.configurations);
return codeWorkspaceConfig.configurations;
}

Expand Down

0 comments on commit 33f423c

Please sign in to comment.