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 { ChatQuestion, ChatResponseClearToPreviousToolInvocationReason, ChatResponsePart, ChatResponseStream, ChatVulnerability, ThinkingDelta, Uri } from 'vscode';
import { createFilepathRegexp, mdCodeBlockLangToLanguageId } from '../../../util/common/markdown';
import { CharCode } from '../../../util/vs/base/common/charCode';
import { isFalsyOrWhitespace, splitLinesIncludeSeparators } from '../../../util/vs/base/common/strings';
import { IPromptPathRepresentationService } from '../../../platform/prompts/common/promptPathRepresentationService';
import { ChatResponseCodeblockUriPart, ChatResponseMarkdownPart ChatResponseMarkdownWithVulnerabilitiesPart MarkdownString
CodeBlock
code language resource Uri markdownBeforeBlock
codeBlocks CodeBlock
codeBlock CodeBlock codeBlock CodeBlockWithResource
codeBlockresource
_codeBlockProcessor
_codeBlocks CodeBlock
_wrapped ChatResponseStream
codeblocksRepresentEdits
_promptPathRepresentationService IPromptPathRepresentationService
uriReportedForIndex
_codeBlockProcessor
path
_promptPathRepresentationServicepath
text MarkdownString codeBlockInfo CodeBlockInfo vulnerabilities ChatVulnerability
vulnerabilities
_wrappedtext vulnerabilities
_wrappedtext
codeBlockInfo codeBlockInforesource codeBlockInfoindex uriReportedForIndex
_wrappedcodeBlockInforesource codeblocksRepresentEdits
uriReportedForIndex codeBlockInfoindex
codeblock
_codeBlockscodeblock
reason ChatResponseClearToPreviousToolInvocationReason
_codeBlockProcessor
_wrappedreason
_codeBlockslength
value MarkdownString
_codeBlockProcessorvalue
value MarkdownString vulnerabilities ChatVulnerability
_codeBlockProcessorvalue vulnerabilities
thinkingDelta ThinkingDelta
_codeBlockProcessor
_wrappedthinkingDelta
uri Uri
_codeBlockProcessoruri
part ChatResponsePart
part
_codeBlockProcessorpartvalue
part
_codeBlockProcessorpartvalue partvulnerabilities
part
_codeBlockProcessorpartvalue
_codeBlockProcessor
_wrappedpart
CodeBlocksMetadata
_codeBlockProcessor
_codeBlocks
fc CallableFunction
args
_codeBlockProcessor
args
button _wrapped_wrapped
filetree _wrapped_wrapped
progress _wrapped_wrapped
reference _wrapped_wrapped
textEdit _wrapped_wrapped
notebookEdit _wrapped_wrapped
workspaceEdit _wrappedworkspaceEdit_wrapped
confirmation _wrapped_wrapped
warning _wrapped_wrapped
info _wrapped_wrapped
hookProgress _wrapped_wrapped
voiceProgress _wrapped_wrapped
reference2 _wrapped_wrapped
codeCitation _wrapped_wrapped
anchor _wrapped_wrapped
externalEdit _wrapped_wrapped
beginToolInvocation _wrapped_wrapped
updateToolInvocation _wrapped_wrapped
usage _wrapped_wrapped
questions ChatQuestion allowSkip ThenableRecord
_codeBlockProcessor
_wrappedquestions allowSkip
fenceLanguageRegex
State
OutsideCodeBlock
LineAfterFence
LineAfterFilePath
InCodeBlock
language
resource Uri
index
linePart inCodeBlock
line MarkdownString inCodeBlock MarkdownString
_lastIncompleteLine MarkdownString
_canEmitIncompleteLine
_currentBlock
info
language
resource Uri
index
fence
vulnerabilities ChatVulnerability
firstLine MarkdownString
_code
_markdownBeforeBlock
_nestingLevel
_index
_state State StateOutsideCodeBlock
path Uri
markdown MarkdownString codeBlockInfo CodeBlockInfo vulnerabilities ChatVulnerability
codeblock CodeBlock
_lineProcessor LineProcessor
markdown MarkdownString vulnerabilities ChatVulnerability
text markdown markdown markdownvalue
textlength
lines textline line markdown
lineslength
_lastIncompleteLine
lines _lastIncompleteLine lines
_lastIncompleteLine lineslineslength value lines
_lastIncompleteLinevalue
_lastIncompleteLine
i
i lineslength _canEmitIncompleteLine
lines vulnerabilities
i
i lineslength i
linesi vulnerabilities
_lastIncompleteLine _lastIncompleteLine
_lastIncompleteLine vulnerabilities
_lastIncompleteLine
_canEmitIncompleteLine
_canEmitIncompleteLine
markdown MarkdownString
_state StateOutsideCodeBlock _state StateInCodeBlock
markdownvalue _lineProcessormarkdownvalue _state StateInCodeBlock
incompleteLine MarkdownString vulnerabilities ChatVulnerability
_currentBlock
_codeincompleteLinevalue
incompleteLine _currentBlockinfo vulnerabilities
_markdownBeforeBlockincompleteLinevalue
incompleteLine vulnerabilities
uri Uri
_currentBlock _currentBlockinforesource
_currentBlockinforesource uri
line MarkdownString vulnerabilities ChatVulnerability
_state StateLineAfterFence
codeBlock _currentBlock
filePath linevalue codeBlockinfolanguage
filePath
codeBlockinforesource
codeBlockinforesource filePath
_state StateLineAfterFilePath
codeBlockfirstLine codeBlockinfo codeBlockvulnerabilities
_state StateInCodeBlock
codeBlockfirstLine codeBlockinfo codeBlockvulnerabilities
_state StateLineAfterFilePath
_state StateInCodeBlock
linevalue
fenceLanguageIdMatch linevaluefenceLanguageRegex
fenceLanguageIdMatch
_currentBlock
_nestingLevel
_currentBlock
info
index _index
language fenceLanguageIdMatch
resource
fence fenceLanguageIdMatch
firstLine line
vulnerabilities
_state StateLineAfterFence
fenceLanguageIdMatch _currentBlockfence
fenceLanguageIdMatch
_nestingLevel
_nestingLevel
_nestingLevel
line _currentBlockinfo vulnerabilities
code _code resource _currentBlockinforesource language _currentBlockinfolanguage markdownBeforeBlock _markdownBeforeBlock
_codelength
_markdownBeforeBlocklength
_currentBlock
_nestingLevel
_state StateOutsideCodeBlock
_lineProcessorlinevalue _state StateInCodeBlock
line _lineProcessorline _state StateInCodeBlock
_currentBlock
_codelinevalue
line _currentBlockinfo vulnerabilities
_markdownBeforeBlocklinevalue
line vulnerabilities
_lastIncompleteLine
_lastIncompleteLine
_lastIncompleteLine
_state StateLineAfterFence _currentBlock
_currentBlockfirstLine _currentBlockinfo _currentBlockvulnerabilities
line mdLanguage
languageId mdLanguage mdLanguage mdLanguage
languageIdline
line
CharCodeLineFeed CharCodeCarriageReturnlinelinelength
text template MarkdownString MarkdownString
markdownString text
template
markdownStringisTrusted templateisTrusted
markdownStringsupportThemeIcons templatesupportThemeIcons
markdownStringbaseUri templatebaseUri
markdownStringsupportHtml templatesupportHtml
markdownString
target MarkdownString value MarkdownString MarkdownString
markdownString targetvalue valuevalue
markdownStringisTrusted targetisTrusted valueisTrusted
markdownStringsupportThemeIcons targetsupportThemeIcons valuesupportThemeIcons
markdownStringsupportHtml targetsupportHtml valuesupportHtml
markdownStringbaseUri targetbaseUri valuebaseUri
markdownString
line
len linelength
len
ch1 line
ch1 CharCodeBackTick ch1 CharCodeTilde
len line ch1 len line ch1