mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 20:37:13 -05:00
debug smoke: Force load from disk since file events are sometimes missing
fixes #51296
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user