/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import './bootstrap-cli.js'; // this MUST come before other imports as it changes global state6import { configurePortable } from './bootstrap-node.js';7import { bootstrapESM } from './bootstrap-esm.js';8import { resolveNLSConfiguration } from './vs/base/node/nls.js';9import { product } from './bootstrap-meta.js';1011// NLS12const nlsConfiguration = await resolveNLSConfiguration({ userLocale: 'en', osLocale: 'en', commit: product.commit, userDataPath: '', nlsMetadataPath: import.meta.dirname });13process.env['VSCODE_NLS_CONFIG'] = JSON.stringify(nlsConfiguration); // required for `bootstrap-esm` to pick up NLS messages1415// Enable portable support16configurePortable(product);1718// Signal processes that we got launched as CLI19process.env['VSCODE_CLI'] = '1';2021// Bootstrap ESM22await bootstrapESM();2324// Load Server25await import('./vs/code/node/cli.js');262728