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 { EOL } from 'os';
import { describe, expect, test } from 'vitest';
import type { NotebookDocument } from 'vscode';
import { DiffServiceImpl } from '../../../../platform/diff/node/diffServiceImpl';
import { ILogger, ILogService } from '../../../../platform/log/common/logService';
import { IAlternativeNotebookContentService } from '../../common/alternativeContent';
import { AlternativeNotebookContentEditGenerator, textToAsyncIterableLines } from
BaseAlternativeNotebookContentProvider
AlternativeJsonNotebookContentProvider
AlternativeTextNotebookContentProvider
AlternativeXmlNotebookContentProvider
NullTelemetryService
SimulationWorkspace
ExtHostNotebookDocumentData
AsyncIterableObject
CancellationToken
ResourceMap
path
NotebookCellData NotebookCellKind NotebookData NotebookEdit NotebookRange Position Range TextEdit Uri
LineOfText notebookCellToCellData summarize
fixture loadFile loadNotebook
provider
mockLogger ILogger
ILogger mockLogger
ILogger mockLogger
provider BaseAlternativeNotebookContentProvider
_serviceBrand
_format
provider
providerkind
_serviceBrand
internal mockLogger
logger mockLogger
trace mockLoggertrace
debug mockLoggerdebug
info mockLoggerinfo
warn mockLoggerwarn
error mockLoggererror
preserveFocus
ILogger
ILogger
applyEditsImmediately
providerkind
alternativeFile filePath
file filePath
notebook file
alternativeContents alternativeFilecontents
cellSummary notebooksummarize
cellSummarycell
toReplace providerkind
alternativeContents alternativeContentstoReplace cellid
alternativeContentLines AsyncIterableObjectalternativeContentsl l
edits providernotebook alternativeContentLines CancellationTokenNone
notebookEdits NotebookEdit
edit edits
edit
notebookEditsedit
notebookEditslength
notebookEditsnewCellslength
notebookEditsnewCellskindNotebookCellKindMarkup
notebookEditsnewCellsvalue
notebookEditsrangestart
notebookEditsrangeend
newEdits providerUri alternativeContentLines CancellationTokenNone
notebookEditslength
edit newEdits
edit
notebookEditsedit
notebookEditslengthnotebookcellCount
providerkind
alternativeContents
alternativeContentLines AsyncIterableObjectalternativeContentsl l
edits providerUri alternativeContentLines CancellationTokenNone
notebookEdits NotebookEdit
edit edits
edit
notebookEditsedit
notebookEditslength
notebookEditsnewCellslength
notebookEditsnewCellskindNotebookCellKindCode
notebookEditsnewCellsvaluealternativeContents
file
notebookEdits
NotebookEdit NotebookCellKindMarkup
NotebookEdit NotebookCellKindMarkup
NotebookEdit NotebookCellKindCode
file
notebookEdits
NotebookEdit NotebookCellKindCode
file
notebookEdits
NotebookEdit
testInfo
providerkind
simulation
beforeIPynb filePath
notebook beforeIPynb simulation
alternativeFile filePath testInfofile
alternativeContents alternativeFilecontents
cellSummary notebooksummarize
cellSummarycell
toReplace providerkind
alternativeContents alternativeContentstoReplace cellid
alternativeContentLines AsyncIterableObjectalternativeContentsl l
edits providernotebook alternativeContentLines CancellationTokenNone
notebookEdits NotebookEdit
edit edits
edit
simulationedit edit
notebookEditsedit
simulationnotebookuri edit
providernotebookalternativeFilecontents
notebookEditslengthtestInfonotebookEditslength
testInfonotebookEditsedit i
notebookEditsinewCellslengtheditnewCellslength
editnewCellsc j
notebookEditsinewCellsjkindckind
notebookEditsinewCellsjlanguageIdclanguageId
notebookEditsirangestarteditrangestart
notebookEditsirangeendeditrangeend
notebook filePath
altDoc providernotebook
positions
cellIndex start end
cellIndex start end
cellIndex start end
cellIndex start end
cellIndex start end
cellIndex start end
cellIndex start end
pos positions
cell notebookposcellIndex
startTranslation posstart posendp altDoccell p
textFromCell celldocument posstart posend
textFromAltDoc altDoc startTranslation startTranslation
providerkind posstartline posendline
textFromAltDoctextFromCell
textFromAltDoc
providerkind
cellPosition altDocstartTranslation
cellPosition
cellPositioncellcell
cellPositionpositionlineposstartline
cellPositionpositioncharacterposstartcharacter
providerkind
simulation
cells
NotebookCellKindCode
NotebookCellKindCode
NotebookCellKindMarkup
NotebookCellKindCode
notebook ExtHostNotebookDocumentData
Uri
cells
simulation
document
altDoc providernotebook
originalText altDoc
rebuiltDoc provideroriginalText notebook
rebuiltDocoriginalText
positions
cellIndex position
cellIndex position
cellIndex position
cellIndex position
cellIndex position
cellIndex position
cellIndex position
pos positions
cell notebookposcellIndex
altPosition rebuiltDoccell posposition
cellPosition rebuiltDocaltPosition
cellPosition
cellPositioncellcell
cellPositionpositionlinepospositionline
cellPositionpositioncharacterpospositioncharacter
providerkind
simulation
cells
NotebookCellKindCode
NotebookCellKindCode
NotebookCellKindCode
notebook ExtHostNotebookDocumentData
Uri
cells
simulation
document
altDoc providernotebook
text altDoc
providerkind
text text
providerkind
text text
rebuiltDoc providertext notebook
i i notebookcellCount i
cell notebooki
position
altPosition rebuiltDoccell position
cellPosition rebuiltDocaltPosition
cellPosition
cellPositioncelldocumentlanguageId
providerkind
simulation
cells
NotebookCellKindMarkup
NotebookCellKindCode
NotebookCellKindMarkup
notebook ExtHostNotebookDocumentData
Uri
cells
simulation
document
altDoc providernotebook
text altDoc
rebuiltDoc providertext notebook
markdownCell1 notebook
markdownCell2 notebook
pos1
pos2
altPos1 rebuiltDocmarkdownCell1 pos1
altPos2 rebuiltDocmarkdownCell2 pos2
backToCell1 rebuiltDocaltPos1
backToCell2 rebuiltDocaltPos2
backToCell1cellmarkdownCell1
backToCell1positionline
backToCell1positioncharacter
backToCell2cellmarkdownCell2
backToCell2positionline
backToCell2positioncharacter
txt
xml
json
content providerkind xml providerkind txt json
uri Uri
notebook ExtHostNotebookDocumentDatauri cells document
edits providernotebook content CancellationTokenNone
notebookEdits
edit edits
notebookEditsedit
notebookEditslength
notebookEditsNotebookEdit
notebookEdits NotebookEditnewCellslength
notebookEdits NotebookEditnewCellsvalue
providerkind
content
uri Uri
notebook ExtHostNotebookDocumentDatauri cells document
edits providernotebook content CancellationTokenNone
notebookEdits
edit edits
notebookEditsedit
notebookEditslength
notebookEditsNotebookEdit
notebookEdits NotebookEditnewCellslength
notebookEdits NotebookEditnewCellsvalue
notebookEdits NotebookEditnewCellsvalue
providerkind providerkind
simulation
file filePath
notebook filePath simulation
edits providernotebook filecontents CancellationTokenNone
edit edits
edit
simulationnotebookuri edit
notebookcellCount
notebookkindNotebookCellKindMarkup
notebookkindNotebookCellKindCode
notebookkindNotebookCellKindCode
notebookkindNotebookCellKindMarkup
notebookkindNotebookCellKindCode
notebookkindNotebookCellKindMarkup
notebookkindNotebookCellKindCode
notebookkindNotebookCellKindMarkup
notebookkindNotebookCellKindCode
notebookkindNotebookCellKindMarkup
notebookkindNotebookCellKindCode
filePath
filePath filePath providerkind
providerkind filePath
simulation
atlContent beforeIPynb afterIPynb filePath filePath filePath
notebook beforeIPynb simulation
cellSummary notebooksummarize
cellSummarycell
toReplace providerkind
atlContentcontents atlContentcontentstoReplace cellid
notebookEdits NotebookEdit Uri TextEdit
edit providernotebook atlContentcontents CancellationTokenNone
notebookEditsedit
notebookData notebook notebookEdits simulation
expectedNotebook afterIPynb simulation
filePath providerkind
notebookDatacellsvalue expectedNotebookdocument
notebookDatacellsvalue expectedNotebookdocument
filePath providerkind
notebookDatacellsvalue expectedNotebookdocument
notebookDatacellsvalue expectedNotebookdocument
expectedNotebook notebookData providerkind
filePath filePath providerkind
ipynb filePath
notebook ipynb
altContent providernotebook
alternativeContentLines altContent
newEdits providerUri alternativeContentLines CancellationTokenNone
notebookEdits NotebookEdit
edit newEdits
edit
notebookEditsedit
notebookEditslengthnotebookcellCount
notebookcell i
expectedCell notebooki
celldocumentexpectedCelldocument
celldocumentlanguageIdexpectedCelldocumentlanguageId
cellkindexpectedCellkind
simulation SimulationWorkspace notebook NotebookDocument edits AsyncIterableNotebookEdit Uri TextEdit applyEditsImmediately
notebookEdits
applyEditsImmediately
edit edits
edit
simulationedit edit
simulationnotebookuri edit
notebookEditsedit
collectedEdits
edit edits
collectedEditsedit
edit collectedEdits
edit
simulationedit edit
simulationnotebookuri edit
notebookEditsedit
notebookEdits
cells index contents
simulation
notebook filePath simulation
altContent cellsitem
cellSummary notebooksummarize
cellSummarycell
toReplace providerkind
altContent altContenttoReplace cellid
edits providernotebook altContent CancellationTokenNone
notebookEdits simulation notebook edits applyEditsImmediately
notebookc cdocumentcellsi
notebook notebookEdits
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsnewCellslength
notebookEditsnewCellsvalue
notebookEditsrangestart
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsnewCellslength
notebookEditsnewCellsvalue
providerkind
cells i index i contents i
cells
providerkind
cells i index i contents i
cells
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsrangestart
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsrangestart
notebookEditsrangestart
notebookEditsnewCellsvalue
providerkind
cells i index i contents i
cells
providerkind
cells i index i contents i
cells
providerkind
cells i index i contents i
cells
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsrangestart
notebookEditsrangestart
notebookEditsnewCellsvalue
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
notebookEditsnewCellsvalue
notebookEditsrangestart
notebookEditsnewCellsvalue
notebookEditsrangestart
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
providerkind
cells i index i contents i
notebookEdits cells
notebookEditslength
providerkind
cells index contents index contents index contents index contents index contents index contents index contents
notebookEdits cells
notebookEditslength
notebookEditsrangestart
notebookEditsrangestart
notebookEditsrangestart
providerkind
cells index contents index contents index contents index contents index contents index contents index contents
notebookEdits cells
notebookEditslength
notebookEditsrangestart
notebookEditsrangestart
notebookEditsrangestart
providerkind
cells index contents index contents index contents index contents index contents index contents index contents
cells
providerkind
cells index contents index contents index contents index contents index contents index contents
cells
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
newNotebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernewNotebook
id newNotebookid
alternativeContent alternativeContentid
edits providernotebook alternativeContent CancellationTokenNone
notebookEdits simulation notebook edits applyEditsImmediately
notebookEditslength
notebookcell i
celldocumentnewNotebookidocument
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
cells
contents NotebookCellKindCode contents
newNotebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernewNotebook
newNotebookcell
id cellid
alternativeContent alternativeContentid
edits providernotebook alternativeContent CancellationTokenNone
notebookEdits simulation notebook edits applyEditsImmediately
notebookEditslength
notebookEditsrangestart
notebookEditsnewCellsvalue
notebookEditsnewCellslength
notebookcell i
celldocumentnewNotebookidocument
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
cells
contents NotebookCellKindCode contents
newNotebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernewNotebook
newNotebookcell
id cellid
alternativeContent alternativeContentid
alternativeContent alternativeContent
edits providernotebook alternativeContent CancellationTokenNone
simulation notebook edits applyEditsImmediately
notebookcell i
celldocumentnewNotebookidocument
providerkind
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernotebook
alternativeContent alternativeContent
alternativeContent alternativeContent
alternativeContent alternativeContent
edits providernotebook alternativeContent CancellationTokenNone
notebookEdits
edit edits
edit
simulationedit edit
simulationnotebookuri edit
notebookEditsedit
notebookdocument
notebookdocument
notebookdocument
notebookdocument
providerkind
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernotebook
alternativeContent alternativeContent
alternativeContent alternativeContent
alternativeContent alternativeContent
edits providernotebook alternativeContent CancellationTokenNone
notebookEdits
edit edits
edit
simulationedit edit
simulationnotebookuri edit
notebookEditsedit
notebookdocument
notebookdocument
notebookdocument
notebookdocument
providerkind
simulation
cells
contents NotebookCellKindCode contents
notebook ExtHostNotebookDocumentDataUri cells simulationdocument
alternativeContent providernotebook
alternativeContent alternativeContent
alternativeContent alternativeContent
alternativeContent alternativeContent
edits providernotebook alternativeContent CancellationTokenNone
notebookEdits
edit edits
edit
simulationedit edit
simulationnotebookuri edit
notebookEditsedit
notebookdocument
notebookdocument
notebookdocument
notebookdocument
notebook NotebookDocument edits NotebookEdit Uri TextEdit simulationWorkspace SimulationWorkspace
notebookEdits NotebookEdit
edit edits
edit
simulationWorkspaceedit edit
notebookEditsedit
simulationWorkspacenotebookuri notebookEdits
notebook
notebook NotebookDocument NotebookData
newCells notebooknotebookCellToCellData
newCellMap
notebookcell i
newCellMapcelldocumenturi newCellsi
newCells
notebook NotebookDocument data NotebookData kind
notebookcellCountdatacellslength
i i notebookcellCount i
cell notebooki
cellData datacellsi
kind
celldocumentcellDatavalue
kind
celldocumentl lcellDatavaluel l
celldocumentcellDatavalue
celldocumentlanguageIdcellDatalanguageId
cellkindcellDatakind
content
content