-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
Ideally this is a temporary fix for gettingStarted and can be removed once the freeze is fixed in electron. Fixes #3068 Fixes #5067
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
let _isWindows = false; | ||
let _isMacintosh = false; | ||
let _isLinux = false; | ||
let _isRootUser = false; | ||
let _isNative = false; | ||
let _isWeb = false; | ||
let _isQunit = false; | ||
|
@@ -23,6 +24,7 @@ interface NLSConfig { | |
interface INodeProcess { | ||
platform: string; | ||
env: { [key: string]: string; }; | ||
getuid(): number; | ||
} | ||
declare let process: INodeProcess; | ||
declare let global: any; | ||
|
@@ -39,6 +41,7 @@ if (typeof process === 'object') { | |
_isWindows = (process.platform === 'win32'); | ||
_isMacintosh = (process.platform === 'darwin'); | ||
_isLinux = (process.platform === 'linux'); | ||
_isRootUser = !_isWindows && (process.getuid() === 0); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Tyriar
Author
Member
|
||
let vscode_nls_config = process.env['VSCODE_NLS_CONFIG']; | ||
if (vscode_nls_config) { | ||
try { | ||
|
@@ -83,6 +86,7 @@ if (_isNative) { | |
export const isWindows = _isWindows; | ||
export const isMacintosh = _isMacintosh; | ||
export const isLinux = _isLinux; | ||
export const isRootUser = _isRootUser; | ||
export const isNative = _isNative; | ||
export const isWeb = _isWeb; | ||
export const isQunit = _isQunit; | ||
|
@Tyriar we cannot reference node APIs from vs/base/common. Please review https://github.com/Microsoft/vscode/wiki/Code-Organization#layers !