mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix #74321
This commit is contained in:
parent
5c3b542295
commit
f0f9dd7a12
|
@ -317,8 +317,7 @@ export class ElectronWindow extends Disposable {
|
|||
this.lifecycleService.when(LifecyclePhase.Restored).then(async () => {
|
||||
let isAdmin: boolean;
|
||||
if (isWindows) {
|
||||
const isElevated = await import('native-is-elevated');
|
||||
isAdmin = isElevated();
|
||||
isAdmin = (await import('native-is-elevated'))();
|
||||
} else {
|
||||
isAdmin = isRootUser();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue