Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Wscats/vscode-explore
/ isRootUser
Function
isRootUser
contextKeyExpr/src/platform.ts:116–118 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
114
export
const
userAgent = _userAgent;
115
116
export
function
isRootUser(): boolean {
117
return
_isNative && !_isWindows && (process.getuid() === 0);
118
}
119
120
/**
121
* The language used
for
the user
interface
. The format of
Callers
nothing calls this directly
Calls
1
getuid
Method · 0.65
Tested by
no test coverage detected