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.
*--------------------------------------------------------------------------------------------*/
import * as esbuild from 'esbuild';
import * as path from 'path';
import * as fs from 'fs';
import { SourceMapGenerator } from 'source-map';
import {
TextModel,
analyzeLocalizeCalls,
parseLocalizeKeyOrValue
} from '../lib/nls-analysis.ts';
import type { TextEdit } from './private-to-property.ts';
// ============================================================================
// Types
// ============================================================================
interface NLSEntry {
moduleId
key key comment
message
placeholder
baseDir
collector NLSCollector
entries Map NLSEntry
entry NLSEntry
NLSCollector
entries
entries
entry NLSEntry
entriesentryplaceholder entry
collector NLSCollector
outDir
alsoWriteTo
indexMap Map messageCount
collectorentriessize
indexMap messageCount
sortedEntries collectorentriesa b
aKey akey akey akeykey
bKey bkey bkey bkeykey
moduleCompare amoduleIdbmoduleId
moduleCompare
moduleCompare
aKeybKey
indexMap
sortedEntriesentry idx
indexMapentryplaceholder idx
allMessages
moduleToKeys Map key comment
moduleToMessages Map
entry sortedEntries
allMessagesentrymessage
moduleToKeysentrymoduleId
moduleToKeysentrymoduleId
moduleToMessagesentrymoduleId
moduleToKeysentrymoduleIdentrykey
moduleToMessagesentrymoduleIdentrymessage
nlsKeysJson
moduleId keys moduleToKeys
nlsKeysJsonmoduleId keysk k k kkey
nlsMetadataJson
keys ObjectmoduleToKeys
messages ObjectmoduleToMessages
allOutDirs outDir alsoWriteTo
dir allOutDirs
fspromisesdir recursive
allOutDirsdir
fspromises
pathdir
allMessages
fspromises
pathdir
nlsKeysJson
fspromises
pathdir
nlsMetadataJson
fspromises
pathdir
indexMap messageCount allMessageslength
content
indexMap Map
preserveEnglish
code edits TextEdit
content indexMap preserveEnglish
line
startCol
endCol
newLength
source
moduleId
code entries NLSEntry edits NLSEdit
localizeCalls source
localize2Calls source
taggedLocalize localizeCallscall call isLocalize2
taggedLocalize2 localize2Callscall call isLocalize2
allCalls taggedLocalize taggedLocalize2
a b acallkeySpanstartline bcallkeySpanstartline
acallkeySpanstartcharacter bcallkeySpanstartcharacter
allCallslength
code source entries edits
entries NLSEntry
edits NLSEdit
model source
call isLocalize2 allCalls
keyParsed callkey key comment
messageParsed callvalue
keyString keyParsed keyParsed keyParsedkey
prefix isLocalize2
placeholder
entries
moduleId
key keyParsed
message messageParsed
placeholder
replacementText
edits
line callkeySpanstartline
startCol callkeySpanstartcharacter
endCol callkeySpanendcharacter
newLength replacementTextlength
callkeySpan replacementText
entries
edits
code model entries edits
originalSource
filePath
edits NLSEdit
generator
generatorfilePath originalSource
lines originalSource
editsByLine
edit edits
arr editsByLineeditline
arr
arr
editsByLineeditline arr
arredit
line line lineslength line
smLine line
generator
generated line smLine column
original line smLine column
source filePath
lineEdits editsByLineline
lineEdits
lineEditsa b astartCol bstartCol
cumulativeShift
i i lineEditslength i
edit lineEditsi
origLen editendCol editstartCol
generator
generated line smLine column editstartCol cumulativeShift
original line smLine column editstartCol
source filePath
cumulativeShift editnewLength origLen
nextBound i lineEditslength lineEditsi startCol lineslinelength
origCol editendCol origCol nextBound origCol
generator
generated line smLine column origCol cumulativeShift
original line smLine column origCol
source filePath
generator
content
indexMap Map
preserveEnglish
code edits TextEdit
start end replacement
pending PendingEdit
preserveEnglish
re
m RegExpExecArray
m recontent
inner m
placeholder
index indexMapplaceholder
index
placeholder
index indexMapplaceholder
index
pending start mindex end mindex mlength replacement index
reNLS
m RegExpExecArray
m reNLScontent
inner m
comma m
placeholder
index indexMapplaceholder
index
pending start mindex end mindex mlength replacement
reNLS2
m reNLS2content
inner m
placeholder
index indexMapplaceholder
index
pending start mindex end mindex mlength replacement index
pendinglength
code content edits
pendinga b astart bstart
edits TextEdit
p pending
edits start pstart end pend newText preplacement
parts
lastEnd
p pending
partscontentlastEnd pstart
partspreplacement
lastEnd pend
partscontentlastEnd
code parts edits
options NLSPluginOptions esbuildPlugin
collector options
name
build
build filter args
argspath
source fspromisesargspath
relativePath pathoptionsbaseDir argspath
moduleId relativePath
code entries fileEntries edits source moduleId
entry fileEntries
collectorentry
fileEntrieslength
sourceName pathargspath
sourcemap source sourceName edits
encodedMap Buffersourcemap
contentsWithMap code
contents contentsWithMap loader