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 { IBuffer, IBufferCell, IBufferLine, IMarker, Terminal } from '@xterm/headless';
import { throttle } from '../../../../../base/common/decorators.js';
import { Emitter, Event } from '../../../../../base/common/event.js';
import { Disposable } from '../../../../../base/common/lifecycle.js';
import { ILogService, LogLevel } from '../../../../log/common/log.js';
import { PosixShellType, TerminalShellType } from '../../terminal.js';
import type ITerminalCommand
PromptInputState
Unknown
Input
Execute
state PromptInputState
onDidStartInput EventIPromptInputModelState
onDidChangeInput EventIPromptInputModelState
onDidFinishInput EventIPromptInputModelState
onDidInterrupt EventIPromptInputModelState
emptyStringWhenEmpty
shellType TerminalShellType
value
prefix
suffix
cursorIndex
ghostTextIndex
modelState IPromptInputModelState
commandStartX
lastPromptLine
continuationPrompt
lastUserInput
_state PromptInputState PromptInputStateUnknown
_state
_commandStartMarker IMarker
_commandStartX
_lastPromptLine
_continuationPrompt
_shellType TerminalShellType
_lastUserInput
_value
_value
_value _cursorIndex
_value_cursorIndex _ghostTextIndex _ghostTextIndex
_cursorIndex
_cursorIndex
_ghostTextIndex
_ghostTextIndex
_onDidStartInput
onDidStartInput _onDidStartInputevent
_onDidChangeInput
onDidChangeInput _onDidChangeInputevent
_onDidFinishInput
onDidFinishInput _onDidFinishInputevent
_onDidInterrupt
onDidInterrupt _onDidInterruptevent
_xterm Terminal
onCommandStart EventITerminalCommand
onCommandStartChanged Event
onCommandExecuted EventITerminalCommand
onCommandFinished EventITerminalCommand
_logService ILogService
Event
_xtermonCursorMove
_xtermonData
_xtermonWriteParsed
_xterme e
e e marker IMarker
message
_logService LogLevelTrace
_logServicemessage
shellType TerminalShellType
_shellType shellType
value
_continuationPrompt value
value
_lastPromptLine value
value
_value value
_value value
_cursorIndex
_ghostTextIndex
_onDidChangeInput
emptyStringWhenEmpty
value _value
_cursorIndex
value
result
ghostTextIndex
result
result
result valuecursorIndex
result emptyStringWhenEmpty
result
ISerializedPromptInputModel
modelState
commandStartX _commandStartX
lastPromptLine _lastPromptLine
continuationPrompt _continuationPrompt
lastUserInput _lastUserInput
serialized ISerializedPromptInputModel
_value serializedmodelStatevalue
_cursorIndex serializedmodelStatecursorIndex
_ghostTextIndex serializedmodelStateghostTextIndex
_commandStartX serializedcommandStartX
_lastPromptLine serializedlastPromptLine
_continuationPrompt serializedcontinuationPrompt
_lastUserInput serializedlastUserInput
command marker IMarker
_state PromptInputStateInput
_state PromptInputStateInput
_commandStartMarker commandmarker
_commandStartX _xtermbufferactivecursorX
_value
_cursorIndex
_onDidStartInput
_onDidChangeInput
_lastPromptLine
_commandStartX _lastPromptLinelength
line _xtermbufferactive_commandStartMarkerline
line_lastPromptLine
_commandStartX _lastPromptLinelength
_state PromptInputStateInput
_commandStartX _xtermbufferactivecursorX
_onDidChangeInput
_state PromptInputStateExecute
_cursorIndex
_ghostTextIndex
_value _value _ghostTextIndex
_ghostTextIndex
event
_lastUserInput
_lastUserInput
_onDidInterruptevent
_state PromptInputStateExecute
_onDidFinishInputevent
_onDidChangeInputevent
_value
_onDidChangeInput
e
_logService e
_state PromptInputStateInput
commandStartY _commandStartMarkerline
commandStartY
buffer _xtermbufferactive
line buffercommandStartY
absoluteCursorY bufferbaseY buffercursorY
cursorIndex
commandLine line _commandStartX
_shellType PosixShellTypeFish line commandLine
commandStartY
line buffercommandStartY
line
commandLine line
cursorIndex absoluteCursorY commandStartY buffercursorX commandLinelength
line commandLine
_logService
value commandLine
ghostTextIndex
cursorIndex
absoluteCursorY commandStartY
cursorIndex Math_commandStartX buffer line commandLinelength
cursorIndex commandLinelength
y commandStartY y absoluteCursorY y
nextLine buffery
lineText nextLine
lineText nextLine
nextLineisWrapped absoluteCursorY y _continuationPrompt lineText
value
relativeCursorIndex buffer nextLine
absoluteCursorY y
cursorIndex relativeCursorIndex
cursorIndex lineTextlength
_shellType PosixShellTypeFish
value
value value valuelength
value
cursorIndex lineTextlength
lineText
value
cursorIndex lineTextlength
value lineText
cursorIndex lineTextlength
_continuationPrompt lineText
trimmedLineText lineText
value
absoluteCursorY y
continuationCellWidth nextLine lineText
relativeCursorIndex continuationCellWidth buffer nextLine
cursorIndex relativeCursorIndex
cursorIndex trimmedLineTextlength
y absoluteCursorY y bufferbaseY _xtermrows y
belowCursorLine buffery
lineText belowCursorLine
lineText belowCursorLine
_shellType PosixShellTypeFish
value
_continuationPrompt lineText
value
value lineText
_logService LogLevelTrace
_logService
trailingWhitespace _valuelength _valuelength
_lastUserInput
_lastUserInput
cursorIndex _cursorIndex
_valuelength valuelength valuelength cursorIndex
trailingWhitespace Math_valuelength valuelength
trailingWhitespace MathtrailingWhitespace
_lastUserInput
_lastUserInput
cursorIndex _cursorIndex
trailingWhitespace MathtrailingWhitespace
valueLines value
isMultiLine valueLineslength
valueEndTrimmed value
isMultiLine
valueEndTrimmedlength valuelength
_lastUserInput
_lastUserInput
cursorIndex valueEndTrimmedlength cursorIndex _cursorIndex
trailingWhitespace
trailingWhitespace MathcursorIndex valueEndTrimmedlength trailingWhitespace
charBeforeCursor cursorIndex valuecursorIndex
trailingWhitespace cursorIndex _cursorIndex _lastUserInput charBeforeCursor
trailingWhitespace _valuelength _cursorIndex
isMultiLine
valueLinesvalueLineslength valueLines
continuationOffset valueLineslength _continuationPromptlength
trailingWhitespace Math cursorIndex valuelength continuationOffset
value valueLinese e trailingWhitespace
ghostTextIndex buffer line cursorIndex
_value value _cursorIndex cursorIndex _ghostTextIndex ghostTextIndex
_value value
_cursorIndex cursorIndex
_ghostTextIndex ghostTextIndex
_onDidChangeInput
e
_lastUserInput e
buffer IBuffer line IBufferLine cursorIndex
valuelength
ghostTextIndex
proceedWithGhostTextCheck
x buffercursorX
x
cell linex
cell
celllength
proceedWithGhostTextCheck cell
proceedWithGhostTextCheck
potentialGhostIndexOffset
x buffercursorX
x linelength
cell linex
cell cell
cell
ghostTextIndex cursorIndex potentialGhostIndexOffset
potentialGhostIndexOffset celllength
ghostTextIndex
ghostTextIndex buffer line cursorIndex
ghostTextIndex valueghostTextIndex
_value value
valueghostTextIndex
ghostTextIndex
ghostTextIndex
buffer IBuffer line IBufferLine cursorIndex
ghostTextIndex
currentPos buffercursorX
styleMap
lastNonWhitespaceCell linecurrentPos
nextCell IBufferCell lastNonWhitespaceCell
nextCell currentPos linelength
styleKey nextCell
styleMapstyleKey styleMapstyleKey currentPos
nextCell linecurrentPos
nextCelllength
lastNonWhitespaceCell nextCell
lastNonWhitespaceCelllength
line_commandStartX lastNonWhitespaceCell
positionsWithGhostStyle styleMaplastNonWhitespaceCell
positionsWithGhostStyle
positionsWithGhostStyle buffercursorX line positionsWithGhostStyle
i i positionsWithGhostStylelength i
positionsWithGhostStylei positionsWithGhostStylei
bufferbaseY buffercursorY _commandStartMarkerline
ghostTextIndex positionsWithGhostStyle _commandStartX
ghostTextIndex positionsWithGhostStyle
ghostTextIndex
checkPos buffercursorX checkPos _commandStartX checkPos
checkCell linecheckPos
checkCellgetCharslength
checkCell checkCell lastNonWhitespaceCell checkCell
ghostTextIndex cursorIndex ghostTextIndex
line IBufferLine position
count
i position i _commandStartX i
cell linei
cell celllength
count
count
count
cell IBufferCell
a IBufferCell b IBufferCell
a b
a b
a b
a b
a b
a b
a b
a b
a b
a b
a b
a b
a b
a b
lineText
lineText
lineText lineText_continuationPromptlength
lineText
lineText
_continuationPrompt lineText_continuationPrompt
line IBufferLine lineText
_continuationPrompt lineText_continuationPrompt
buffer
x
cell IBufferCell
buffer _continuationPrompt
cell linex
cell
buffer cell
x
startCellX buffer IBuffer line IBufferLine
line startCellX buffercursorXlength
cell IBufferCell
cell cell
IPromptInputModelState
Object
value _value
prefix prefix
suffix suffix
cursorIndex _cursorIndex
ghostTextIndex _ghostTextIndex