mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat * build: rewrite imports for nodenext compat * build: re-generate
This commit is contained in:
@@ -3,15 +3,18 @@
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getVariableNameValidator = getVariableNameValidator;
|
||||
const fs_1 = require("fs");
|
||||
const path = require("path");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const RE_VAR_PROP = /var\(\s*(--([\w\-\.]+))/g;
|
||||
let knownVariables;
|
||||
function getKnownVariableNames() {
|
||||
if (!knownVariables) {
|
||||
const knownVariablesFileContent = (0, fs_1.readFileSync)(path.join(__dirname, './vscode-known-variables.json'), 'utf8').toString();
|
||||
const knownVariablesFileContent = (0, fs_1.readFileSync)(path_1.default.join(__dirname, './vscode-known-variables.json'), 'utf8').toString();
|
||||
const knownVariablesInfo = JSON.parse(knownVariablesFileContent);
|
||||
knownVariables = new Set([...knownVariablesInfo.colors, ...knownVariablesInfo.others]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user