We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d415b commit 9a94030Copy full SHA for 9a94030
1 file changed
src/vs/base/common/platform.ts
@@ -27,6 +27,7 @@ interface INodeProcess {
27
platform: string;
28
env: IProcessEnvironment;
29
getuid(): number;
30
+ nextTick: Function;
31
}
32
declare let process: INodeProcess;
33
declare let global: any;
@@ -41,7 +42,7 @@ declare let self: any;
41
42
export const LANGUAGE_DEFAULT = 'en';
43
44
// OS detection
-if (typeof process === 'object' && typeof process.getuid === 'function') {
45
+if (typeof process === 'object' && typeof process.nextTick === 'function') {
46
_isWindows = (process.platform === 'win32');
47
_isMacintosh = (process.platform === 'darwin');
48
_isLinux = (process.platform === 'linux');
0 commit comments