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 { CharCode } from '../../../base/common/charCode.js';
import { ITextBuffer } from '../model.js';
class SpacesDiffResult {
public spacesDiff: number = 0;
public looksLikeAlignment: boolean = false;
}
/**
* Compute the diff in spaces between two line's indentation.
*/
function spacesDiff(a: string, aLength: number, b: string, bLength: number, 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 ITextBuffer defaultTabSize defaultInsertSpaces IGuessedIndentation
linesCount Mathsource
linesIndentedWithTabsCount
linesIndentedWithSpacesCount
previousLineText
previousLineIndentation
spacesDiffCount
tmp
lineNumber lineNumber linesCount lineNumber
currentLineLength sourcelineNumber
currentLineText sourcelineNumber
useCurrentLineText currentLineLength
currentLineHasContent
currentLineIndentation
currentLineSpacesCount
currentLineTabsCount
j lenJ currentLineLength j lenJ j
charCode useCurrentLineText currentLineTextj sourcelineNumber j
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
possibleTabSize
possibleTabSizeScore spacesDiffCountpossibleTabSize
possibleTabSizeScore tabSizeScore
tabSizeScore possibleTabSizeScore
tabSize possibleTabSize
tabSize spacesDiffCount spacesDiffCount spacesDiffCount spacesDiffCount
tabSize
insertSpaces insertSpaces
tabSize tabSize