Skip to content

Commit

Permalink
Better fix for #1057. Use location of workspace file if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Jan 15, 2025
1 parent 3e2ce81 commit 4d4c29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/configprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class CortexDebugConfigurationProvider implements vscode.DebugConfigurati
config: vscode.DebugConfiguration,
token?: vscode.CancellationToken
): vscode.ProviderResult<vscode.DebugConfiguration> {
let cwd = config.cwd || folder?.uri.fsPath || '.';
let cwd = config.cwd || folder?.uri.fsPath || vscode.workspace.workspaceFile?.fsPath || '.';
const isAbsCwd = path.isAbsolute(cwd);
if (!isAbsCwd && folder) {
cwd = path.join(folder.uri.fsPath, cwd);
Expand Down

0 comments on commit 4d4c29c

Please sign in to comment.