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 { FormattingOptions, TextDocument } from 'vscode';
import { TextDocumentSnapshot } from '../../../platform/editing/common/textDocumentSnapshot';
import * as strings from '../../../util/vs/base/common/strings';
import { isLines, Lines } from './editGeneration';
/**
* An inlined enum containing useful character codes (to be used with String.charCodeAt).
* Please leave the const keyword such that it gets inlined when compiled to JavaScript!
*/
const enum CharCode {
/**
* The `\t` character.
*/
Tab = 9,
Space = 32,
/**
* The `,` character.
*/
Comma = 44,
}
lineNumber
lineNumber
spacesDiff
looksLikeAlignment
a aLength b bLength result SpacesDiffResult
resultspacesDiff
resultlooksLikeAlignment
i
i i aLength i bLength i
aCharCode ai
bCharCode bi
aCharCode bCharCode
aSpacesCnt
aTabsCount
j i j aLength j
aCharCode aj
aCharCode CharCodeSpace
aSpacesCnt
aTabsCount
bSpacesCnt
bTabsCount
j i j bLength j
bCharCode bj
bCharCode CharCodeSpace
bSpacesCnt
bTabsCount
aSpacesCnt aTabsCount
bSpacesCnt bTabsCount
tabsDiff MathaTabsCount bTabsCount
spacesDiff MathaSpacesCnt bSpacesCnt
tabsDiff
resultspacesDiff spacesDiff
spacesDiff bSpacesCnt bSpacesCnt alength bSpacesCnt blength
bbSpacesCnt CharCodeSpace abSpacesCnt CharCodeSpace
aalength CharCodeComma
resultlooksLikeAlignment
spacesDiff tabsDiff
resultspacesDiff spacesDiff tabsDiff
tabSize
insertSpaces
source Lines TextDocument TextDocumentSnapshot FormattingOptions
source
source Lines TextDocument TextDocumentSnapshot
defaultTabSize
defaultInsertSpaces
IGuessedIndentation
linesCount Mathsource sourcelength sourcelineCount
linesIndentedWithTabsCount
linesIndentedWithSpacesCount
previousLineText
previousLineIndentation
spacesDiffCount
tmp
lineNumber lineNumber linesCount lineNumber
currentLineText source sourcelineNumber sourcelineNumbertext
currentLineLength currentLineTextlength
currentLineHasContent
currentLineIndentation
currentLineSpacesCount
currentLineTabsCount
j lenJ currentLineLength j lenJ j
charCode currentLineTextj
charCode CharCodeTab
currentLineTabsCount
charCode CharCodeSpace
currentLineSpacesCount
currentLineHasContent
currentLineIndentation j
currentLineHasContent
currentLineTabsCount
linesIndentedWithTabsCount
currentLineSpacesCount
linesIndentedWithSpacesCount
previousLineText previousLineIndentation currentLineText currentLineIndentation tmp
tmplooksLikeAlignment
defaultInsertSpaces defaultTabSize tmpspacesDiff
currentSpacesDiff tmpspacesDiff
currentSpacesDiff
spacesDiffCountcurrentSpacesDiff
previousLineText currentLineText
previousLineIndentation currentLineIndentation
insertSpaces defaultInsertSpaces
linesIndentedWithTabsCount linesIndentedWithSpacesCount
insertSpaces linesIndentedWithTabsCount linesIndentedWithSpacesCount
tabSize defaultTabSize
insertSpaces
tabSizeScore insertSpaces linesCount
possibleTabSize
possibleTabSizeScore spacesDiffCountpossibleTabSize
possibleTabSizeScore tabSizeScore
tabSizeScore possibleTabSizeScore
tabSize possibleTabSize
tabSize
spacesDiffCount
spacesDiffCount
spacesDiffCount spacesDiffCount
tabSize
insertSpaces insertSpaces
tabSize tabSize
line tabSize
indent
i
len linelength
i len
chCode linei
chCode CharCodeSpace
indent
chCode CharCodeTab
indent indent indent tabSize tabSize
i
i len
indent
indent
line tabSize
result line tabSize
result
Mathresult tabSize
Mathresult tabSize
visibleColumn indentSize
visibleColumn indentSize visibleColumn indentSize
str indentSize insertSpaces
spacesCnt
i i strlength i
stri
spacesCnt spacesCnt indentSize
spacesCnt
result
insertSpaces
tabsCnt MathspacesCnt indentSize
spacesCnt spacesCnt indentSize
i i tabsCnt i
result
i i spacesCnt i
result
result
str indentSize insertSpaces
firstNonWhitespaceIndex stringsstr
firstNonWhitespaceIndex
firstNonWhitespaceIndex strlength
str firstNonWhitespaceIndex indentSize insertSpaces strfirstNonWhitespaceIndex
indentation IGuessedIndentation
indentationinsertSpaces
indentationtabSize
content fromIndent IGuessedIndentation toIndent IGuessedIndentation
fromIndentinsertSpaces toIndentinsertSpaces fromIndenttabSize toIndenttabSize
content
fromChr fromIndent
toChr toIndent
lines content
i i lineslength i
k
linesik k fromChrlength fromChr
k fromChrlength
linesi toChrk fromChrlength linesik
lines