debug: put user data dir in home dir, update versions of things (#189855)

This commit is contained in:
Connor Peet
2023-08-07 11:46:38 -07:00
committed by GitHub
parent 4083eeefc1
commit 6004a9f716
3 changed files with 6 additions and 5 deletions

2
.nvmrc
View File

@@ -1 +1 @@
16.17
18.15

1
.vscode/launch.json vendored
View File

@@ -244,6 +244,7 @@
"--disable-features=CalculateNativeWinOcclusion",
"--disable-extension=vscode.vscode-api-tests"
],
"userDataDir": "${userHome}/.vscode-oss-dev",
"webRoot": "${workspaceFolder}",
"cascadeTerminateToConfigurations": [
"Attach to Extension Host"

View File

@@ -9,12 +9,12 @@ const majorNodeVersion = parseInt(nodeVersion[1]);
const minorNodeVersion = parseInt(nodeVersion[2]);
const patchNodeVersion = parseInt(nodeVersion[3]);
if (majorNodeVersion < 16 || (majorNodeVersion === 16 && minorNodeVersion < 17)) {
console.error('\033[1;31m*** Please use node.js versions >=16.17.x and <17.\033[0;0m');
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');
err = true;
}
if (majorNodeVersion >= 17) {
console.warn('\033[1;31m*** Warning: Versions of node.js >= 17 have not been tested.\033[0;0m')
if (majorNodeVersion >= 19) {
console.warn('\033[1;31m*** Warning: Versions of node.js >= 19 have not been tested.\033[0;0m')
}
const path = require('path');