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 { RunOnceScheduler } from '../../../../base/common/async.js';
import { debounce } from '../../../../base/common/decorators.js';
import { Emitter } from '../../../../base/common/event.js';
import { Disposable, MandatoryMutableDisposable, MutableDisposable } from '../../../../base/common/lifecycle.js';
import { ILogService } from '../../../log/common/log.js';
import { isString } from '../../../../base/common/types.js';
import { CommandInvalidationReason, ICommandDetectionCapability, ICommandInvalidationRequest, IHandleCommandOptions, ISerializedCommandDetectionCapability ISerializedTerminalCommand ITerminalCommand TerminalCapability
ITerminalOutputMatcher
ICurrentPartialCommand isFullTerminalCommand PartialTerminalCommand TerminalCommand
PromptInputModel
IBuffer IDisposable IMarker Terminal
cols
rows
type TerminalCapabilityCommandDetection
_promptInputModel PromptInputModel
IPromptInputModel _promptInputModel
_commands TerminalCommand
_cwd
_promptTerminator
_currentCommand PartialTerminalCommand
_commandMarkers IMarker
_dimensions ITerminalDimensions
__isCommandStorageDisabled
_handleCommandStartOptions IHandleCommandOptions
_hasRichCommandDetection
_hasRichCommandDetection
_nextCommandId command commandId
_isCurrentCommandInterrupted
_ptyHeuristicsHooks ICommandDetectionHeuristicsHooks
_ptyHeuristics MandatoryMutableDisposableIPtyHeuristics
TerminalCommand _commands
_currentCommandcommand
ITerminalCommand
_currentCommandcommandStartMarker
_currentCommand_cwd _handleCommandStartOptionsignoreCommandLine
casted _currentCommand PartialTerminalCommand ITerminalCommand
casted castedcommandLineConfidence
ICurrentPartialCommand
_currentCommand
_cwd
_promptTerminator
_onCommandStarted
onCommandStarted _onCommandStartedevent
_onCommandStartChanged
onCommandStartChanged _onCommandStartChangedevent
_onBeforeCommandFinished
onBeforeCommandFinished _onBeforeCommandFinishedevent
_onCommandFinished
onCommandFinished _onCommandFinishedevent
_onCommandExecuted
onCommandExecuted _onCommandExecutedevent
_onCommandInvalidated
onCommandInvalidated _onCommandInvalidatedevent
_onCurrentCommandInvalidated
onCurrentCommandInvalidated _onCurrentCommandInvalidatedevent
_onSetRichCommandDetection
onSetRichCommandDetection _onSetRichCommandDetectionevent
_terminal Terminal
_logService ILogService
_currentCommand _terminal
_promptInputModel _terminal onCommandStarted onCommandStartChanged onCommandExecuted onCommandFinished _logService
_promptInputModel _isCurrentCommandInterrupted
command
commandcommandLineConfidence
typedCommand command ITerminalCommand PartialTerminalCommand
commandcommand typedCommand
commandcommandLineConfidence
typedCommand
typedCommandpromptStartMarker typedCommandmarker typedCommandexecutedMarker
commandcommand
typedCommandstartX typedCommandstartX
commandcommandLineConfidence
typedCommandpromptStartMarker typedCommandcommandStartMarker typedCommandcommandExecutedMarker
commandcommand
typedCommandcommandStartX typedCommandcommandStartX
commandcommandLineConfidence
_terminalparser final params
paramslength params
_terminaloptionsscrollOnEraseInDisplay
_currentCommandwasCleared
that
_ptyHeuristicsHooks
that_onCurrentCommandInvalidated
that_onCommandStarted
that_onCommandExecuted
that_dimensions
that__isCommandStorageDisabled
that_commandMarkers
value that_commandMarkers value
thatthat
_ptyHeuristics _terminal _ptyHeuristicsHooks _logService
_dimensions
cols _terminalcols
rows _terminalrows
_terminale e
_terminal
e cols rows
_ptyHeuristicsvaluepreHandleResizee
_dimensionscols ecols
_dimensionsrows erows
_storeisDisposed
_terminalbufferactive _terminalbuffernormal _currentCommandcommandStartMarker
_terminalbufferactivebaseY _terminalbufferactivecursorY _currentCommandcommandStartMarkerline
_currentCommandisInvalid
_onCurrentCommandInvalidated reason CommandInvalidationReasonWindows
count
i _commandslength i i
line _commandsimarkerline
line line _terminalbufferactivebaseY
count
count
_onCommandInvalidated_commands_commandslength count count
value
_promptInputModelvalue
promptTerminator lastPromptLine
_logService promptTerminator
_promptTerminator promptTerminator
_promptInputModellastPromptLine
value
_cwd value
value
value _ptyHeuristicsvalue
that
_ptyHeuristicsvalue
_terminal
that_onCurrentCommandInvalidated
that_onCommandStarted
that_onCommandExecuted
that_dimensions
that__isCommandStorageDisabled
that_commandMarkers
value that_commandMarkers value
thatthat
_logService
value _ptyHeuristicsvalue
_ptyHeuristicsvalue _terminal _ptyHeuristicsHooks _logService
value
_hasRichCommandDetection value
_onSetRichCommandDetectionvalue
__isCommandStorageDisabled
line ITerminalCommand ICurrentPartialCommand
_currentCommandpromptStartMarker line _currentCommandpromptStartMarkerline
_currentCommand
_commandslength
_commandspromptStartMarker _commandsmarkerline line
i commandslength i i
commandsipromptStartMarker commandsimarkerline line
commandsi
line
_currentCommandpromptStartMarker line _currentCommandpromptStartMarkerline
_cwd
command line
command command
commandcwd
options IHandleCommandOptions
_isCurrentCommandInterrupted
lastCommand commands
lastCommandendMarker
lastCommandexecutedMarker
lastCommandendMarkerline lastCommandexecutedMarkerline
lastCommandexecutedMarkerline _terminalbufferactivebaseY _terminalbufferactivecursorY
_logService
lastCommandendMarker _terminal lastCommandexecutedMarker
_currentCommandpromptStartMarker
optionsmarker
_currentCommandwasCleared lastCommandendMarker
_terminal lastCommandendMarker
_terminal
_currentCommandwasCleared
_currentCommandcurrentContinuationMarker _terminal
_logService _currentCommandcurrentContinuationMarker
_currentCommandcurrentContinuationMarker
_logService
_currentCommandcontinuations
_currentCommandcontinuations
_currentCommandcontinuations
marker _currentCommandcurrentContinuationMarker
end _terminalbufferactivecursorX
_currentCommandcurrentContinuationMarker
_logService _currentCommandcontinuations_currentCommandcontinuationslength
_currentCommandcommandRightPromptStartX _terminalbufferactivecursorX
_logService _currentCommandcommandRightPromptStartX
_currentCommandcommandRightPromptEndX _terminalbufferactivecursorX
_logService _currentCommandcommandRightPromptEndX
options IHandleCommandOptions
_handleCommandStartOptions options
_currentCommandcwd _cwd
_currentCommandcommandStartMarker optionsmarker _currentCommandcommandStartMarker
_currentCommandcommandStartMarkerline _terminalbufferactivecursorY
_currentCommandcommandStartX _terminalbufferactivecursorX
_onCommandStartChanged
_logService _currentCommandcommandStartX _currentCommandcommandStartMarkerline
_ptyHeuristicsvalueoptions
command commandId
_nextCommandId command commandId
options IHandleCommandOptions
_currentCommandcommand _currentCommand
_ptyHeuristicsvalueoptions
_currentCommand
exitCode options IHandleCommandOptions
_currentCommandcommandExecutedMarker
_currentCommand
_ptyHeuristicsvaluepreHandleCommandFinished
_logService _terminalbufferactivecursorX optionsmarkerline _currentCommandcommand _currentCommand
exitCode _isCurrentCommandInterrupted
lastCommand commandslength commandscommandslength
_currentCommandcommand _currentCommandcommandlength lastCommandcommand _currentCommandcommand
exitCode lastCommandexitCode
_currentCommandcommandStartMarker _terminalbufferactive
_currentCommandcommandFinishedMarker optionsmarker _terminal
_ptyHeuristicsvaluepostHandleCommandFinished
newCommand _currentCommand_cwd exitCode _handleCommandStartOptionsignoreCommandLine optionsmarkProperties
newCommand
_commandsnewCommand
_onBeforeCommandFinishednewCommand
_logService newCommand
_onCommandFinishednewCommand
_currentCommand _terminal
_handleCommandStartOptions
_commandLine
_nextCommandIdcommandId
_currentCommandid _nextCommandIdcommandId
_currentCommandid _nextCommandIdcommandId
_nextCommandId
commandLine isTrusted
_logService commandLine isTrusted
_currentCommandcommand commandLine
_currentCommandcommandLineConfidence
_currentCommandisTrusted isTrusted
isTrusted
_promptInputModelcommandLine
ISerializedCommandDetectionCapability
commands ISerializedTerminalCommand commandse e__isCommandStorageDisabled
partialCommand _currentCommand_cwd
partialCommand
commandspartialCommand
isWindowsPty _ptyHeuristicsvalue
hasRichCommandDetection _hasRichCommandDetection
commands
promptInputModel _promptInputModel
serialized ISerializedCommandDetectionCapability
serializedisWindowsPty
serializedisWindowsPty
serializedhasRichCommandDetection
serializedhasRichCommandDetection
buffer _terminalbuffernormal
e serializedcommands
eendLine
marker estartLine _terminalestartLine bufferbaseY buffercursorY
marker
_currentCommandcommandStartMarker estartLine _terminalestartLine bufferbaseY buffercursorY
_currentCommandcommandStartX estartX
_currentCommandpromptStartMarker epromptStartLine _terminalepromptStartLine bufferbaseY buffercursorY
_cwd ecwd
_onCommandStarted marker ITerminalCommand
newCommand TerminalCommand_terminal e __isCommandStorageDisabled
newCommand
_commandsnewCommand
_logService newCommand
_onCommandFinishednewCommand
serializedpromptInputModel
_promptInputModelserializedpromptInputModel
onCurrentCommandInvalidatedEmitter EmitterICommandInvalidationRequest
onCommandStartedEmitter EmitterITerminalCommand
onCommandExecutedEmitter EmitterITerminalCommand
dimensions ITerminalDimensions
isCommandStorageDisabled
commandMarkers IMarker
PartialUnixPtyHeuristics PartialWindowsPtyHeuristics
UnixPtyHeuristics WindowsPtyHeuristics
IDisposable
_terminal Terminal
_capability CommandDetectionCapability
_hooks ICommandDetectionHeuristicsHooks
_logService ILogService
options IHandleCommandOptions
currentCommand _capabilitycurrentCommand
currentCommandcommandStartX _terminalbufferactivecursorX
currentCommandcommandStartMarker optionsmarker _terminal
currentCommandcommandExecutedMarker
currentCommandcommandExecutedMarker
currentCommandcommandExecutedX
m _hookscommandMarkers
m
_hookscommandMarkerslength
_hooksonCommandStartedEmitter marker optionsmarker currentCommandcommandStartMarker markProperties optionsmarkProperties ITerminalCommand
_logService currentCommandcommandStartX currentCommandcommandStartMarkerline
options IHandleCommandOptions
currentCommand _capabilitycurrentCommand
currentCommandcommandExecutedMarker optionsmarker _terminal
currentCommandcommandExecutedX _terminalbufferactivecursorX
_logService currentCommandcommandExecutedX currentCommandcommandExecutedMarkerline
currentCommandcommandStartMarker currentCommandcommandExecutedMarker currentCommandcommandStartX
currentCommandcommand _capabilitypromptInputModelghostTextIndex _capabilitypromptInputModelvalue _capabilitypromptInputModelghostTextIndex _capabilitypromptInputModelvalue
_hooksonCommandExecutedEmittercurrentCommand ITerminalCommand
AdjustCommandStartMarkerConstants
MaxCheckLineCount
Interval
MaximumPollCount
_onCursorMoveListener
_tryAdjustCommandStartMarkerScheduler RunOnceScheduler
_tryAdjustCommandStartMarkerScannedLineCount
_tryAdjustCommandStartMarkerPollCount
_terminal Terminal
_capability CommandDetectionCapability
_hooks ICommandDetectionHeuristicsHooks
_logService ILogService
_capabilitycommand
commandcommand commandcommand
_tryAdjustCommandStartMarkerScheduler
_tryAdjustCommandStartMarkerScheduler
_hooks
_capabilitycurrentCommandisInvalid
_hooksonCurrentCommandInvalidatedEmitter reason CommandInvalidationReasonWindows
e cols rows
baseY _terminalbufferactivebaseY
rowsDifference erows _hooksdimensionsrows
rowsDifference
potentialShiftedLineCount MathrowsDifference baseY
i _capabilitycommandslength i i
command _capabilitycommandsi
commandmarker commandmarkerline baseY commandcommandStartLineContent
line _terminalbufferactivecommandmarkerline
line line commandcommandStartLineContent
shiftedY commandmarkerline potentialShiftedLineCount
shiftedLine _terminalbufferactiveshiftedY
shiftedLine commandcommandStartLineContent
_core
_bufferService
buffer
lines
onDeleteEmitter
data index amount
_terminal IXtermWithCore_core_bufferServicebufferlinesonDeleteEmitter
index _terminalbufferactivebaseY
amount potentialShiftedLineCount
_capabilitycurrentCommandcommandStartX _terminalbufferactivecursorX
_hookscommandMarkerslength
initialCommandStartMarker _capabilitycurrentCommandcommandStartMarker
_capabilitycurrentCommandpromptStartMarker
_terminal _capabilitycurrentCommandpromptStartMarker
_terminal
_capabilitycurrentCommandcommandStartX
_tryAdjustCommandStartMarkerScannedLineCount
_tryAdjustCommandStartMarkerPollCount
_tryAdjustCommandStartMarkerScheduler initialCommandStartMarker AdjustCommandStartMarkerConstantsInterval
_tryAdjustCommandStartMarkerScheduler
start IMarker
_storeisDisposed
buffer _terminalbufferactive
scannedLineCount _tryAdjustCommandStartMarkerScannedLineCount
scannedLineCount AdjustCommandStartMarkerConstantsMaxCheckLineCount startline scannedLineCount bufferbaseY _terminalrows
prompt startline scannedLineCount
prompt
adjustedPrompt prompt prompt promptprompt
_capabilitycurrentCommandcommandStartMarker _terminal
prompt promptlikelySingleLine
_logService
_capabilitycurrentCommandpromptStartMarker
_capabilitycurrentCommandpromptStartMarker _terminal _capabilitycurrentCommandcommandStartMarker
lastCommand _capabilitycommands
lastCommand _capabilitycurrentCommandcommandStartMarkerline lastCommandendMarkerline
lastCommandendMarker
lastCommandendMarker _terminal _capabilitycurrentCommandcommandStartMarker
_capabilitycurrentCommandcommandStartX adjustedPromptlength
_logService
scannedLineCount
scannedLineCount AdjustCommandStartMarkerConstantsMaxCheckLineCount
_tryAdjustCommandStartMarkerScannedLineCount scannedLineCount
_tryAdjustCommandStartMarkerPollCount AdjustCommandStartMarkerConstantsMaximumPollCount
_tryAdjustCommandStartMarkerScheduler
_tryAdjustCommandStartMarkerScheduler
_tryAdjustCommandStartMarkerPollCount AdjustCommandStartMarkerConstantsMaximumPollCount
_tryAdjustCommandStartMarkerScheduler
_tryAdjustCommandStartMarkerScheduler
_capabilitycurrentCommandcommandExecutedMarker
_onCursorMoveListenervalue _terminal
_hookscommandMarkerslength _hookscommandMarkers_hookscommandMarkerslength line _terminalbufferactivecursorY
marker _terminal
marker
_hookscommandMarkersmarker
_capabilitycurrentCommandcommandStartMarker
line _terminalbufferactive_capabilitycurrentCommandcommandStartMarkerline
line
_capabilitycurrentCommandcommandStartLineContent line
_hooksonCommandStartedEmitter marker _capabilitycurrentCommandcommandStartMarker ITerminalCommand
_logService _capabilitycurrentCommandcommandStartX _capabilitycurrentCommandcommandStartMarkerline
options IHandleCommandOptions
_tryAdjustCommandStartMarkerScheduler
_onCursorMoveListener
_capabilitycurrentCommandcommandExecutedX _terminalbufferactivecursorX
_hooksonCommandExecutedEmitter_capabilitycurrentCommand ITerminalCommand
_logService _capabilitycurrentCommandcommandExecutedX _capabilitycurrentCommandcommandExecutedMarkerline
_capabilitycurrentCommandcommandExecutedMarker
_hookscommandMarkerslength
_capabilitycurrentCommandcommandStartMarker
_capabilitycurrentCommandcommandStartMarker _terminal
_capabilitycurrentCommandcommandStartMarker
_hookscommandMarkers_capabilitycurrentCommandcommandStartMarker
currentCommand _capabilitycurrentCommand
commandText currentCommandcommand
commandLine currentCommandcommandStartMarkerline
executedLine currentCommandcommandExecutedMarkerline
commandText commandTextlength
commandLine commandLine
executedLine executedLine
current
found
i commandLine i executedLine i
line _terminalbufferactivei
line
text line
j j textlength j
commandTextlength current commandTextcurrent
current
textj commandTextcurrent
current
current commandTextlength
wrapsToNextLine j _terminalcols
currentCommandcommandExecutedMarker _terminali _terminalbufferactivebaseY _terminalbufferactivecursorY wrapsToNextLine
currentCommandcommandExecutedX wrapsToNextLine j
found
found
_hookscommandMarkerslength
_hookscommandMarkers _hookscommandMarkersa b aline bline
_capabilitycurrentCommandcommandStartMarker _hookscommandMarkers
_capabilitycurrentCommandcommandStartMarker
line _terminalbufferactive_capabilitycurrentCommandcommandStartMarkerline
line
_capabilitycurrentCommandcommandStartLineContent line
_capabilitycurrentCommandcommandExecutedMarker _hookscommandMarkers_hookscommandMarkerslength
_hooksonCommandExecutedEmitter_capabilitycurrentCommand ITerminalCommand
lastCommand _capabilitycommands
lastCommand
cursorYAbsolute _terminalbufferactivebaseY _terminalbufferactivecursorY
lastCommandYAbsolute lastCommandendMarker lastCommandendMarkerline lastCommandmarkerline
cursorYAbsolute lastCommandYAbsolute
cursorX _terminalbufferactivecursorX
cursorY _terminalbufferactivecursorY
totalDelay
resolve reject
interval
cursorX _terminalbufferactivecursorX cursorY _terminalbufferactivecursorY
interval
totalDelay
totalDelay
interval
y _terminalbufferactivebaseY _terminalbufferactivecursorY prompt likelySingleLine
line _terminalbufferactivey
line
lineText line
lineText
pwshPrompt lineTextgroupsprompt
pwshPrompt
adjustedPrompt pwshPrompt lineText
adjustedPrompt
prompt adjustedPrompt
likelySingleLine
customPrompt lineText
customPrompt
adjustedPrompt customPrompt lineText
adjustedPrompt
adjustedPrompt
bashPrompt lineTextgroupsprompt
bashPrompt
adjustedPrompt bashPrompt lineText
adjustedPrompt
adjustedPrompt
pythonPrompt lineTextgroupsprompt
pythonPrompt
prompt pythonPrompt
likelySingleLine
_capabilitypromptTerminator lineText _capabilitypromptTerminator lineText_capabilitypromptTerminator
adjustedPrompt lineText lineText _capabilitypromptTerminator
adjustedPrompt
adjustedPrompt
cmdMatch lineText
cmdMatchgroupsprompt
prompt cmdMatchgroupsprompt
likelySingleLine
prompt lineText char
prompt
lineText prompt promptchar
prompt
prompt
buffer IBuffer command ITerminalCommand cols outputMatcher ITerminalOutputMatcher
outputMatcher
executedMarker commandexecutedMarker
endMarker commandendMarker
executedMarker endMarker
startLine executedMarkerline
endLine endMarkerline
linesToCheck outputMatcherlength
lines
outputMatcheranchor
i endLine outputMatcheroffset i startLine i
wrappedLineStart i
wrappedLineEnd i
wrappedLineStart startLine bufferwrappedLineStartisWrapped
wrappedLineStart
i wrappedLineStart
linesbuffer wrappedLineStart wrappedLineEnd cols
lineslength linesToCheck
lines
i startLine outputMatcheroffset i endLine i
wrappedLineStart i
wrappedLineEnd i
wrappedLineEnd endLine bufferwrappedLineEnd isWrapped
wrappedLineEnd
i wrappedLineEnd
linesbuffer wrappedLineStart wrappedLineEnd cols
lineslength linesToCheck
lines
lines
buffer IBuffer lineStart lineEnd cols
maxLineLength Math cols
lineEnd MathlineEnd lineStart maxLineLength
content
i lineStart i lineEnd i
line bufferi
line
content line cols
content
xterm Terminal marker IMarker offset IMarker
xtermmarkerline xtermbufferactivebaseY xtermbufferactivecursorY offset