本文整理汇总了TypeScript中vs/workbench/electron-main/lifecycle.manager类的典型用法代码示例。如果您正苦于以下问题:TypeScript manager类的具体用法?TypeScript manager怎么用?TypeScript manager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了manager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: quitAndUpdate
private quitAndUpdate(rawQuitAndUpdate: () => void): void {
Lifecycle.quit().done(vetod => {
if (vetod) {
return;
}
rawQuitAndUpdate();
});
}
示例2: quitAndUpdate
private quitAndUpdate(updatePackagePath: string): void {
Lifecycle.quit().done(vetod => {
if (vetod) {
return;
}
cp.spawn(updatePackagePath, ['/silent', '/mergetasks=runcode,!desktopicon,!quicklaunchicon'], {
detached: true,
stdio: ['ignore', 'ignore', 'ignore']
});
});
}
示例3: quitAndUpdate
private quitAndUpdate(rawQuitAndUpdate: () => void): void {
Lifecycle.quit().done(vetod => {
if (vetod) {
return;
}
// for some reason updating on Mac causes the local storage not to be flushed.
// we workaround this issue by forcing an explicit flush of the storage data.
// see also https://github.com/Microsoft/vscode/issues/172
if (platform.isMacintosh) {
electron.session.defaultSession.flushStorageData();
}
rawQuitAndUpdate();
});
}