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 { Range } from '../core/range.js';
import { TrackedRangeStickiness, TrackedRangeStickiness as ActualTrackedRangeStickiness } from '../model.js';
import { ModelDecorationOptions } from './textModel.js';
//
// The red-black tree is based on the "Introduction to Algorithms" by Cormen, Leiserson and Rivest.
//
export const enum ClassName {
EditorHintDecoration = 'squiggly-hint',
EditorInfoDecoration = 'squiggly-info',
EditorWarningDecoration = 'squiggly-warning',
EditorErrorDecoration = 'squiggly-error',
EditorUnnecessaryDecoration = 'squiggly-unnecessary',
EditorUnnecessaryInlineDecoration =
EditorDeprecatedInlineDecoration
NodeColor
Black
Red
Constants
ColorMask
ColorMaskInverse
ColorOffset
IsVisitedMask
IsVisitedMaskInverse
IsVisitedOffset
IsForValidationMask
IsForValidationMaskInverse
IsForValidationOffset
StickinessMask
StickinessMaskInverse
StickinessOffset
CollapseOnReplaceEditMask
CollapseOnReplaceEditMaskInverse
CollapseOnReplaceEditOffset
IsMarginMask
IsMarginMaskInverse
IsMarginOffset
AffectsFontMask
AffectsFontMaskInverse
AffectsFontOffset
node IntervalNode NodeColor
nodemetadata ConstantsColorMask ConstantsColorOffset
node IntervalNode color NodeColor
nodemetadata
nodemetadata ConstantsColorMaskInverse color ConstantsColorOffset
node IntervalNode
nodemetadata ConstantsIsVisitedMask ConstantsIsVisitedOffset
node IntervalNode value
nodemetadata
nodemetadata ConstantsIsVisitedMaskInverse value ConstantsIsVisitedOffset
node IntervalNode
nodemetadata ConstantsIsForValidationMask ConstantsIsForValidationOffset
node IntervalNode value
nodemetadata
nodemetadata ConstantsIsForValidationMaskInverse value ConstantsIsForValidationOffset
node IntervalNode
nodemetadata ConstantsIsMarginMask ConstantsIsMarginOffset
node IntervalNode value
nodemetadata
nodemetadata ConstantsIsMarginMaskInverse value ConstantsIsMarginOffset
node IntervalNode
nodemetadata ConstantsAffectsFontMask ConstantsAffectsFontOffset
node IntervalNode value
nodemetadata
nodemetadata ConstantsAffectsFontMaskInverse value ConstantsAffectsFontOffset
node IntervalNode TrackedRangeStickiness
nodemetadata ConstantsStickinessMask ConstantsStickinessOffset
node IntervalNode stickiness TrackedRangeStickiness
nodemetadata
nodemetadata ConstantsStickinessMaskInverse stickiness ConstantsStickinessOffset
node IntervalNode
nodemetadata ConstantsCollapseOnReplaceEditMask ConstantsCollapseOnReplaceEditOffset
node IntervalNode value
nodemetadata
nodemetadata ConstantsCollapseOnReplaceEditMaskInverse value ConstantsCollapseOnReplaceEditOffset
node IntervalNode stickiness ActualTrackedRangeStickiness
node stickiness
metadata
parent IntervalNode
left IntervalNode
right IntervalNode
start
end
delta
maxEnd
id
ownerId
options ModelDecorationOptions
cachedVersionId
cachedAbsoluteStart
cachedAbsoluteEnd
range Range
id start end
metadata
parent
left
right
NodeColorRed
start start
end end
delta
maxEnd end
id id
ownerId
options
TrackedRangeStickinessNeverGrowsWhenTypingAtEdges
cachedVersionId
cachedAbsoluteStart start
cachedAbsoluteEnd end
range
versionId start end range Range
start start
end end
maxEnd end
cachedVersionId versionId
cachedAbsoluteStart start
cachedAbsoluteEnd end
range range
options ModelDecorationOptions
options options
className optionsclassName
className ClassNameEditorErrorDecoration
className ClassNameEditorWarningDecoration
className ClassNameEditorInfoDecoration
optionsglyphMarginClassName
optionsstickiness
optionscollapseOnReplaceEdit
optionsaffectsFont
absoluteStart absoluteEnd cachedVersionId
cachedVersionId cachedVersionId
range
cachedVersionId cachedVersionId
cachedAbsoluteStart absoluteStart
cachedAbsoluteEnd absoluteEnd
parent
left
right
IntervalNode
parent
left
right
NodeColorBlack
root IntervalNode
requestNormalizeDelta
root
requestNormalizeDelta
start end filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations IntervalNode
root
start end filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations
filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations IntervalNode
root
filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations
ownerId IntervalNode
ownerId
IntervalNode
node IntervalNode
node
node IntervalNode
node
node IntervalNode cachedVersionId
initialNode node
delta
node root
node nodeparentright
delta nodeparentdelta
node nodeparent
nodeStart initialNodestart delta
nodeEnd initialNodeend delta
initialNodenodeStart nodeEnd cachedVersionId
offset length textLength forceMoveMarkers
nodesOfInterest offset offset length
i len nodesOfInterestlength i len i
node nodesOfInteresti
node
offset offset length textLength
i len nodesOfInterestlength i len i
node nodesOfInteresti
nodestart nodecachedAbsoluteStart
nodeend nodecachedAbsoluteEnd
node offset offset length textLength forceMoveMarkers
nodemaxEnd nodeend
node
IntervalNode
requestNormalizeDelta
requestNormalizeDelta
IntervalTree
node root
delta
node
nodeleft nodeleft
node nodeleft
noderight noderight
delta nodedelta
node noderight
nodestart delta nodestart
nodeend delta nodeend
nodedelta
node
node
nodeleft
noderight
node nodeparentright
delta nodeparentdelta
node nodeparent
root
MarkerMoveSemantics
MarkerDefined
ForceMove
ForceStay
markerOffset markerStickToPreviousCharacter checkOffset moveSemantics MarkerMoveSemantics
markerOffset checkOffset
markerOffset checkOffset
moveSemantics MarkerMoveSemanticsForceMove
moveSemantics MarkerMoveSemanticsForceStay
markerStickToPreviousCharacter
node IntervalNode start end textLength forceMoveMarkers
nodeStickiness node
startStickToPreviousCharacter
nodeStickiness TrackedRangeStickinessAlwaysGrowsWhenTypingAtEdges
nodeStickiness TrackedRangeStickinessGrowsOnlyWhenTypingBefore
endStickToPreviousCharacter
nodeStickiness TrackedRangeStickinessNeverGrowsWhenTypingAtEdges
nodeStickiness TrackedRangeStickinessGrowsOnlyWhenTypingBefore
deletingCnt end start
insertingCnt textLength
commonLength MathdeletingCnt insertingCnt
nodeStart nodestart
startDone
nodeEnd nodeend
endDone
start nodeStart nodeEnd end node
nodestart start
startDone
nodeend start
endDone
moveSemantics forceMoveMarkers MarkerMoveSemanticsForceMove deletingCnt MarkerMoveSemanticsForceStay MarkerMoveSemanticsMarkerDefined
startDone nodeStart startStickToPreviousCharacter start moveSemantics
startDone
endDone nodeEnd endStickToPreviousCharacter start moveSemantics
endDone
commonLength forceMoveMarkers
moveSemantics deletingCnt insertingCnt MarkerMoveSemanticsForceStay MarkerMoveSemanticsMarkerDefined
startDone nodeStart startStickToPreviousCharacter start commonLength moveSemantics
startDone
endDone nodeEnd endStickToPreviousCharacter start commonLength moveSemantics
endDone
moveSemantics forceMoveMarkers MarkerMoveSemanticsForceMove MarkerMoveSemanticsMarkerDefined
startDone nodeStart startStickToPreviousCharacter end moveSemantics
nodestart start insertingCnt
startDone
endDone nodeEnd endStickToPreviousCharacter end moveSemantics
nodeend start insertingCnt
endDone
deltaColumn insertingCnt deletingCnt
startDone
nodestart Math nodeStart deltaColumn
endDone
nodeend Math nodeEnd deltaColumn
nodestart nodeend
nodeend nodestart
IntervalTree start end IntervalNode
node root
delta
nodeMaxEnd
nodeStart
nodeEnd
result IntervalNode
resultLen
node
node
nodeleft
noderight
node nodeparentright
delta nodeparentdelta
node nodeparent
nodeleft
nodeMaxEnd delta nodemaxEnd
nodeMaxEnd start
node
nodeleft
node nodeleft
nodeStart delta nodestart
nodeStart end
node
nodeEnd delta nodeend
nodeEnd start
nodenodeStart nodeEnd
resultresultLen node
node
noderight noderight
delta nodedelta
node noderight
root
result
IntervalTree start end textLength
node root
delta
nodeMaxEnd
nodeStart
editDelta textLength end start
node
node
nodeleft
noderight
node nodeparentright
delta nodeparentdelta
node
node nodeparent
nodeleft
nodeMaxEnd delta nodemaxEnd
nodeMaxEnd start
node
nodeleft
node nodeleft
nodeStart delta nodestart
nodeStart end
nodestart editDelta
nodeend editDelta
nodedelta editDelta
nodedelta Constants nodedelta Constants
requestNormalizeDelta
node
node
noderight noderight
delta nodedelta
node noderight
root
IntervalTree ownerId IntervalNode
node root
result IntervalNode
resultLen
node
node
nodeleft
noderight
node nodeparent
nodeleft nodeleft
node nodeleft
nodeownerId ownerId
resultresultLen node
node
noderight noderight
node noderight
root
result
IntervalTree IntervalNode
node root
result IntervalNode
resultLen
node
node
nodeleft
noderight
node nodeparent
nodeleft nodeleft
node nodeleft
noderight noderight
node noderight
resultresultLen node
node
root
result
IntervalTree filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations IntervalNode
node root
delta
nodeStart
nodeEnd
result IntervalNode
resultLen
node
node
nodeleft
noderight
node nodeparentright
delta nodeparentdelta
node nodeparent
nodeleft nodeleft
node nodeleft
nodeStart delta nodestart
nodeEnd delta nodeend
nodenodeStart nodeEnd cachedVersionId
include
filterOwnerId nodeownerId nodeownerId filterOwnerId
include
filterOutValidation node
include
filterFontDecorations node
include
onlyMarginDecorations node
include
include
resultresultLen node
node
noderight noderight
delta nodedelta
node noderight
root
result
IntervalTree intervalStart intervalEnd filterOwnerId filterOutValidation filterFontDecorations cachedVersionId onlyMarginDecorations IntervalNode
node root
delta
nodeMaxEnd
nodeStart
nodeEnd
result IntervalNode
resultLen
node
node
nodeleft
noderight
node nodeparentright
delta nodeparentdelta
node nodeparent
nodeleft
nodeMaxEnd delta nodemaxEnd
nodeMaxEnd intervalStart
node
nodeleft
node nodeleft
nodeStart delta nodestart
nodeStart intervalEnd
node
nodeEnd delta nodeend
nodeEnd intervalStart
nodenodeStart nodeEnd cachedVersionId
include
filterOwnerId nodeownerId nodeownerId filterOwnerId
include
filterOutValidation node
include
filterFontDecorations node
include
onlyMarginDecorations node
include
include
resultresultLen node
node
noderight noderight
delta nodedelta
node noderight
root
result
IntervalTree newNode IntervalNode IntervalNode
root
newNodeparent
newNodeleft
newNoderight
newNode NodeColorBlack
root newNode
root
newNode
newNodeparent
x newNode
x root xparent NodeColorRed
xparent xparentparentleft
y xparentparentright
y NodeColorRed
xparent NodeColorBlack
y NodeColorBlack
xparentparent NodeColorRed
x xparentparent
x xparentright
x xparent
x
xparent NodeColorBlack
xparentparent NodeColorRed
xparentparent
y xparentparentleft
y NodeColorRed
xparent NodeColorBlack
y NodeColorBlack
xparentparent NodeColorRed
x xparentparent
x xparentleft
x xparent
x
xparent NodeColorBlack
xparentparent NodeColorRed
xparentparent
root NodeColorBlack
newNode
IntervalTree z IntervalNode
delta
x root
zAbsoluteStart zstart
zAbsoluteEnd zend
cmp zAbsoluteStart zAbsoluteEnd xstart delta xend delta
cmp
xleft
zstart delta
zend delta
zmaxEnd delta
xleft z
x xleft
xright
zstart delta xdelta
zend delta xdelta
zmaxEnd delta xdelta
xright z
delta xdelta
x xright
zparent x
zleft
zright
z NodeColorRed
IntervalTree z IntervalNode
x IntervalNode
y IntervalNode
zleft
x zright
y z
xdelta zdelta
xdelta Constants xdelta Constants
requestNormalizeDelta
xstart zdelta
xend zdelta
zright
x zleft
y z
y zright
x yright
xstart ydelta
xend ydelta
xdelta ydelta
xdelta Constants xdelta Constants
requestNormalizeDelta
ystart zdelta
yend zdelta
ydelta zdelta
ydelta Constants ydelta Constants
requestNormalizeDelta
y root
root x
x NodeColorBlack
z
x
rootparent
yWasRed y NodeColorRed
y yparentleft
yparentleft x
yparentright x
y z
xparent yparent
yparent z
xparent y
xparent yparent
yleft zleft
yright zright
yparent zparent
y z
z root
root y
z zparentleft
zparentleft y
zparentright y
yleft
yleftparent y
yright
yrightparent y
z
yWasRed
xparent
y z
y
yparent
x
xparent
y z
y
yparent
w IntervalNode
x root x NodeColorBlack
x xparentleft
w xparentright
w NodeColorRed
w NodeColorBlack
xparent NodeColorRed
xparent
w xparentright
wleft NodeColorBlack wright NodeColorBlack
w NodeColorRed
x xparent
wright NodeColorBlack
wleft NodeColorBlack
w NodeColorRed
w
w xparentright
w xparent
xparent NodeColorBlack
wright NodeColorBlack
xparent
x root
w xparentleft
w NodeColorRed
w NodeColorBlack
xparent NodeColorRed
xparent
w xparentleft
wleft NodeColorBlack wright NodeColorBlack
w NodeColorRed
x xparent
wleft NodeColorBlack
wright NodeColorBlack
w NodeColorRed
w
w xparentleft
w xparent
xparent NodeColorBlack
wleft NodeColorBlack
xparent
x root
x NodeColorBlack
node IntervalNode IntervalNode
nodeleft
node nodeleft
node
parent
delta
start
end
IntervalTree x IntervalNode
y xright
ydelta xdelta
ydelta Constants ydelta Constants
requestNormalizeDelta
ystart xdelta
yend xdelta
xright yleft
yleft
yleftparent x
yparent xparent
xparent
root y
x xparentleft
xparentleft y
xparentright y
yleft x
xparent y
x
y
IntervalTree y IntervalNode
x yleft
ydelta xdelta
ydelta Constants ydelta Constants
requestNormalizeDelta
ystart xdelta
yend xdelta
yleft xright
xright
xrightparent y
xparent yparent
yparent
root x
y yparentright
yparentright x
yparentleft x
xright y
yparent x
y
x
node IntervalNode
maxEnd nodeend
nodeleft
leftMaxEnd nodeleftmaxEnd
leftMaxEnd maxEnd
maxEnd leftMaxEnd
noderight
rightMaxEnd noderightmaxEnd nodedelta
rightMaxEnd maxEnd
maxEnd rightMaxEnd
maxEnd
node IntervalNode
nodemaxEnd node
node IntervalNode
node
maxEnd node
nodemaxEnd maxEnd
nodemaxEnd maxEnd
node nodeparent
aStart aEnd bStart bEnd
aStart bStart
aEnd bEnd
aStart bStart