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 assert from 'assert';
import { VSBuffer } from '../../../../../base/common/buffer.js';
import { DisposableStore } from '../../../../../base/common/lifecycle.js';
import { Mimes } from '../../../../../base/common/mime.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { Position } from '../../../../../editor/common/core/position.js';
import { ILanguageService } from '../../../../../editor/common/languages/language.js';
import { TestInstantiationService } from
IUndoRedoService
NotebookTextModel
CellEditType CellKind ICellEditOperation NotebookTextModelChangedEvent NotebookTextModelWillAddRemoveEvent SelectionStateType
setupInstantiationService TestCell valueBytesFromString withTestNotebook
disposables DisposableStore
instantiationService TestInstantiationService
languageService ILanguageService
disposables
instantiationService disposables
languageService instantiationServiceILanguageService
instantiationServiceIUndoRedoService
disposables
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells
editType CellEditTypeReplace index count cells
asserttextModelcells
asserttextModelcells
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
asserttextModelcells
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
textModel
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
asserttextModelcells
CellKindCode
editor
textModel editortextModel
assert
textModel
index Number
editType CellEditTypeOutput
outputs
assert
textModel
index
editType CellEditTypeOutput
outputs
textModel
index
editType CellEditTypeOutput
outputs
outputId
outputs mime Mimesmarkdown data
asserttextModelcellslength
asserttextModelcellsoutputslength
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime Mimesmarkdown data
asserttextModelcellslength
asserttextModelcellsoutputslength
first second textModelcellsoutputs
assertfirstoutputId
assertsecondoutputId
textModel
index
editType CellEditTypeOutput
outputs
outputId
outputs mime Mimestext data
asserttextModelcellslength
asserttextModelcellsoutputslength
first textModelcellsoutputs
assertfirstoutputId
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime Mimesmarkdown data
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime Mimesmarkdown data
asserttextModelcellslength
asserttextModelcellsoutputslength
first second textModelcellsoutputs
assertfirstoutputId
assertsecondoutputId
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime Mimesmarkdown data
editType CellEditTypeOutputItems
append
outputId
items
mime Mimesmarkdown data
asserttextModelcellslength
asserttextModelcellsoutputslength
first textModelcellsoutputs
assertfirstoutputId
assertfirstoutputslength
stdOutMime
stdErrMime
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime stdOutMime data
output textModelcellsoutputs
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
mime stdOutMime data
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
mime stdOutMime data
assertoutputversionId
asserttextModelcellslength
asserttextModelcellsoutputslength
assertoutputoutputId
assertoutputoutputslength
assertoutputoutputsdata
assertoutput stdOutMime
assertoutput stdOutMime
assertoutput stdOutMime
assertoutput stdErrMime
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs mime stdOutMime data
output textModelcellsoutputs
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
assertoutputversionId
assertoutputoutputsdata
assertoutput stdOutMime
assertoutput stdOutMime
assertoutput stdOutMime
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs
mime stdOutMime data
mime stdOutMime data
output textModelcellsoutputs
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
assertoutputversionId
assertoutputoutputsdata
assertoutput stdOutMime
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs
mime stdOutMime data
mime stdOutMime data
output textModelcellsoutputs
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
assertoutputversionId
assertoutputoutputsdata
assertoutput stdOutMime
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypeOutput
append
outputs
outputId
outputs
mime stdOutMime data
mime stdErrMime data
output textModelcellsoutputs
assertoutputversionId
textModel
editType CellEditTypeOutputItems
append
outputId
items
mime stdOutMime data
mime stdErrMime data
assertoutputversionId
assertoutput stdErrMime
assertoutput stdOutMime
CellKindCode
editor
textModel editortextModel
assert
textModel
index Number
editType CellEditTypeMetadata
metadata
assert
textModel
index
editType CellEditTypeMetadata
metadata
textModel
index
editType CellEditTypeMetadata
metadata customProperty
textModel
index
editType CellEditTypeMetadata
metadata
asserttextModelcellslength
asserttextModelcellsmetadatacustomProperty
CellKindCode
editor
textModel editortextModel
textModel
index
editType CellEditTypePartialMetadata
metadata customProperty
textModel
index
editType CellEditTypePartialMetadata
metadata
asserttextModelcellslength
asserttextModelcellsmetadatacustomProperty
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor _viewModel ds
textModel editortextModel
changeEvent NotebookTextModelChangedEvent
eventListener textModele
changeEvent e
willChangeEvents NotebookTextModelWillAddRemoveEvent
willChangeListener textModele
willChangeEventse
version textModelversionId
textModel
editType CellEditTypeReplace index count cells
editType CellEditTypeReplace index count cells ds textModelviewType CellKindCode languageService
kind SelectionStateTypeIndex focus start end selections start end
asserttextModelcellslength
asserttextModelcells
asserttextModelcells
asserttextModelcells
assertchangeEvent
assertchangeEventrawEventslength
assertchangeEventendSelectionStateselections start end
assertwillChangeEventslength
asserttextModelversionId version
eventListener
willChangeListener
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor
textModel editortextModel
changeEvent NotebookTextModelChangedEvent
eventListener textModele
changeEvent e
willChangeEvents NotebookTextModelWillAddRemoveEvent
willChangeListener textModele
willChangeEventse
version textModelversionId
textModel
editType CellEditTypeReplace index count cells
index
editType CellEditTypeMetadata
metadata
kind SelectionStateTypeIndex focus start end selections start end
assertchangeEvent
assertchangeEventrawEventslength
assertchangeEventendSelectionStateselections start end
assertwillChangeEventslength
asserttextModelversionId version
eventListener
willChangeListener
CellKindCode
editor
model editortextModel
assertmodelcellslength
assertmodelcellsoutputslength
success1 model
editType CellEditTypeOutput index outputs
outputId outputs mime data VSBuffer
append
assertsuccess1
assertmodelcellsoutputslength
success2 model
editType CellEditTypeOutput index outputs
outputId outputs mime data VSBuffer
append
assertsuccess2
assertmodelcellsoutputslength
CellKindCode
CellKindCode
editor _ ds
model editortextModel
event NotebookTextModelChangedEvent
dsmodele event e
success model
editType CellEditTypeOutput index outputs
outputId outputs mime data VSBuffer
append
assertsuccess
assertmodelcellsoutputslength
assertevent
event
success model
editType CellEditTypeOutput
index
outputs
append
editType CellEditTypeOutput
index
outputs
append
assertsuccess
assertevent
event
success model
editType CellEditTypeOutput
index
outputs
append
editType CellEditTypeOutput
index
outputs
append
assertsuccess
assertevent
CellKindCode
CellKindCode
editor viewModel
asserteditortextModelversionId
firstAltVersion
asserteditortextModelalternativeVersionId firstAltVersion
editortextModel
index
editType CellEditTypeMetadata
metadata
inputCollapsed
asserteditortextModelversionId
asserteditortextModelalternativeVersionId firstAltVersion
secondAltVersion
asserteditortextModelalternativeVersionId secondAltVersion
viewModel
asserteditortextModelversionId
asserteditortextModelalternativeVersionId firstAltVersion
viewModel
asserteditortextModelversionId
asserteditortextModelalternativeVersionId firstAltVersion
asserteditortextModelalternativeVersionId secondAltVersion
editortextModel
index
editType CellEditTypeMetadata
metadata
inputCollapsed
asserteditortextModelversionId
asserteditortextModelalternativeVersionId
viewModel
asserteditortextModelversionId
asserteditortextModelalternativeVersionId secondAltVersion
CellKindCode
editor viewModel ds
textModel editortextModel
editortextModel
editType CellEditTypeReplace index count cells
ds textModelviewType CellKindCode languageService
ds textModelviewType CellKindCode languageService
asserttextModelcellslength
editortextModel
editType CellEditTypeMetadata index metadata id
asserttextModelcellsmetadataid
viewModel
asserttextModelcellslength
viewModel
asserttextModelcellslength
CellKindCode
editor viewModel ds
textModel editortextModel
editortextModel
editType CellEditTypeReplace index count cells
ds textModelviewType CellKindCode languageService
ds textModelviewType CellKindCode languageService
asserttextModelcellslength
editortextModel
editType CellEditTypeMetadata index metadata id
editType CellEditTypeOutput handle append outputs
outputId
outputs mime Mimestext data mime data
asserttextModelcellsmetadataid
viewModel
asserttextModelcellslength
viewModel
asserttextModelcellslength
CellKindCode outputId outputs mime data
editor
notebook editortextModel
assertnotebookcellsoutputslength
assertnotebookcellsoutputsoutputslength
assertnotebookcellsoutputsoutputsdata
edits ICellEditOperation
editType CellEditTypeOutput handle outputs
editType CellEditTypeOutput handle append outputs
outputId
outputs mime Mimestext data mime data
editortextModeledits
assertnotebookcellsoutputslength
assertnotebookcellsoutputsoutputslength
CellKindCode outputId outputs mime data
CellKindCode outputId outputs mime data
CellKindCode outputId outputs mime data
editor
notebook editortextModel
edits ICellEditOperation
editType CellEditTypeOutput index outputs
editType CellEditTypeReplace index count cells
editType CellEditTypeOutput index append outputs
outputId
outputs mime Mimestext data mime data
editortextModeledits
assertnotebookcellslength
assertnotebookcellsoutputslength
assertnotebookcellsoutputslength
assertnotebookcellsoutputsoutputId
assertnotebookcellsoutputsoutputId
CellKindCode outputId outputs mime data
CellKindCode outputId outputs mime data
CellKindCode outputId outputs mime data
editor
notebook editortextModel
edits ICellEditOperation
editType CellEditTypeOutput index append outputs
outputId
outputs mime Mimestext data mime data
editType CellEditTypeReplace index count cells
editType CellEditTypeOutput index append outputs
outputId
outputs mime Mimestext data mime data
editortextModeledits
assertnotebookcellslength
assertnotebookcellsoutputslength
assertnotebookcellsoutputslength
assertnotebookcellsoutputsoutputId
CellKindCode
editor
model editortextModel
assertmodelcellslength
assertmodelcellsoutputslength
success1 model
editType CellEditTypeOutput index outputs
outputId outputs mime data
outputId outputs mime data
outputId outputs mime data
outputId outputs mime data
append
assertsuccess1
assertmodelcellsoutputslength
success2 model
editType CellEditTypeOutput index outputs
outputId outputs mime data
outputId outputs mime data
outputId outputs mime data
outputId outputs mime data
append
assertsuccess2
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputId
assertmodelcellsoutputsoutputId
assertmodelcellsoutputsoutputId
assertmodelcellsoutputsoutputId
CellKindCode
editor
model editortextModel
edits NotebookTextModelmodel
source language cellKind CellKindCode mime outputs metadata
assertedits
editType CellEditTypeMetadata index metadata
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeReplace index count cells
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeReplace index count cells cells
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeReplace index count cells cells
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeReplace index count cells cells
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata name
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata name
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeReplace index count cells cells
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindMarkup mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeReplace index count cells cells
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata name
source language cellKind CellKindCode mime outputs metadata name
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata name
editType CellEditTypeReplace index count cells cells
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells modelcellshandle
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeReplace index count cells cells
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata internalMetadata executionOrder
source language cellKind CellKindCode mime outputs metadata
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeReplace index count cells cells
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata internalMetadata executionOrder
edits NotebookTextModelmodel cells modelcellshandle
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeMetadata index metadata
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata
source language cellKind CellKindCode mime outputs metadata foo
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeReplace index count cells cells
editType CellEditTypeMetadata index metadata foo
modeledits
assertmodelcellslength
assertmodelcells
assertmodelcells
assertmodelcellsmetadata foo
CellKindCode
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs
outputId
outputs mime Mimesmarkdown data
metadata
source language cellKind CellKindCode mime outputs metadata foo
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeOutput index outputs
outputId
outputs mime Mimesmarkdown data
append
editType CellEditTypeMetadata index metadata foo
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputId
assertmodelcellsoutputsoutputsdata
CellKindCode
outputId
outputs mime Mimesmarkdown data
CellKindCode
editor
model editortextModel
cells
source language cellKind CellKindCode mime outputs
outputId
outputs mime Mimesmarkdown data
metadata
source language cellKind CellKindCode mime outputs metadata foo
edits NotebookTextModelmodel cells
assertedits
editType CellEditTypeMetadata index metadata
editType CellEditTypeOutputItems outputId items mime Mimesmarkdown data append
editType CellEditTypeMetadata index metadata foo
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputId
assertmodelcellsoutputsoutputsdata
CellKindCode
outputId
outputs mime data
editor
model editortextModel
edits ICellEditOperation
editType CellEditTypeOutputItems
outputId
append
items mime data VSBuffer mime data VSBuffer
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputslength
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
CellKindCode
outputId
outputs mime data
editor
model editortextModel
edits ICellEditOperation
editType CellEditTypeOutputItems
outputId
append
items mime data VSBuffer mime data VSBuffer
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputslength
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
CellKindCode
outputId
outputs mime data
editor
model editortextModel
edits ICellEditOperation
editType CellEditTypeOutputItems
outputId
append
items mime data VSBuffer mime data VSBuffer
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputslength
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
CellKindCode
outputId
outputs mime data
editor
model editortextModel
edits ICellEditOperation
editType CellEditTypeOutputItems
outputId
append
items mime data VSBuffer mime data VSBuffer
modeledits
assertmodelcellslength
assertmodelcellsoutputslength
assertmodelcellsoutputsoutputslength
assertmodelcellsoutputsoutputsmime
assertmodelcellsoutputsoutputsdata
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor viewModel
notebookModel viewModelnotebookDocument
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
CellKindCode
CellKindCode
CellKindCode
CellKindCode
editor viewModel
notebookModel viewModelnotebookDocument
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn
findMatch notebookModel cellIndex position
assertfindMatch
assertfindMatchmatchrangestartLineNumber
assertfindMatchmatchrangestartColumn