We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a83c9a4 commit f2ad8acCopy full SHA for f2ad8ac
1 file changed
src/vs/platform/update/electron-main/updateService.win32.ts
@@ -237,10 +237,10 @@ export class Win32UpdateService extends AbstractUpdateService {
237
});
238
239
const readyMutexName = `${product.win32MutexName}-ready`;
240
- const isActive = (require.__$__nodeRequire('windows-mutex') as any).isActive;
+ const mutex = await import('windows-mutex');
241
242
// poll for mutex-ready
243
- pollUntil(() => isActive(readyMutexName))
+ pollUntil(() => mutex.isActive(readyMutexName))
244
.then(() => this.setState(State.Ready(update)));
245
}
246
0 commit comments