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.
*--------------------------------------------------------------------------------------------*/
/**
* This class has a very specific purpose:
*
* It can return convert offset within a decoded JSON string to offset within the encoded JSON string.
*/
export class JsonStringScanner {
private resultChars = 0;
private pos = 0;
/**
*
* @param text the encoded JSON string
* @param pos must not include ", ie must be `stringJSONNode.offset + 1`
*/
constructor(private readonly text: string, initialPos: number /* offset within `text` */) {
this.pos = initialPos;
}
// note that we don't do bound checks here, because we know that the offset is within the string
getOffsetInEncoded(offsetDecoded: number) {
start pos
resultChars offsetDecoded
start
ch textpos
ch CharacterCodesbackslash
start pos
pos
ch2 textpos
ch2
CharacterCodesdoubleQuote
CharacterCodesbackslash
CharacterCodesslash
CharacterCodesb
CharacterCodesf
CharacterCodesn
CharacterCodesr
CharacterCodest
resultChars
CharacterCodesu
ch3
ch3
resultChars Stringch3length
start pos
pos
resultChars
count exact
digits
value
digits count exact
ch textpos
ch CharacterCodes_0 ch CharacterCodes_9
value value ch CharacterCodes_0
ch CharacterCodes ch CharacterCodes
value value ch CharacterCodes
ch CharacterCodesa ch CharacterCodesf
value value ch CharacterCodesa
pos
digits
digits count
value
value
CharacterCodes
lineFeed
carriageReturn
space
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
asterisk
backslash
closeBrace
closeBracket
colon
comma
dot
doubleQuote
minus
openBrace
openBracket
plus
slash
formFeed
tab