From 9ed56fdc0c8bd8b9b6c9af17dd31c4649ae292fd Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 27 Sep 2018 11:36:59 +0200 Subject: [PATCH] If the config looks functional return it, otherwise force VSCode to open a configuration file https://github.com/Microsoft/vscode/issues/54213 --- src/configurationProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/configurationProvider.ts b/src/configurationProvider.ts index e81b262a8..436741c40 100644 --- a/src/configurationProvider.ts +++ b/src/configurationProvider.ts @@ -140,9 +140,9 @@ export class CSharpConfigurationProvider implements vscode.DebugConfigurationPro config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.path), 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' };