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 { JSONScanner, createScanner as createJSONScanner, SyntaxKind as JSONSyntaxKind } from '../../../../base/common/json.js';
import { Position } from '../../../../editor/common/core/position.js';
import { Range } from '../../../../editor/common/core/range.js';
import { ITextModel } from '../../../../editor/common/model.js';
export interface InsertSnippetResult {
position: Position;
prepend: string;
append: string;
}
export class SmartSnippetInserter {
private scanner JSONScanner
scanner JSONSyntaxKind
kind scanner
kind JSONSyntaxKindOpenBraceToken
model ITextModel offset Position
offsetBeforeLine
eolLength modellength
lineCount model
lineNumber lineNumber lineCount lineNumber
lineTotalLength modellineNumber eolLength
offsetAfterLine offsetBeforeLine lineTotalLength
offsetAfterLine offset
lineNumber
offset offsetBeforeLine
offsetBeforeLine offsetAfterLine
lineCount
modellineCount
model ITextModel _position Position InsertSnippetResult
desiredPosition model _positionlineNumber _positioncolumn
State
currentState State
lastValidPos
lastValidState State
scanner model
arrayLevel
objLevel
pos state State
state State arrayLevel objLevel
currentState state
lastValidPos pos
lastValidState state
currentState State
currentState State
lastValidPos scanner
scanner JSONSyntaxKind
currentPos scanner
kind scanner
goodKind
kind
JSONSyntaxKindOpenBracketToken
goodKind
arrayLevel
currentPos State
JSONSyntaxKindCloseBracketToken
goodKind
arrayLevel
currentPos State
JSONSyntaxKindCommaToken
goodKind
currentPos State
JSONSyntaxKindOpenBraceToken
goodKind
objLevel
currentPos State
JSONSyntaxKindCloseBraceToken
goodKind
objLevel
currentPos State
JSONSyntaxKindTrivia
JSONSyntaxKindLineBreakTrivia
goodKind
currentPos desiredPosition currentState State lastValidPos
acceptPosition
acceptState State
currentState State
acceptPosition goodKind currentPos scanner
acceptState currentState
acceptPosition lastValidPos
acceptState lastValidState
acceptState State State
position model acceptPosition
prepend
append
scanneracceptPosition
position model acceptPosition
prepend
append scanner
modelLineCount model
position modelLineCount modelmodelLineCount
prepend
append