Skip to content

Commit 37c0fa1

Browse files
isidorngregg-miskelly
authored andcommitted
If the config looks functional return it, otherwise force VSCode to open a configuration file
microsoft/vscode#54213
1 parent 44536b3 commit 37c0fa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/configurationProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ export class CSharpConfigurationProvider implements vscode.DebugConfigurationPro
140140
config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.fsPath), config);
141141
}
142142

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

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

0 commit comments

Comments
 (0)