提交 eb6a5828 编写于 作者: I isidor

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

fixes #51296
上级 cf10e47b
......@@ -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();
});
});
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册