Skip to content

Commit f2ad8ac

Browse files
committed
remove __$__nodeRequire
related to microsoft#74398
1 parent a83c9a4 commit f2ad8ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/update/electron-main/updateService.win32.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ export class Win32UpdateService extends AbstractUpdateService {
237237
});
238238

239239
const readyMutexName = `${product.win32MutexName}-ready`;
240-
const isActive = (require.__$__nodeRequire('windows-mutex') as any).isActive;
240+
const mutex = await import('windows-mutex');
241241

242242
// poll for mutex-ready
243-
pollUntil(() => isActive(readyMutexName))
243+
pollUntil(() => mutex.isActive(readyMutexName))
244244
.then(() => this.setState(State.Ready(update)));
245245
}
246246

0 commit comments

Comments
 (0)