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 type * as vscode from 'vscode';
import { AsyncIterableObject } from '../../../util/vs/base/common/async';
import { CharCode } from '../../../util/vs/base/common/charCode';
import { Constants } from '../../../util/vs/base/common/uint';
import { Range, TextEdit } from '../../../vscodeTypes';
import { looksLikeCode } from '../common/codeGuesser';
import { isImportStatement } from '../common/importStatement';
import { EditStrategy Lines trimLeadingWhitespace
computeIndentLevel2 guessIndentation normalizeIndentation
stream AsyncIterableLineOfText StreamingEditsResult
lineFilter ILineFilter streamingWorkingCopyDocument StreamingWorkingCopyDocument IStreamingEditsStrategy
replyIndentationTracker ReplyIndentationTracker
myDocument StreamingWorkingCopyDocument
initialSelection vscodeRange
adjustedSelection vscodeRange
editStrategy EditStrategy
collectImports
lineFilter ILineFilter LineFiltersnoop
_stream AsyncIterableLineOfText StreamingEditsResult
stream AsyncIterableObject_stream lineFilter
collectImports
stream stream myDocument adjustedSelection
anchorLineIndex myDocumentfirstSentLineIndex
el stream
el
anchorLineIndex elanchor elline
anchorLineIndex anchorLineIndex elvalue
myDocumentdidReplaceEdits anchorLineIndex adjustedSelectionendline
myDocumentanchorLineIndex adjustedSelectionendline
myDocumentdidNoopEdits
myDocumentdidEdits
myDocumentadditionalImports
anchor MatchedDocumentLine line
anchor
replyIndentationTracker myDocument anchorlineIndex line
fixedLine replyIndentationTrackerline myDocumentindentStyle
myDocumentanchorlineIndexsentInCodeBlock SentInCodeBlockRange
myDocumentadjustedSelectionstartline anchorlineIndex fixedLine
myDocumentanchorlineIndex fixedLine
firstRangeLine adjustedSelectionstartline
replyIndentationTracker myDocument firstRangeLine line
fixedLine replyIndentationTrackerline myDocumentindentStyle
initialSelectionisEmpty
cursorLineContent myDocumentfirstRangeLinecontent
cursorLineContent
fixedLineadjustedContentcursorLineContent
myDocumentfirstRangeLine fixedLine
editStrategy EditStrategyFallbackToInsertAboveRange
myDocumentfirstRangeLine fixedLine
editStrategy EditStrategyFallbackToInsertBelowRange editStrategy EditStrategyForceInsertion
myDocumentfirstRangeLine fixedLine
myDocumentfirstRangeLine fixedLine
anchorLineIndex line
fixedLine replyIndentationTrackerline myDocumentindentStyle
fixedLinetrimmedContent myDocumentdidReplaceEdits
matchedLine fixedLine anchorLineIndex
matchedLine
myDocumentanchorLineIndex matchedLinelineIndex fixedLine
anchorLineIndex myDocument
myDocumentfixedLine
existingLine myDocumentanchorLineIndex
existingLineisSent existingLinecontent fixedLinetrimmedContent
myDocumentanchorLineIndex fixedLine
existingLineindentLevel fixedLineadjustedIndentLevel
myDocumentanchorLineIndex fixedLine
existingLineindentLevel fixedLineadjustedIndentLevel myDocumentdidReplaceEdits
myDocumentanchorLineIndex fixedLine
myDocumentanchorLineIndex fixedLine
replyLine ReplyLine minimumLineIndex MatchedDocumentLine
isVeryShortReplyLine replyLinetrimmedContentlength
lineIndex minimumLineIndex lineIndex myDocument lineIndex
documentLine myDocumentlineIndex
documentLineisSent
documentLinenormalizedContent replyLineadjustedContent
lineIndex
documentLinetrimmedContentlength documentLineindentLevel replyLineadjustedIndentLevel
isVeryShortReplyLine documentLinetrimmedContentlength
lineStream AsyncIterableLineOfText AsyncIterableLineOfText LineWithAnchorInfo
emitter
accumulatedLines LineOfText
accumulatedRealChars
anchorFound
line lineStream
anchorFound
accumulatedLinesline
accumulatedRealChars linevaluelength
accumulatedRealChars
anchor accumulatedLines
anchorFound
emitter accumulatedLinesvalue anchor
emitteraccumulatedLines
emitterline
lines LineOfText MatchedDocumentLine
trimmedLines linesline linevalue
i myDocumentfirstSentLineIndex stopAt myDocument lineslength i stopAt i
myDocumentiisSent
matchedAllLines
j j trimmedLineslength j
documentLine myDocumenti j
documentLineisSent documentLinetrimmedContent trimmedLinesj
matchedAllLines
matchedAllLines
i
replyIndentationTracker ReplyIndentationTracker
_myDocument IStreamingWorkingCopyDocument
_cursorPosition vscodePosition
_lineFilter ILineFilter LineFiltersnoop
_stream AsyncIterableLineOfText StreamingEditsResult
stream AsyncIterableObject_stream _lineFilter
stream stream _myDocument _cursorPosition _cursorPosition
anchorLineIndex
line stream
replyIndentationTracker
anchorLineIndex linevalue
anchorLineIndex anchorLineIndex linevalue
_myDocumentdidNoopEdits
_myDocumentdidEdits
_myDocumentadditionalImports
replyLine
firstRangeLine _cursorPositionline
cursorLineContent _myDocumentfirstRangeLinecontent
shouldLineBeReplaced cursorLineContent replyLinecursorLineContent
lineNumForIndentGuessing shouldLineBeReplaced
firstRangeLine
_myDocument firstRangeLine firstRangeLine firstRangeLine
replyIndentationTracker _myDocument lineNumForIndentGuessing replyLine
fixedLine replyIndentationTrackerreplyLine _myDocumentindentStyle
shouldLineBeReplaced
_myDocumentfirstRangeLine fixedLine
_myDocumentfirstRangeLine fixedLine
anchorLineIndex line
fixedLine replyIndentationTrackerline _myDocumentindentStyle
_myDocumentanchorLineIndex fixedLine
replyIndentationTracker ReplyIndentationTracker
_myDocument IStreamingWorkingCopyDocument
_selection vscodeRange
_lineFilter ILineFilter LineFiltersnoop
_stream AsyncIterableLineOfText StreamingEditsResult
stream AsyncIterableObject_stream _lineFilter
stream stream _myDocument _selection
anchorLineIndex
replaceLineCount
initialTextOnLineAfterSelection
_selectionendline _selectionstartline _selectionendcharacter
replaceLineCount _selectionendline _selectionstartline
replaceLineCount _selectionendline _selectionstartline
initialTextOnLineAfterSelection _myDocument_selectionendlinecontent_selectionendcharacter
line stream
replyIndentationTracker
firstRangeLine _selectionstartline
replyIndentationTracker _myDocument firstRangeLine linevalue
fixedLine replyIndentationTrackerlinevalue _myDocumentindentStyle
anchorLineIndex _myDocumentfirstRangeLine fixedLine
replaceLineCount
fixedLine replyIndentationTrackerlinevalue _myDocumentindentStyle
replaceLineCount
anchorLineIndex _myDocumentanchorLineIndex fixedLine
replaceLineCount
anchorLineIndex _myDocumentanchorLineIndex fixedLine
_myDocumentdidEdits replaceLineCount
_myDocumentanchorLineIndex anchorLineIndex replaceLineCount
_myDocumentdidEdits initialTextOnLineAfterSelectionlength
_myDocumentanchorLineIndex _myDocumentanchorLineIndex content initialTextOnLineAfterSelection
_myDocumentdidNoopEdits
_myDocumentdidEdits
_myDocumentadditionalImports
line LineOfText
didNoopEdits
didEdits
additionalImports
_replyIndentStyle vscodeFormattingOptions
indentDelta
document IStreamingWorkingCopyDocument
documentLineIdx
replyLine
docIndentLevel
i documentLineIdx i i
documentLine documenti
documentLinecontentlength
docIndentLevel documentLineindentLevel
i documentLineIdx
documentLinecontent
documentlanguageId documentLinecontent
docIndentLevel
_replyIndentStyle IndentUtilsreplyLine
replyIndentLevel replyLine _replyIndentStyletabSize
indentDelta replyIndentLevel docIndentLevel
replyLine desiredStyle vscodeFormattingOptions ReplyLine
replyLine
_replyIndentStyle
_replyIndentStyle IndentUtilsreplyLine
originalIndentLevel
adjustedIndentLevel
currentIndentLevel
originalIndentLevel currentIndentLevel
adjustedIndentLevel MathoriginalIndentLevel indentDelta
adjustedIndentLevel
adjustedContent IndentUtilsreplyLine _replyIndentStyle insertSpaces tabSize desiredStyle determineAdjustedIndentLevel
replyLine originalIndentLevel adjustedContent adjustedIndentLevel
line
anchor MatchedDocumentLine
lineIndex
sentInCodeBlock SentInCodeBlockAbove SentInCodeBlockRange SentInCodeBlockBelow SentInCodeBlockOther
startLineIndex
endLineIndex
languageId
indentStyle vscodeFormattingOptions
didNoopEdits
didEdits
additionalImports
index DocumentLine
importStatement
index line ReplyLine isPreserving
fromIndex toIndex line ReplyLine
line ReplyLine
index line ReplyLine
index line ReplyLine
fromIndex toIndex
indentStyle vscodeFormattingOptions
_originalLines
lines DocumentLine
firstSentLineIndex
_didNoopEdits
_didEdits
_didReplaceEdits
_additionalImports
_didNoopEdits
_didEdits
_didReplaceEdits
_additionalImports
outputStream vscodeChatResponseStream
uri vscodeUri
sourceCode
sentLines SentLine
selection LineRange
languageId
fileIndentInfo vscodeFormattingOptions
indentStyle IndentUtilssourceCode fileIndentInfo
_originalLines sourceCode
i i _originalLineslength i
linesi _originalLinesi indentStyle
firstSentLineIndex Number
sentLine sentLines
linessentLinelineIndexsentLinesentInCodeBlock
firstSentLineIndex MathfirstSentLineIndex sentLinelineIndex
firstSentLineIndex MathfirstSentLineIndex selectionstartLineIndex
linesline linecontent
lineslength
index DocumentLine
index index lineslength
linesindex
importStatement
_additionalImportsimportStatement
index line ReplyLine isPreserving
newLineContent line line lineadjustedContent
linesindexcontent newLineContent
_didNoopEdits
index
linesindex newLineContent indentStyle
outputStreamuri index index Constants newLineContent
_didEdits
_didReplaceEdits _didReplaceEdits isPreserving
index
fromIndex toIndex line ReplyLine
fromIndex toIndex
fromIndex toIndex
fromIndex line
linesfromIndex toIndex fromIndex lineadjustedContent indentStyle
outputStreamuri fromIndex toIndex Constants lineadjustedContent
_didEdits
_didReplaceEdits
fromIndex
line ReplyLine
lines lineadjustedContent indentStyle
outputStreamuri lineslength Constants lineslength Constants lineadjustedContent
_didEdits
lineslength
index line ReplyLine
linesindex lineadjustedContent indentStyle
outputStreamuri index Constants index Constants lineadjustedContent
_didEdits
index
index line ReplyLine
index lineslength
index line
linesindex lineadjustedContent indentStyle
outputStreamuri index index lineadjustedContent
_didEdits
index
fromIndex toIndex
linesfromIndex toIndex fromIndex
outputStreamuri fromIndex toIndex
_didEdits
_didReplaceEdits
fromIndex
trimmedContent originalContent
originalContent
originalIndentLevel
adjustedContent
adjustedIndentLevel
lineIndex
SentInCodeBlock
None
Above
Range
Below
Other
_sentInCodeBlock SentInCodeBlock SentInCodeBlockNone
_sentInCodeBlock SentInCodeBlockNone
SentInCodeBlock
_sentInCodeBlock
_trimmedContent
_trimmedContent
_trimmedContent content
_trimmedContent
_normalizedContent
_normalizedContent
_normalizedContent content _indentStyletabSize _indentStyleinsertSpaces
_normalizedContent
_indentLevel
_indentLevel
_indentLevel content _indentStyletabSize
_indentLevel
content
_indentStyle vscodeFormattingOptions
sentInCodeBlock SentInCodeBlock
_sentInCodeBlock sentInCodeBlock
sourceCode fileIndentInfo vscodeFormattingOptions vscodeFormattingOptions
fileIndentInfo
fileIndentInfo
vscodeFormattingOptionsLinessourceCode
line vscodeFormattingOptions
leadingWhitespace IndentUtilsline
leadingWhitespace leadingWhitespace
vscodeFormattingOptionsline
line originalIndentStyle vscodeFormattingOptions desiredIndentStyle vscodeFormattingOptions currentIndentLevel n n
indentLevel line originalIndentStyletabSize
desiredIndentLevel indentLevel
indentLevel
line line originalIndentStyle
indentLevel
indentLevel desiredIndentLevel
line line
indentLevel
line desiredIndentStyletabSize desiredIndentStyleinsertSpaces
line indentStyle vscodeFormattingOptions
chrIndex
chrIndex linelength
chr linechrIndex
chr CharCodeTab
chrIndex
chr CharCodeSpace
chrIndex indentStyletabSize
chrIndex
linechrIndex
line
i i linelength i
char linei
char char
line i
line
filters ILineFilter ILineFilter
line LineOfText filtersfilter filter line
noop
ILineFilter
State
BeforeCodeBlock
InCodeBlock
AfterCodeBlock
state StateBeforeCodeBlock
line LineOfText
state StateBeforeCodeBlock
linevalue
state StateInCodeBlock
state StateInCodeBlock
linevalue
state StateAfterCodeBlock
__lineOfTextBrand
value
value
value value
TextPieceKind
OutsideCodeBlock
InsideCodeBlock
Delimiter
value
kind TextPieceKind
textSource AsyncIterable AsyncIterableObjectClassifiedTextPiece
code blocks
IStreamingTextPieceClassifier
TextPieceClassifiers
TextPieceClassifiers
classifier IStreamingTextPieceClassifier IStreamingTextPieceClassifier
source AsyncIterable
emitter
bufferedPieces ClassifiedTextPiece
sawOnlyLeadingText
piece source
sawOnlyLeadingText
emitterpiece
piecekind TextPieceKindOutsideCodeBlock
bufferedPiecespiece
sawOnlyLeadingText
p bufferedPieces
emitterp
bufferedPieceslength
emitterpiece
sawOnlyLeadingText
allText bufferedPiecesp pvalue
allText
emitter allText TextPieceKindInsideCodeBlock
emitter allText TextPieceKindOutsideCodeBlock
IStreamingTextPieceClassifier
source AsyncIterable
AsyncIterableObjectsource line line TextPieceKindInsideCodeBlock
fence IStreamingTextPieceClassifier
source AsyncIterable
emitter
reader sourceSymbolasyncIterator
state TextPieceKindOutsideCodeBlock
readerendOfStream
text readerfencelength
text fence
readerendOfStream
piece reader
piecelength
emitter piece state
nextChar reader
nextChar
reader
emitter state
lineWithFence reader
state state TextPieceKindInsideCodeBlock TextPieceKindOutsideCodeBlock TextPieceKindInsideCodeBlock
emitter lineWithFence TextPieceKindDelimiter
_buffer
_atEnd
_bufferlength _atEnd
_source AsyncIterator
_atEnd
value done _source
done
_atEnd
_buffer value
n
_bufferlength n _atEnd
ncharcharn` characters
n
result _buffer n
_buffer _buffern
result
_buffer
_atEnd
_bufferlength _atEnd
_source AsyncIterator
_atEnd
value done _source
done
_atEnd
_buffervalue
AsyncReaderEndOfStream
_bufferlength _atEnd
_bufferlength
AsyncReader
_buffer
AsyncReaderEndOfStream
_bufferlength _atEnd
_bufferlength
AsyncReader
_buffer
value element
piece
piece
piece
piece
endOfStream
source AsyncIterable AsyncIterableObjectLineOfText
emitter
buffer
str source
buffer str
newlineIndex buffer
newlineIndex
line buffer newlineIndex
buffer buffernewlineIndex
emitter line
bufferlength
emitter buffer
doc IStreamingWorkingCopyDocument range vscodeRange
startLine rangestartcharacter rangestartline rangestartline
endLine docrangeendlinecontentlength rangeendcharacter rangeendline rangeendline
i startLine i endLine i
docicontent doclanguageId
stream AsyncIterableObjectLineOfText doc IStreamingWorkingCopyDocument rangeToCheckForImports vscodeRange AsyncIterableObjectLineOfText
doc rangeToCheckForImports
stream
extractedImports
hasCode
streamline
linevalue doclanguageId
doclinevalue
extractedImports
isOnlyWhitespace linevaluelength
isOnlyWhitespace extractedImports
hasCode
hasCode