/*---------------------------------------------------------------------------------------------* Copyright (c) Microsoft Corporation. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/import './bootstrap-server.js'; // this MUST come before other imports as it changes global stateimport { dirname, join } from 'path';import { fileURLToPath } from 'url';import { devInjectNodeModuleLookupPath } from './bootstrap-node.js';import { bootstrapESM } from './bootstrap-esm.js';import { resolveNLSConfiguration } from './vs/base/node/nls.js';import { product } from './bootstrap-meta.js';const __dirname = dirname(fileURLToPath(import.meta.url));// NLSconst nlsConfiguration = await resolveNLSConfiguration({ userLocale: 'en', osLocale: 'en', commit: product.commit, userDataPath: '', nlsMetadataPath: __dirname });process.env['VSCODE_NLS_CONFIG'] = JSON.stringify(nlsConfiguration); // required for `bootstrap-esm` to pick up NLS messagesif (process.env['VSCODE_DEV']) {// When running out of sources, we need to load node modules from remote/node_modules,// which are compiled against nodejs, not electronprocess.env['VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH'] = process.env['VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH'] || join(__dirname, '..', 'remote', 'node_modules');devInjectNodeModuleLookupPath(process.env['VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH']);} else {delete process.env['VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH'];}// Bootstrap ESMawait bootstrapESM();// Load Serverawait import('./vs/server/node/server.cli.js');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。