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 nls from '../../../nls.js';
import { CharCode } from '../../../base/common/charCode.js';
import * as strings from '../../../base/common/strings.js';
import { IViewLineTokens } from '../tokens/lineTokens.js';
import { StringBuilder } from '../core/stringBuilder.js';
import { LineDecoration, LineDecorationsNormalizer } from './lineDecorations.js';
import { LinePart, LinePartMetadata } from './linePart.js';
import { OffsetRange
InlineDecorationType
TextDirection
RenderWhitespace
None
Boundary
Selection
Trailing
All
useMonospaceOptimizations
canUseHalfwidthRightwardsArrow
lineContent
continuesWithWrappedLine
isBasicASCII
containsRTL
fauxIndentLength
lineTokens IViewLineTokens
lineDecorations LineDecoration
tabSize
startVisibleColumn
spaceWidth
middotWidth
wsmiddotWidth
stopRenderingLineAfter
renderWhitespace
renderControlCharacters
fontLigatures
selectionsOnLine OffsetRange
textDirection TextDirection
verticalScrollbarSize
renderNewLineWhenEmpty
useMonospaceOptimizations
canUseHalfwidthRightwardsArrow
lineContent
continuesWithWrappedLine
isBasicASCII
containsRTL
fauxIndentLength
lineTokens IViewLineTokens
lineDecorations LineDecoration
tabSize
startVisibleColumn
spaceWidth
renderSpaceWidth
renderSpaceCharCode
stopRenderingLineAfter
renderWhitespace RenderWhitespace
renderControlCharacters
fontLigatures
textDirection TextDirection
verticalScrollbarSize
selectionsOnLine OffsetRange
renderNewLineWhenEmpty
containsRTL textDirection TextDirection
useMonospaceOptimizations
canUseHalfwidthRightwardsArrow
lineContent
continuesWithWrappedLine
isBasicASCII
containsRTL
fauxIndentLength
lineTokens IViewLineTokens
lineDecorations LineDecoration
tabSize
startVisibleColumn
spaceWidth
middotWidth
wsmiddotWidth
stopRenderingLineAfter
renderWhitespace
renderControlCharacters
fontLigatures
selectionsOnLine OffsetRange
textDirection TextDirection
verticalScrollbarSize
renderNewLineWhenEmpty
useMonospaceOptimizations useMonospaceOptimizations
canUseHalfwidthRightwardsArrow canUseHalfwidthRightwardsArrow
lineContent lineContent
continuesWithWrappedLine continuesWithWrappedLine
isBasicASCII isBasicASCII
containsRTL containsRTL
fauxIndentLength fauxIndentLength
lineTokens lineTokens
lineDecorations lineDecorationsLineDecorationcompare
tabSize tabSize
startVisibleColumn startVisibleColumn
spaceWidth spaceWidth
stopRenderingLineAfter stopRenderingLineAfter
renderWhitespace
renderWhitespace
RenderWhitespaceAll
renderWhitespace
RenderWhitespaceBoundary
renderWhitespace
RenderWhitespaceSelection
renderWhitespace
RenderWhitespaceTrailing
RenderWhitespaceNone
renderControlCharacters renderControlCharacters
fontLigatures fontLigatures
selectionsOnLine selectionsOnLine selectionsOnLinea b astart bstart
renderNewLineWhenEmpty renderNewLineWhenEmpty
textDirection textDirection
verticalScrollbarSize verticalScrollbarSize
wsmiddotDiff MathwsmiddotWidth spaceWidth
middotDiff MathmiddotWidth spaceWidth
wsmiddotDiff middotDiff
renderSpaceWidth wsmiddotWidth
renderSpaceCharCode
renderSpaceWidth middotWidth
renderSpaceCharCode
otherSelections OffsetRange
selectionsOnLine
otherSelections
otherSelections
otherSelectionslength selectionsOnLinelength
i i selectionsOnLinelength i
selectionsOnLineiotherSelectionsi
other RenderLineInput
useMonospaceOptimizations otheruseMonospaceOptimizations
canUseHalfwidthRightwardsArrow othercanUseHalfwidthRightwardsArrow
lineContent otherlineContent
continuesWithWrappedLine othercontinuesWithWrappedLine
isBasicASCII otherisBasicASCII
containsRTL othercontainsRTL
fauxIndentLength otherfauxIndentLength
tabSize othertabSize
startVisibleColumn otherstartVisibleColumn
spaceWidth otherspaceWidth
renderSpaceWidth otherrenderSpaceWidth
renderSpaceCharCode otherrenderSpaceCharCode
stopRenderingLineAfter otherstopRenderingLineAfter
renderWhitespace otherrenderWhitespace
renderControlCharacters otherrenderControlCharacters
fontLigatures otherfontLigatures
LineDecorationlineDecorations otherlineDecorations
lineTokensotherlineTokens
otherselectionsOnLine
textDirection othertextDirection
verticalScrollbarSize otherverticalScrollbarSize
renderNewLineWhenEmpty otherrenderNewLineWhenEmpty
CharacterMappingConstants
partIndex
charIndex
partData
partData CharacterMappingConstants CharacterMappingConstants
partData
partData CharacterMappingConstants CharacterMappingConstants
length
_data Uint32Array
_horizontalOffset Uint32Array
length partCount
length length
_data length
_horizontalOffset length
column partIndex charIndex horizontalOffset
partData
partIndex CharacterMappingConstants
charIndex CharacterMappingConstants
_datacolumn partData
_horizontalOffsetcolumn horizontalOffset
column
_horizontalOffsetlength
_horizontalOffsetcolumn
charOffset
length
charOffset
_data
charOffset length
_datalength
_datacharOffset
column DomPosition
partData column
partIndex CharacterMappingpartData
charIndex CharacterMappingpartData
partIndex charIndex
domPosition DomPosition partLength
charOffset domPositionpartIndex partLength domPositioncharIndex
charOffset
partIndex partLength charIndex
length
searchEntry
partIndex CharacterMappingConstants
charIndex CharacterMappingConstants
min
max length
min max
mid min max
midEntry _datamid
midEntry searchEntry
mid
midEntry searchEntry
max mid
min mid
min max
min
minEntry _datamin
maxEntry _datamax
minEntry searchEntry
min
maxEntry searchEntry
max
minPartIndex CharacterMappingminEntry
minCharIndex CharacterMappingminEntry
maxPartIndex CharacterMappingmaxEntry
maxCharIndex
minPartIndex maxPartIndex
maxCharIndex partLength
maxCharIndex CharacterMappingmaxEntry
minEntryDistance charIndex minCharIndex
maxEntryDistance maxCharIndex charIndex
minEntryDistance maxEntryDistance
min
max
result
i i length i
partData _datai
partIndex CharacterMappingpartData
charIndex CharacterMappingpartData
visibleColumn _horizontalOffseti
resultpartIndex charIndex visibleColumn
result
ForeignElementType
None
Before
After
_renderLineOutputBrand
characterMapping CharacterMapping
containsForeignElements ForeignElementType
characterMapping CharacterMapping containsForeignElements ForeignElementType
characterMapping characterMapping
containsForeignElements containsForeignElements
input RenderLineInput sb StringBuilder RenderLineOutput
inputlineContentlength
inputlineDecorationslength
sb
beforeCount
afterCount
containsForeignElements ForeignElementTypeNone
lineDecoration inputlineDecorations
lineDecorationtype InlineDecorationTypeBefore lineDecorationtype InlineDecorationTypeAfter lineDecorationtype InlineDecorationTypeWidthOnly
sb
sblineDecorationclassName
sb
lineDecorationtype InlineDecorationTypeAfter
containsForeignElements ForeignElementTypeAfter
afterCount
containsForeignElements ForeignElementTypeBefore
beforeCount
sb
characterMapping beforeCount afterCount
characterMapping beforeCount
characterMapping
containsForeignElements
inputrenderNewLineWhenEmpty
sb
sb
ForeignElementTypeNone
input sb
characterMapping CharacterMapping
html
containsForeignElements ForeignElementType
input RenderLineInput RenderLineOutput2
sb
out input sb
outcharacterMapping sb outcontainsForeignElements
fontIsMonospace
canUseHalfwidthRightwardsArrow
lineContent
len
isOverflowing
overflowingCharCount
parts LinePart
containsForeignElements ForeignElementType
fauxIndentLength
tabSize
startVisibleColumn
spaceWidth
renderSpaceCharCode
renderWhitespace RenderWhitespace
renderControlCharacters
input RenderLineInput ResolvedRenderLineInput
lineContent inputlineContent
isOverflowing
overflowingCharCount
len
inputstopRenderingLineAfter inputstopRenderingLineAfter lineContentlength
isOverflowing
overflowingCharCount lineContentlength inputstopRenderingLineAfter
len inputstopRenderingLineAfter
isOverflowing
overflowingCharCount
len lineContentlength
tokens lineContent inputcontainsRTL inputlineTokens inputfauxIndentLength len
inputrenderControlCharacters inputisBasicASCII
tokens lineContent tokens
inputrenderWhitespace RenderWhitespaceAll
inputrenderWhitespace RenderWhitespaceBoundary
inputrenderWhitespace RenderWhitespaceSelection inputselectionsOnLine
inputrenderWhitespace RenderWhitespaceTrailing inputcontinuesWithWrappedLine
tokens input lineContent len tokens
containsForeignElements ForeignElementTypeNone
inputlineDecorationslength
i len inputlineDecorationslength i len i
lineDecoration inputlineDecorationsi
lineDecorationtype InlineDecorationTypeRegularAffectingLetterSpacing
containsForeignElements ForeignElementTypeBefore
lineDecorationtype InlineDecorationTypeBefore
containsForeignElements ForeignElementTypeBefore
lineDecorationtype InlineDecorationTypeAfter
containsForeignElements ForeignElementTypeAfter
lineDecorationtype InlineDecorationTypeWidthOnly
containsForeignElements ForeignElementTypeBefore
tokens lineContent len tokens inputlineDecorations
inputcontainsRTL
tokens lineContent tokens inputisBasicASCII inputfontLigatures
tokens lineContent tokens
inputuseMonospaceOptimizations
inputcanUseHalfwidthRightwardsArrow
lineContent
len
isOverflowing
overflowingCharCount
tokens
containsForeignElements
inputfauxIndentLength
inputtabSize
inputstartVisibleColumn
inputspaceWidth
inputrenderSpaceCharCode
inputrenderWhitespace
inputrenderControlCharacters
lineContent lineContainsRTL tokens IViewLineTokens fauxIndentLength len LinePart
result LinePart
resultLen
fauxIndentLength
resultresultLen fauxIndentLength
startOffset fauxIndentLength
tokenIndex tokensLen tokens tokenIndex tokensLen tokenIndex
endIndex tokenstokenIndex
endIndex fauxIndentLength
type tokenstokenIndex
endIndex len
tokenContainsRTL lineContainsRTL stringslineContentstartOffset len
resultresultLen len type tokenContainsRTL
tokenContainsRTL lineContainsRTL stringslineContentstartOffset endIndex
resultresultLen endIndex type tokenContainsRTL
startOffset endIndex
result
Constants
LongToken
lineContent tokens LinePart onlyAtSpaces LinePart
lastTokenEndIndex
result LinePart
resultLen
onlyAtSpaces
i len tokenslength i len i
token tokensi
tokenEndIndex tokenendIndex
lastTokenEndIndex ConstantsLongToken tokenEndIndex
tokenType tokentype
tokenMetadata tokenmetadata
tokenContainsRTL tokencontainsRTL
lastSpaceOffset
currTokenStart lastTokenEndIndex
j lastTokenEndIndex j tokenEndIndex j
lineContentj CharCodeSpace
lastSpaceOffset j
lastSpaceOffset j currTokenStart ConstantsLongToken
resultresultLen lastSpaceOffset tokenType tokenMetadata tokenContainsRTL
currTokenStart lastSpaceOffset
lastSpaceOffset
currTokenStart tokenEndIndex
resultresultLen tokenEndIndex tokenType tokenMetadata tokenContainsRTL
resultresultLen token
lastTokenEndIndex tokenEndIndex
i len tokenslength i len i
token tokensi
tokenEndIndex tokenendIndex
diff tokenEndIndex lastTokenEndIndex
diff ConstantsLongToken
tokenType tokentype
tokenMetadata tokenmetadata
tokenContainsRTL tokencontainsRTL
piecesCount Mathdiff ConstantsLongToken
j j piecesCount j
pieceEndIndex lastTokenEndIndex j ConstantsLongToken
resultresultLen pieceEndIndex tokenType tokenMetadata tokenContainsRTL
resultresultLen tokenEndIndex tokenType tokenMetadata tokenContainsRTL
resultresultLen token
lastTokenEndIndex tokenEndIndex
result
lineContent tokens LinePart LinePart
tokenslength
tokens
firstToken tokens
firstTokencontainsRTL
tokens
firstTokenEndIndex firstTokenendIndex
firstNonWhitespaceIndex
i i firstTokenEndIndex i
charCode lineContenti
charCode CharCodeSpace charCode CharCodeTab
firstNonWhitespaceIndex i
firstNonWhitespaceIndex
tokens
result LinePart
result firstNonWhitespaceIndex firstTokentype firstTokenmetadata
result firstTokenEndIndex firstTokentype firstTokenmetadata firstTokencontainsRTL
i i tokenslength i
resulttokensi
result
charCode
charCode
charCode CharCodeTab
charCode
charCode charCode
charCode charCode
charCode charCode
charCode
lineContent tokens LinePart LinePart
result LinePart
lastLinePart LinePart
charOffset
token tokens
tokenEndIndex tokenendIndex
charOffset tokenEndIndex charOffset
charCode lineContentcharOffset
charCode
charOffset lastLinePartendIndex
lastLinePart charOffset tokentype tokenmetadata tokencontainsRTL
resultlastLinePart
lastLinePart charOffset tokenmetadata
resultlastLinePart
charOffset lastLinePartendIndex
lastLinePart tokenEndIndex tokentype tokenmetadata tokencontainsRTL
resultlastLinePart
result
input RenderLineInput lineContent len tokens LinePart LinePart
continuesWithWrappedLine inputcontinuesWithWrappedLine
fauxIndentLength inputfauxIndentLength
tabSize inputtabSize
startVisibleColumn inputstartVisibleColumn
useMonospaceOptimizations inputuseMonospaceOptimizations
selections inputselectionsOnLine
onlyBoundary inputrenderWhitespace RenderWhitespaceBoundary
onlyTrailing inputrenderWhitespace RenderWhitespaceTrailing
generateLinePartForEachWhitespace inputrenderSpaceWidth inputspaceWidth
result LinePart
resultLen
tokenIndex
tokenType tokenstokenIndextype
tokenContainsRTL tokenstokenIndexcontainsRTL
tokenEndIndex tokenstokenIndexendIndex
tokensLength tokenslength
lineIsEmptyOrWhitespace
firstNonWhitespaceIndex stringslineContent
lastNonWhitespaceIndex
firstNonWhitespaceIndex
lineIsEmptyOrWhitespace
firstNonWhitespaceIndex len
lastNonWhitespaceIndex len
lastNonWhitespaceIndex stringslineContent
wasInWhitespace
currentSelectionIndex
currentSelection selections selectionscurrentSelectionIndex
tmpIndent startVisibleColumn tabSize
charIndex fauxIndentLength charIndex len charIndex
chCode lineContentcharIndex
currentSelection currentSelectionendExclusive charIndex
currentSelectionIndex
currentSelection selections selectionscurrentSelectionIndex
isInWhitespace
charIndex firstNonWhitespaceIndex charIndex lastNonWhitespaceIndex
isInWhitespace
chCode CharCodeTab
isInWhitespace
chCode CharCodeSpace
onlyBoundary
wasInWhitespace
isInWhitespace
nextChCode charIndex len lineContentcharIndex CharCodeNull
isInWhitespace nextChCode CharCodeSpace nextChCode CharCodeTab
isInWhitespace
isInWhitespace
isInWhitespace selections
isInWhitespace currentSelection currentSelectionstart charIndex charIndex currentSelectionendExclusive
isInWhitespace onlyTrailing
isInWhitespace lineIsEmptyOrWhitespace charIndex lastNonWhitespaceIndex
isInWhitespace tokenContainsRTL
charIndex firstNonWhitespaceIndex charIndex lastNonWhitespaceIndex
isInWhitespace
wasInWhitespace
isInWhitespace useMonospaceOptimizations tmpIndent tabSize
generateLinePartForEachWhitespace
lastEndIndex resultLen resultresultLen endIndex fauxIndentLength
i lastEndIndex i charIndex i
resultresultLen i LinePartMetadata
resultresultLen charIndex LinePartMetadata
tmpIndent tmpIndent tabSize
charIndex tokenEndIndex isInWhitespace charIndex fauxIndentLength
resultresultLen charIndex tokenType tokenContainsRTL
tmpIndent tmpIndent tabSize
chCode CharCodeTab
tmpIndent tabSize
stringschCode
tmpIndent
tmpIndent
wasInWhitespace isInWhitespace
charIndex tokenEndIndex
tokenIndex
tokenIndex tokensLength
tokenType tokenstokenIndextype
tokenContainsRTL tokenstokenIndexcontainsRTL
tokenEndIndex tokenstokenIndexendIndex
generateWhitespace
wasInWhitespace
continuesWithWrappedLine onlyBoundary
lastCharCode len lineContentlen CharCodeNull
prevCharCode len lineContentlen CharCodeNull
isSingleTrailingSpace lastCharCode CharCodeSpace prevCharCode CharCodeSpace prevCharCode CharCodeTab
isSingleTrailingSpace
generateWhitespace
generateWhitespace
generateWhitespace
generateLinePartForEachWhitespace
lastEndIndex resultLen resultresultLen endIndex fauxIndentLength
i lastEndIndex i len i
resultresultLen i LinePartMetadata
resultresultLen len LinePartMetadata
resultresultLen len tokenType tokenContainsRTL
result
lineContent len tokens LinePart _lineDecorations LineDecoration LinePart
_lineDecorationsLineDecorationcompare
lineDecorations LineDecorationsNormalizerlineContent _lineDecorations
lineDecorationsLen lineDecorationslength
lineDecorationIndex
result LinePart
resultLen
lastResultEndIndex
tokenIndex len tokenslength tokenIndex len tokenIndex
token tokenstokenIndex
tokenEndIndex tokenendIndex
tokenType tokentype
tokenMetadata tokenmetadata
tokenContainsRTL tokencontainsRTL
lineDecorationIndex lineDecorationsLen lineDecorationslineDecorationIndexstartOffset tokenEndIndex
lineDecoration lineDecorationslineDecorationIndex
lineDecorationstartOffset lastResultEndIndex
lastResultEndIndex lineDecorationstartOffset
resultresultLen lastResultEndIndex tokenType tokenMetadata tokenContainsRTL
lineDecorationendOffset tokenEndIndex
lastResultEndIndex lineDecorationendOffset
resultresultLen lastResultEndIndex tokenType lineDecorationclassName tokenMetadata lineDecorationmetadata tokenContainsRTL
lineDecorationIndex
lastResultEndIndex tokenEndIndex
resultresultLen lastResultEndIndex tokenType lineDecorationclassName tokenMetadata lineDecorationmetadata tokenContainsRTL
tokenEndIndex lastResultEndIndex
lastResultEndIndex tokenEndIndex
resultresultLen lastResultEndIndex tokenType tokenMetadata tokenContainsRTL
lastTokenEndIndex tokenstokenslength endIndex
lineDecorationIndex lineDecorationsLen lineDecorationslineDecorationIndexstartOffset lastTokenEndIndex
lineDecorationIndex lineDecorationsLen lineDecorationslineDecorationIndexstartOffset lastTokenEndIndex
lineDecoration lineDecorationslineDecorationIndex
resultresultLen lastResultEndIndex lineDecorationclassName lineDecorationmetadata
lineDecorationIndex
result
input ResolvedRenderLineInput sb StringBuilder RenderLineOutput
fontIsMonospace inputfontIsMonospace
canUseHalfwidthRightwardsArrow inputcanUseHalfwidthRightwardsArrow
containsForeignElements inputcontainsForeignElements
lineContent inputlineContent
len inputlen
isOverflowing inputisOverflowing
overflowingCharCount inputoverflowingCharCount
parts inputparts
fauxIndentLength inputfauxIndentLength
tabSize inputtabSize
startVisibleColumn inputstartVisibleColumn
spaceWidth inputspaceWidth
renderSpaceCharCode inputrenderSpaceCharCode
renderWhitespace inputrenderWhitespace
renderControlCharacters inputrenderControlCharacters
characterMapping len partslength
lastCharacterMappingDefined
charIndex
visibleColumn startVisibleColumn
charOffsetInPart
charHorizontalOffset
partDisplacement
sb
partIndex tokensLen partslength partIndex tokensLen partIndex
part partspartIndex
partEndIndex partendIndex
partType parttype
partContainsRTL partcontainsRTL
partRendersWhitespace renderWhitespace RenderWhitespaceNone part
partRendersWhitespaceWithWidth partRendersWhitespace fontIsMonospace partType containsForeignElements
partIsEmptyAndHasPseudoAfter charIndex partEndIndex part
charOffsetInPart
sb
partContainsRTL
sb
sb
sbpartRendersWhitespaceWithWidth partType
sbCharCodeDoubleQuote
partRendersWhitespace
partWidth
_charIndex charIndex
_visibleColumn visibleColumn
_charIndex partEndIndex _charIndex
charCode lineContent_charIndex
charWidth charCode CharCodeTab tabSize _visibleColumn tabSize
partWidth charWidth
_charIndex fauxIndentLength
_visibleColumn charWidth
partRendersWhitespaceWithWidth
sb
sbspaceWidth partWidth
sb
sbCharCodeGreaterThan
charIndex partEndIndex charIndex
characterMappingcharIndex partIndex partDisplacement charOffsetInPart charHorizontalOffset
partDisplacement
charCode lineContentcharIndex
producedCharacters
charWidth
charCode CharCodeTab
producedCharacters tabSize visibleColumn tabSize
charWidth producedCharacters
canUseHalfwidthRightwardsArrow charWidth
sb
sb
space space charWidth space
sb
producedCharacters
charWidth
sbrenderSpaceCharCode
sb
charOffsetInPart producedCharacters
charHorizontalOffset charWidth
charIndex fauxIndentLength
visibleColumn charWidth
sbCharCodeGreaterThan
charIndex partEndIndex charIndex
characterMappingcharIndex partIndex partDisplacement charOffsetInPart charHorizontalOffset
partDisplacement
charCode lineContentcharIndex
producedCharacters
charWidth
charCode
CharCodeTab
producedCharacters tabSize visibleColumn tabSize
charWidth producedCharacters
space space producedCharacters space
sb
CharCodeSpace
sb
CharCodeLessThan
sb
CharCodeGreaterThan
sb
CharCodeAmpersand
sb
CharCodeNull
renderControlCharacters
sb
sb
CharCode
CharCode
CharCode
CharCode
sb
stringscharCode
charWidth
renderControlCharacters charCode
sb charCode
renderControlCharacters charCode
sb
renderControlCharacters charCode
sb
sbcharCode
sb
producedCharacters
charWidth producedCharacters
sbcharCode
charOffsetInPart producedCharacters
charHorizontalOffset charWidth
charIndex fauxIndentLength
visibleColumn charWidth
partIsEmptyAndHasPseudoAfter
partDisplacement
partDisplacement
charIndex len lastCharacterMappingDefined part
lastCharacterMappingDefined
characterMappingcharIndex partIndex charOffsetInPart charHorizontalOffset
sb
lastCharacterMappingDefined
characterMappinglen partslength charOffsetInPart charHorizontalOffset
isOverflowing
sb
sbnls overflowingCharCount
sb
sb
characterMapping containsForeignElements
n
n
n
n
nls n
n