ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Parses a standard .env/.envrc file into a map of the environment variables
* it defines.
*
* todo@connor4312: this can go away (if only used in Node.js targets) and be
* replaced with `util.parseEnv`. However, currently calling that makes the
* extension host crash.
*/
export function parseEnvFile(src: string) {
const result = new Map<string, string>();
// Normalize line breaks
const normalizedSrc = src.replace(/\r\n?/g, '\n');
const lines = normalizedSrc.split('\n')
line lines
line line
line line
key value line
key
resultkey value
result
line
line
line line
separatorIndex line c c c
separatorIndex
key line separatorIndex
value lineseparatorIndex
commentIndex value c c
commentIndex
value value commentIndex
valuelength
firstChar value
lastChar valuevaluelength
firstChar lastChar
firstChar lastChar
firstChar lastChar
value value valuelength
firstChar
value value
key value
text char
inQuote
quoteChar
i i textlength i
char texti
inQuote
char quoteChar texti
inQuote
char char char
inQuote
quoteChar char
char
i