debug smoke: Force load from disk since file events are sometimes missing

fixes #51296
This commit is contained in:
isidor
2018-06-07 15:34:10 +02:00
parent cf10e47b42
commit eb6a58287d

View File

@@ -25,6 +25,8 @@ export function setup() {
config.configurations[0].protocol = 'inspector';
fs.writeFileSync(launchJsonPath, JSON.stringify(config, undefined, 4), 'utf8');
// force load from disk since file events are sometimes missing
await app.workbench.quickopen.runCommand('File: Revert File');
await app.workbench.editor.waitForEditorContents('launch.json', contents => /"protocol": "inspector"/.test(contents));
assert.equal(config.configurations[0].request, 'launch');
@@ -110,4 +112,4 @@ export function setup() {
await app.workbench.debug.stopDebugging();
});
});
}
}