mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-25 17:57:50 +01:00
load main.js while waiting for app.isReady, #17108
This commit is contained in:
@@ -199,4 +199,16 @@ function main() {
|
||||
}).done(null, err => instantiationService.invokeFunction(quit, err));
|
||||
}
|
||||
|
||||
main();
|
||||
// Get going once we are ready
|
||||
// TODO@Joh,Joao there more more potential here
|
||||
// we should check for other instances etc while
|
||||
// waiting for getting ready
|
||||
if (app.isReady()) {
|
||||
global.perfAppReady = Date.now();
|
||||
main();
|
||||
} else {
|
||||
app.once('ready', () => {
|
||||
global.perfAppReady = Date.now();
|
||||
main();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user