blob: 1658945818bd66a918d2a2779684a44c2d683d37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/vs/base/common/platform.ts.orig 2021-03-30 12:04:46 UTC
+++ src/vs/base/common/platform.ts
@@ -97,7 +97,7 @@ if (typeof navigator === 'object' && !isElectronRender
_isWindows = _userAgent.indexOf('Windows') >= 0;
_isMacintosh = _userAgent.indexOf('Macintosh') >= 0;
_isIOS = (_userAgent.indexOf('Macintosh') >= 0 || _userAgent.indexOf('iPad') >= 0 || _userAgent.indexOf('iPhone') >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0;
- _isLinux = _userAgent.indexOf('Linux') >= 0;
+ _isLinux = (_userAgent.indexOf('Linux') >= 0 || _userAgent.indexOf('FreeBSD') >= 0);
_isWeb = true;
_locale = navigator.language;
_language = _locale;
@@ -107,7 +107,7 @@ if (typeof navigator === 'object' && !isElectronRender
else if (typeof nodeProcess === 'object') {
_isWindows = (nodeProcess.platform === 'win32');
_isMacintosh = (nodeProcess.platform === 'darwin');
- _isLinux = (nodeProcess.platform === 'linux');
+ _isLinux = (nodeProcess.platform === 'linux' || nodeProcess.platform === 'freebsd');
_isLinuxSnap = _isLinux && !!nodeProcess.env['SNAP'] && !!nodeProcess.env['SNAP_REVISION'];
_locale = LANGUAGE_DEFAULT;
_language = LANGUAGE_DEFAULT;
|