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 { ISequence, LcsDiff } from '../../../../../base/common/diff/diff.js';
import { Emitter, Event, PauseableEmitter } from '../../../../../base/common/event.js';
import { hash } from '../../../../../base/common/hash.js';
import { Disposable, dispose, IDisposable } from '../../../../../base/common/lifecycle.js';
import { Schemas } from '../../../../../base/common/network.js';
import { filter } from '../../../../../base/common/objects.js';
import { isEqual } from
hasKey isDefined
Position
Range
ILanguageService
FindMatch ITextModel
TextModel
SearchParams
IModelService
IModelContentChangedEvent
IResourceUndoRedoElement IUndoRedoElement IUndoRedoService IWorkspaceUndoRedoElement UndoRedoElementType UndoRedoGroup
ILanguageDetectionService
SnapshotContext
CellEditType CellUri diff ICell ICellDto2 ICellEditOperation ICellOutput INotebookSnapshotOptions INotebookTextModel IOutputDto IOutputItemDto ISelectionState NotebookCellDefaultCollapseConfig NotebookCellExecutionState NotebookCellInternalMetadata NotebookCellMetadata NotebookCellOutputsSplice NotebookCellsChangeType NotebookCellTextModelSplice NotebookData NotebookDocumentMetadata NotebookTextModelChangedEvent NotebookTextModelWillAddRemoveEvent NullablePartialNotebookCellInternalMetadata NullablePartialNotebookCellMetadata TransientOptions
INotebookExecutionStateService
INotebookLoggingService
CellMetadataEdit MoveCellEdit SpliceCellsEdit
NotebookCellOutputTextModel
NotebookCellTextModel
type UndoRedoElementTypeWorkspace
tag
_operationslength _operationscode
_operations IUndoRedoElement
_beginSelectionState ISelectionState
_resultSelectionState ISelectionState
_beginAlternativeVersionId
_resultAlternativeVersionId
_operationslength _operationslabel
textModel NotebookTextModel
undoRedoGroup UndoRedoGroup
_pauseableEmitter PauseableEmitterNotebookTextModelChangedEvent
alternativeVersionId
selectionState ISelectionState
beginAlternativeVersionId
type UndoRedoElementTypeWorkspace
_beginSelectionState selectionState
_beginAlternativeVersionId beginAlternativeVersionId
_resultAlternativeVersionId beginAlternativeVersionId
textModeluri
_operationslength
alternativeVersionId selectionState ISelectionState
_resultAlternativeVersionId alternativeVersionId
_resultSelectionState selectionState _resultSelectionState
element IUndoRedoElement beginSelectionState ISelectionState resultSelectionState ISelectionState alternativeVersionId
_operationslength
_beginSelectionState _beginSelectionState beginSelectionState
_operationselement
_resultSelectionState resultSelectionState
_resultAlternativeVersionId alternativeVersionId
_pauseableEmitter
i _operationslength i i
_operationsi
_beginAlternativeVersionId
_pauseableEmitter
rawEvents
synchronous
versionId textModelversionId
endSelectionState _beginSelectionState
_pauseableEmitter
_pauseableEmitter
i i _operationslength i
_operationsi
_resultAlternativeVersionId
_pauseableEmitter
rawEvents
synchronous
versionId textModelversionId
endSelectionState _resultSelectionState
_pauseableEmitter
_pendingStackOperation StackOperation
_isAppending
_textModel NotebookTextModel
_undoService IUndoRedoService
_pauseableEmitter PauseableEmitterNotebookTextModelChangedEvent
alternativeVersionId
_pendingStackOperation _pendingStackOperationisEmpty
alternativeVersionId selectionState ISelectionState
_pendingStackOperation _pendingStackOperationisEmpty
_pendingStackOperationalternativeVersionId selectionState
_isAppending
_undoService_pendingStackOperation _pendingStackOperationundoRedoGroup
_isAppending
_pendingStackOperation
beginSelectionState ISelectionState undoRedoGroup UndoRedoGroup alternativeVersionId
_pendingStackOperation _textModel undoRedoGroup _pauseableEmitter _postUndoRedo beginSelectionState alternativeVersionId
previous _undoService_textModeluri StackOperation
previous previoustag
_pendingStackOperation previous
_isAppending
element IUndoRedoElement beginSelectionState ISelectionState resultSelectionState ISelectionState alternativeVersionId undoRedoGroup UndoRedoGroup
pendingStackOperation beginSelectionState undoRedoGroup alternativeVersionId
pendingStackOperationelement beginSelectionState resultSelectionState alternativeVersionId
edit ICellEditOperation
cellIndex
end
originalIndex
_eventQueue
e _eventQueue
i i erawEventslength i
erawEventsitransient
_isDisposed
_onWillDispose Emitter
_onWillAddRemoveCells
_onDidChangeContent
onWillDispose Event _onWillDisposeevent
onWillAddRemoveCells _onWillAddRemoveCellsevent
onDidChangeContent _onDidChangeContentevent
_cellhandlePool
_cellListeners Map IDisposable
_cells NotebookCellTextModel
_defaultCollapseConfig NotebookCellDefaultCollapseConfig
metadata NotebookDocumentMetadata
transientOptions TransientOptions transientCellMetadata transientDocumentMetadata transientOutputs cellContentMetadata
_versionId
_notebookSpecificAlternativeId
_alternativeVersionId
_operationManager NotebookOperationManager
_pauseableEmitter NotebookEventEmitter
_cellslength
NotebookCellTextModel
_cells
_versionId
_alternativeVersionId
viewType
viewType
uri
cells ICellDto2
metadata NotebookDocumentMetadata
options TransientOptions
_undoService IUndoRedoService
_modelService IModelService
_languageService ILanguageService
_languageDetectionService ILanguageDetectionService
_notebookExecutionStateService INotebookExecutionStateService
_notebookLoggingService INotebookLoggingService
transientOptions options
metadata metadata
cells
textModel ITextModel
textModelurischeme SchemasvscodeNotebookCell textModel
cellUri CellUritextModeluri
cellUri cellUrinotebook uri
cellIdx cellUrihandle
cellIdx
cell cellscellIdx
cell
celltextModel textModel
_modelServicee e
_pauseableEmitter
events NotebookTextModelChangedEvent
first events
rawEvents firstrawEvents
versionId firstversionId
endSelectionState firstendSelectionState
synchronous firstsynchronous
i i eventslength i
rawEventseventsirawEvents
versionId eventsiversionId
endSelectionState eventsiendSelectionState eventsiendSelectionState endSelectionState
synchronous eventsisynchronous eventsisynchronous synchronous
rawEvents versionId endSelectionState synchronous
_pauseableEmittere
erawEventslength
_onDidChangeContente
_operationManager
_undoService
_pauseableEmitter
alternativeVersionId
alternativeVersionId
_notebookLoggingService
collapseConfig NotebookCellDefaultCollapseConfig
_defaultCollapseConfig collapseConfig
cells ICellDto2 triggerDirty
_cells
_versionId
_notebookSpecificAlternativeId
mainCells cellscell
cellHandle _cellhandlePool
cellUri CellUriuri cellHandle
cellUri
cellHandle
cell
transientOptions
_languageService
_modelServicecelllanguage cellUri defaultEOL
_defaultCollapseConfig
_languageDetectionService
_notebookLoggingService
i i mainCellslength i
dirtyStateListener mainCellsie
mainCellsi e
_cellListenersmainCellsihandle dirtyStateListener
mainCellsi
_cells mainCells
_alternativeVersionId
triggerDirty
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeUnknown transient
versionId versionId
synchronous
endSelectionState
cell NotebookCellTextModel e type event IModelContentChangedEvent
e e etype
e
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeChangeCellContent index cellhandle transient
versionId versionId
synchronous
endSelectionState
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeChangeCellLanguage index cellhandle language celllanguage transient
versionId versionId
synchronous
endSelectionState
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeChangeCellMime index cellhandle mime cellmime transient
versionId versionId
synchronous
endSelectionState
e etype
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeChangeCellContent index cellhandle transient
versionId versionId
synchronous
endSelectionState
cellscell cellhandle cellalternativeId
override
_isDisposed
_isDisposed
_onWillDispose
_undoServiceuri
_cellListeners
_cellListeners
_cells
_cells
handle
cellsc chandle handle
outputId rawEdits ICellEditOperation
edit rawEditse e outputs eoutputso ooutputId outputId
edit
edit index
editindex
edit handle
cellIndex edithandle
cellIndex
cellIndex
outputId
cellsc coutputso ooutputId outputId
cells ICellDto2 metadata NotebookDocumentMetadata transientOptions TransientOptions
transientOptions transientOptions
executions _notebookExecutionStateServiceuri
executingCellHandles executionsexe exestate NotebookCellExecutionStateExecutingexe execellHandle
edits NotebookTextModel cells executingCellHandles
edits
editType CellEditTypeDocumentMetadata metadata
options INotebookSnapshotOptions NotebookData
transientOptions optionstransientOptions transientOptions
data NotebookData
metadata metadata key transientOptionstransientDocumentMetadatakey
cells
outputSize
cell cells
cellData ICellDto2
cellKind cellcellKind
language celllanguage
mime cellmime
source cell
outputs
internalMetadata cellinternalMetadata
optionscontext SnapshotContextBackup optionsoutputSizeLimit
celloutputsoutput
outputoutputsitem
outputSize itemdatabyteLength
outputSize optionsoutputSizeLimit
cellDataoutputs transientOptionstransientOutputs celloutputs
cellDatametadata cellmetadata key transientOptionstransientCellMetadatakey
datacellscellData
data
snapshot NotebookData transientOptions TransientOptions
snapshotcells snapshotmetadata transientOptions transientOptions
model NotebookTextModel cells ICellDto2 executingHandles ICellEditOperation
edits ICellEditOperation
cell NotebookCellTextModel executingHandlescellhandle
commonPrefix modelcells modelcellslength cells cellslength isExecuting
commonPrefix
i i commonPrefix i
edits
editType CellEditTypeMetadata
index i
metadata cellsimetadata
i modelcellsioutputs cellsioutputs
modelcellslength cellslength commonPrefix modelcellslength
edits
commonSuffix modelcells modelcellslength commonPrefix commonPrefix cells cellslength commonPrefix commonPrefix isExecuting
commonSuffix
edits editType CellEditTypeReplace index commonPrefix count modelcellslength commonPrefix commonSuffix cells cellscommonPrefix cellslength commonSuffix
commonPrefix
edits editType CellEditTypeReplace index commonPrefix count modelcellslength commonPrefix cells cellscommonPrefix
edits editType CellEditTypeReplace index count modelcellslength cells
commonSuffix
i commonSuffix i i
edits
editType CellEditTypeMetadata
index modelcellslength i
metadata cellscellslength imetadata
modelcellslength i modelcellsmodelcellslength ioutputs cellscellslength ioutputs
edits
index a ICellOutput b IOutputDto ICellEditOperation
alength blength
editType CellEditTypeOutput
index index
outputs b
append
alength
boutput i
editType CellEditTypeOutputItems
outputId aioutputId
items outputoutputs
append
a NotebookCellTextModel aLen aDelta b ICellDto2 bLen bDelta cell NotebookCellTextModel
maxResult MathaLen bLen
result
i i maxResult aaDelta ibbDelta i aaDelta i i
result
result
a NotebookCellTextModel aLen aDelta b ICellDto2 bLen bDelta cell NotebookCellTextModel
maxResult MathaLen bLen
result
i i maxResult aaDelta aLen i bbDelta bLen i aaDelta aLen i i
result
result
newCellsFromLastEdit
rawEdits ICellEditOperation
edit rawEdits
editeditType CellEditTypePartialInternalMetadata
editeditType CellEditTypeMetadata editeditType CellEditTypePartialMetadata
edit index newCellsFromLastEditcellseditindexhandle
edit handle newCellsFromLastEditedithandle
rawEdits ICellEditOperation synchronous beginSelectionState ISelectionState ISelectionState undoRedoGroup UndoRedoGroup computeUndoRedo
_notebookLoggingService
_pauseableEmitter
_operationManager_alternativeVersionId
computeUndoRedo rawEdits
_operationManager
computeUndoRedo
computeUndoRedo
newCellsFromLastEdit
rawEdits synchronous computeUndoRedo beginSelectionState undoRedoGroup
err
_notebookLoggingService
err
_pauseableEmitterisEmpty
endSelections
_operationManager _pauseableEmitter
_operationManager_alternativeVersionId endSelections
_pauseableEmitter rawEvents versionId versionId synchronous synchronous endSelectionState endSelections
_notebookLoggingService
_pauseableEmitter
rawEdits ICellEditOperation synchronous computeUndoRedo beginSelectionState ISelectionState undoRedoGroup UndoRedoGroup
editsWithDetails rawEditsedit index
cellIndex
edit index
cellIndex editindex
edit handle
cellIndex edithandle
cellIndex
edit outputId
cellIndex editoutputId
cellIndex
cellIndex editoutputId rawEdits index
cellIndex
editeditType CellEditTypeDocumentMetadata
edit
edit
cellIndex
end
editeditType CellEditTypeDocumentMetadata
editeditType CellEditTypeReplace editindex editcount cellIndex
originalIndex index
isDefined
edits editsWithDetails
a b
aend
bend
bend aend boriginalIndex aoriginalIndex
prev curr
prevlength
prevcurr
last prevprevlength
index lastcellIndex
currcellIndex index
lastcurr
prevcurr
prev
TransformedEditeditsOnSameIndex
replaceEdits TransformedEdit
otherEdits TransformedEdit
editsOnSameIndexedit
editediteditType CellEditTypeReplace
replaceEditsedit
otherEditsedit
otherEdits replaceEdits
flattenEdits edits
edit cellIndex flattenEdits
editeditType
CellEditTypeReplace
editindex editcount editcells synchronous computeUndoRedo beginSelectionState undoRedoGroup
CellEditTypeOutput
cellIndex
cell _cellscellIndex
editappend
cell start celloutputslength deleteCount newOutputs editoutputsop op computeUndoRedo
cell editoutputs computeUndoRedo
CellEditTypeOutputItems
cellIndex
cell _cellscellIndex
editappend
cell editoutputId edititems
cell editoutputId edititems
CellEditTypeMetadata
editindex
_cellseditindex editmetadata computeUndoRedo beginSelectionState undoRedoGroup
CellEditTypePartialMetadata
cellIndex
_cellscellIndex editmetadata computeUndoRedo beginSelectionState undoRedoGroup
CellEditTypePartialInternalMetadata
cellIndex
_cellscellIndex editinternalMetadata
CellEditTypeCellLanguage
editindex
_cellseditindex editlanguage computeUndoRedo beginSelectionState undoRedoGroup
CellEditTypeDocumentMetadata
editmetadata computeUndoRedo beginSelectionState undoRedoGroup
CellEditTypeMove
editindex editlength editnewIdx synchronous computeUndoRedo beginSelectionState undoRedoGroup
rawEdits TransformedEdit TransformedEdit
mergedEdits TransformedEdit
rawEditsedit
mergedEditslength
last mergedEditsmergedEditslength
lastediteditType CellEditTypeOutput
lasteditappend
editediteditType CellEditTypeOutput
editeditappend
lastcellIndex editcellIndex
lasteditoutputs lasteditoutputs editeditoutputs
lastediteditType CellEditTypeOutput
lasteditappend
lasteditoutputslength
editediteditType CellEditTypeOutput
editeditappend
lastcellIndex editcellIndex
lasteditappend
lasteditoutputs editeditoutputs
mergedEditsedit
mergedEditsedit
mergedEdits
index count cellDtos ICellDto2 synchronous computeUndoRedo beginSelectionState ISelectionState undoRedoGroup UndoRedoGroup
count cellDtoslength
oldViewCells _cells
oldSet
oldViewCellscell
oldSetcellhandle
i index i Mathindex count _cellslength i
cell _cellsi
_cellListenerscellhandle
_cellListenerscellhandle
cells cellDtoscellDto
cellHandle _cellhandlePool
cellUri CellUriuri cellHandle
cellDtooutputs
cellDtooutputs
cell
cellUri
cellHandle
cellDto
transientOptions
_languageService
_modelServicecellDtolanguage cellUri defaultEOL
_defaultCollapseConfig
_languageDetectionService
_notebookLoggingService
textModel _modelServicecellUri
textModel textModel
celltextModel textModel
celllanguage cellDtolanguage
celltextModelcellDtosource
cellcelltextModel
dirtyStateListener celle
cell e
newCellsFromLastEditcellhandle
_cellListenerscellhandle dirtyStateListener
cell
cell
cellsCopy _cells
cellsCopyindex count cells
diffs _cells cellsCopy cell
oldSetcellhandle
diff
diffstart diffdeleteCount difftoInsert NotebookCellTextModel
_onWillAddRemoveCells rawEvent kind NotebookCellsChangeTypeModelChange changes diffs
_cells cellsCopy
undoDiff diffsdiff
deletedCells oldViewCellsdiff diff diff
diff deletedCells diff NotebookCellTextModel NotebookCellTextModel
computeUndoRedo
_operationManager uri undoDiff
index cell endSelections index cell endSelections
index endSelections index endSelections
index count cells endSelections index count cells endSelections
beginSelectionState _alternativeVersionId undoRedoGroup
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeModelChange changes diffs transient
versionId versionId
synchronous synchronous
endSelectionState
transient
_versionId _versionId
transient
_notebookSpecificAlternativeId _versionId
_alternativeVersionId
newAlternativeVersionId
_alternativeVersionId newAlternativeVersionId
_notebookSpecificAlternativeId newAlternativeVersionId newAlternativeVersionId
metadata NotebookDocumentMetadata computeUndoRedo beginSelectionState ISelectionState undoRedoGroup UndoRedoGroup
oldMetadata metadata
triggerDirtyChange metadata metadata
triggerDirtyChange
computeUndoRedo
that
_operationManager
type UndoRedoElementTypeResource UndoRedoElementTypeResource
thaturi
label
code
thatoldMetadata beginSelectionState undoRedoGroup
thatmetadata beginSelectionState undoRedoGroup
beginSelectionState _alternativeVersionId undoRedoGroup
metadata metadata
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeChangeDocumentMetadata metadata metadata transient triggerDirtyChange
versionId versionId
synchronous
endSelectionState
index cells NotebookCellTextModel synchronous endSelections ISelectionState
i i cellslength i
dirtyStateListener cellsie
cellsi e
_cellListenerscellsihandle dirtyStateListener
changes NotebookCellTextModelSpliceICell index cells
_onWillAddRemoveCells rawEvent kind NotebookCellsChangeTypeModelChange changes
_cellsindex cells
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeModelChange changes transient
versionId versionId
synchronous synchronous
endSelectionState endSelections
index count synchronous endSelections ISelectionState
i index i index count i
cell _cellsi
_cellListenerscellhandle
_cellListenerscellhandle
changes NotebookCellTextModelSpliceICell index count
_onWillAddRemoveCells rawEvent kind NotebookCellsChangeTypeModelChange changes
_cellsindex count
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeModelChange changes transient
versionId versionId
synchronous synchronous
endSelectionState endSelections
index count cells NotebookCellTextModel synchronous endSelections ISelectionState
i index
start changeoriginalStart
deleteCount changeoriginalLength
newOutputs outputschangemodifiedStart changemodifiedStart changemodifiedLengthop op
splicessplice
cell splice computeUndoRedo
cell NotebookCellTextModel splice NotebookCellOutputsSplice append computeUndoRedo
cellsplice
_pauseableEmitter
rawEvents
kind NotebookCellsChangeTypeOutput
index _cellscell
outputs celloutputsoutput output
append
transient transientOptionstransientOutputs
versionId versionId
synchronous
endSelectionState
cell NotebookCellTextModel outputId items IOutputItemDto
celloutputId items
_pauseableEmitter
rawEvents
kind NotebookCellsChangeTypeOutputItem
index _cellscell
outputId outputId
outputItems items
append
transient transientOptionstransientOutputs
versionId versionId
synchronous
endSelectionState
cell NotebookCellTextModel outputId items IOutputItemDto
celloutputId items
_pauseableEmitter
rawEvents
kind NotebookCellsChangeTypeOutputItem
index _cellscell
outputId outputId
outputItems items
append
transient transientOptionstransientOutputs
versionId versionId
synchronous
endSelectionState
index length newIdx synchronous pushedToUndoStack beforeSelections ISelectionState endSelections ISelectionState undoRedoGroup UndoRedoGroup
pushedToUndoStack
_operationManager uri index length newIdx
fromIndex length toIndex beforeSelections ISelectionState endSelections ISelectionState
fromIndex length toIndex beforeSelections endSelections undoRedoGroup
beforeSelections endSelections beforeSelections endSelections _alternativeVersionId undoRedoGroup
index
newIdx
cells _cellsindex length
_cellsnewIdx cells
_pauseableEmitter
rawEvents kind NotebookCellsChangeTypeMove index length newIdx cells transient
versionId versionId
synchronous synchronous
endSelectionState endSelections
index context
index
index
index index _cellslength
searchString searchStart cellIndex position Position isRegex matchCase wordSeparators searchEnd cellIndex position Position cell NotebookCellTextModel match FindMatch
searchStartcellIndex
searchParams searchString isRegex matchCase wordSeparators
searchData searchParams
searchData
cellIndex searchStartcellIndex
searchStartPosition searchStartposition
searchEndCell _cellslength
cellIndex searchEndCell
cell _cellscellIndex
wrapFlag searchEnd cellIndex searchEndcellIndex searchStartPositionsearchEndposition
searchRange
searchStartPositionlineNumber
searchStartPositioncolumn
wrapFlag searchEndpositionlineNumber celltextBuffer
wrapFlag searchEndpositioncolumn celltextBuffercelltextBuffer
result celltextBuffersearchRange searchData
resultlength
cell match result
wrapFlag
cellIndex
searchEnd cellIndex _cellslength
cellIndex
searchEndCell searchEndcellIndex
searchStartPosition
searchString isRegex matchCase wordSeparators cell NotebookCellTextModel matches FindMatch
searchParams searchString isRegex matchCase wordSeparators
searchData searchParams
searchData
results cell NotebookCellTextModel matches FindMatch
cell _cells
searchRange celltextBuffer celltextBuffercelltextBuffer
matches celltextBuffersearchRange searchData
matcheslength
results cell matches matches
results
outputs IOutputDto
Int32Array
outputsoutput
outputoutputsoutput
mime outputmime
data outputdata