Skip to content

Commit

Permalink
Fix 'envFile' launch.json option on Windows
Browse files Browse the repository at this point in the history
The 'workspaceFolder' subsitution logic was wrong for 'envFile', which broke the feature on Windows. This fixes it.
  • Loading branch information
gregg-miskelly committed Sep 28, 2018
1 parent 0d711ff commit 6c6c4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configurationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class CSharpConfigurationProvider implements vscode.DebugConfigurationPro

// read from envFile and set config.env
if (config.envFile) {
config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.path), config);
config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.fsPath), config);
}

// vsdbg will error check the debug configuration fields
Expand Down

0 comments on commit 6c6c4c9

Please sign in to comment.