Always open launch.json if it already exists but is empty when "configuring"

Fix #133327
This commit is contained in:
Rob Lourens
2021-09-17 09:53:34 -07:00
parent 1285687b03
commit fcf54f8935
@@ -575,10 +575,6 @@ class Launch extends AbstractLaunch implements ILaunch {
}
}
if (content === '') {
return { editor: null, created: false };
}
const index = content.indexOf(`"${this.configurationManager.selectedConfiguration.name}"`);
let startLineNumber = 1;
for (let i = 0; i < index; i++) {