Path: blob/main/extensions/copilot/src/util/vs/vscode-globals-nls.d.ts
13397 views
//!!! DO NOT modify, this file was COPIED from 'microsoft/vscode'12/*---------------------------------------------------------------------------------------------3* Copyright (c) Microsoft Corporation. All rights reserved.4* Licensed under the MIT License. See License.txt in the project root for license information.5*--------------------------------------------------------------------------------------------*/67// AMD2ESM migration relevant89/**10* NLS Globals: these need to be defined in all contexts that make11* use of our `nls.localize` and `nls.localize2` functions. This includes:12* - Electron main process13* - Electron window (renderer) process14* - Utility Process15* - Node.js16* - Browser17* - Web worker18*19* That is because during build time we strip out all english strings from20* the resulting JS code and replace it with a <number> that is then looked21* up from the `_VSCODE_NLS_MESSAGES` array.22*/23declare global {24/**25* All NLS messages produced by `localize` and `localize2` calls26* under `src/vs` translated to the language as indicated by27* `_VSCODE_NLS_LANGUAGE`.28*29* Instead of accessing this global variable directly, use function getNLSMessages.30*/31var _VSCODE_NLS_MESSAGES: string[];32/**33* The actual language of the NLS messages (e.g. 'en', de' or 'pt-br').34*35* Instead of accessing this global variable directly, use function getNLSLanguage.36*/37var _VSCODE_NLS_LANGUAGE: string | undefined;38}3940// fake export to make global work41export { }424344