Skip to content

Commit

Permalink
If the config looks functional return it, otherwise force VSCode to o…
Browse files Browse the repository at this point in the history
…pen a configuration file

microsoft/vscode#54213
  • Loading branch information
isidorn authored and gregg-miskelly committed Oct 2, 2018
1 parent 44536b3 commit 37c0fa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/configurationProvider.ts
Expand Up @@ -140,9 +140,9 @@ export class CSharpConfigurationProvider implements vscode.DebugConfigurationPro
config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.fsPath), config);
}

// vsdbg will error check the debug configuration fields
return config;
}
// If the config looks functional return it, otherwise force VSCode to open a configuration file https://github.com/Microsoft/vscode/issues/54213
return config && config.type ? config : null;
}

private static async showFileWarningAsync(message: string, fileName: string) {
const openItem: MessageItem = { title: 'Open envFile' };
Expand Down

0 comments on commit 37c0fa1

Please sign in to comment.