'use strict';
const os = require('os');
const chalk = require('chalk');

const isSupported = (() => {
	if (process.platform !== 'win32' || process.env.CI) {
		return true;
	}

	if (process.env.ConEmuDir) {
		return false;
	}

	// Windows 10
	const osRelease = os.release().split('.');
	if (
		Number(osRelease[0]) >= 10 &&
		Number(osRelease[2]) >= 10586
	) {
		return true;
	}

	return false;
})();

const main = {
	info: chalk.blue('ℹ'),
	success: chalk.green('✔'),
	warning: chalk.yellow('⚠'),
	error: chalk.red('✖')
};

const fallbacks = {
	info: chalk.blue('i'),
	success: chalk.green('√'),
	warning: chalk.yellow('‼'),
	error: chalk.red('×')
};

module.exports = isSupported ? main : fallbacks;

@@ -11,34 +11,8 @@
 t';%0A
-const os = require('os');%0A
 cons
@@ -64,22 +64,8 @@
 d = 
-(() =%3E %7B%0A%09if (
 proc
@@ -110,253 +110,34 @@
 v.CI
-) %7B%0A%09%09return true;%0A%09%7D%0A%0A%09if (process.env.ConEmuDir) %7B%0A%09%09return false;%0A%09%7D%0A%0A%09// Windows 10%0A%09const osRelease = os.release().split('.');%0A%09if (%0A%09%09Number(osRelease%5B0%5D) %3E= 10 &&%0A%09%09Number(osRelease%5B2%5D) %3E= 10586%0A%09) %7B%0A%09%09return true;%0A%09%7D%0A%0A%09return false;%0A%7D)()
+ %7C%7C process.env.VSCODE_PID
 ;%0A%0Ac

Revert Windows support (#13)