chore: replace deprecated octal escape sequences with hex (#197518)

This commit is contained in:
Jithil P Ponnan 2023-12-20 21:00:32 +05:30 committed by GitHub
parent d95f2e01ab
commit 01fc3110be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,11 +11,11 @@ const patchNodeVersion = parseInt(nodeVersion[3]);
if (!process.env['VSCODE_SKIP_NODE_VERSION_CHECK']) { if (!process.env['VSCODE_SKIP_NODE_VERSION_CHECK']) {
if (majorNodeVersion < 18 || (majorNodeVersion === 18 && minorNodeVersion < 15)) { if (majorNodeVersion < 18 || (majorNodeVersion === 18 && minorNodeVersion < 15)) {
console.error('\033[1;31m*** Please use node.js versions >=18.15.x and <19.\033[0;0m'); console.error('\x1b[1;31m*** Please use node.js versions >=18.15.x and <19.\x1b[0;0m');
err = true; err = true;
} }
if (majorNodeVersion >= 19) { if (majorNodeVersion >= 19) {
console.warn('\033[1;31m*** Warning: Versions of node.js >= 19 have not been tested.\033[0;0m') console.warn('\x1b[1;31m*** Warning: Versions of node.js >= 19 have not been tested.\x1b[0;0m')
} }
} }
@ -35,18 +35,18 @@ if (
) || ) ||
majorYarnVersion >= 2 majorYarnVersion >= 2
) { ) {
console.error('\033[1;31m*** Please use yarn >=1.10.1 and <2.\033[0;0m'); console.error('\x1b[1;31m*** Please use yarn >=1.10.1 and <2.\x1b[0;0m');
err = true; err = true;
} }
if (!/yarn[\w-.]*\.c?js$|yarnpkg$/.test(process.env['npm_execpath'])) { if (!/yarn[\w-.]*\.c?js$|yarnpkg$/.test(process.env['npm_execpath'])) {
console.error('\033[1;31m*** Please use yarn to install dependencies.\033[0;0m'); console.error('\x1b[1;31m*** Please use yarn to install dependencies.\x1b[0;0m');
err = true; err = true;
} }
if (process.platform === 'win32') { if (process.platform === 'win32') {
if (!hasSupportedVisualStudioVersion()) { if (!hasSupportedVisualStudioVersion()) {
console.error('\033[1;31m*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.\033[0;0m'); console.error('\x1b[1;31m*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.\x1b[0;0m');
err = true; err = true;
} }
if (!err) { if (!err) {