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 { IDiffService } from '../../../platform/diff/common/diffService';
import { LineEdit, LineReplacement } from '../../../util/vs/editor/common/core/edits/lineEdit';
import { LineRangeMapping } from '../../../util/vs/editor/common/diff/rangeMapping';
import { Lines } from '../../prompt/node/editGeneration';
import { getTrailingArrayEmptyLineCount } from '../../prompts/node/codeMapper/codeMapper';
/**
* Generates the next edit based on the current lines and the desired lines.
*/
export async function generateDiffNextEdits(
diffService: IDiffService,
currentLines: string[],
desiredLines Lines
LineEdit
adjustedDesiredLines currentLines desiredLines
diff diffService
currentLines
adjustedDesiredLines
ignoreTrimWhitespace
maxComputationTimeMs
computeMoves
lineEdit diffchanges adjustedDesiredLines
lineEdit
sourceLines Lines resultLines Lines Lines
leadingEmptyLineCount sourceLines
trailingEmptyLineCount sourceLines
leadingResultEmptyLineCount resultLines
trailingResultEmptyLineCount resultLines
trimResultLines resultLinesleadingResultEmptyLineCount resultLineslength trailingResultEmptyLineCount
sourceLines leadingEmptyLineCount
trimResultLines
sourceLinessourceLineslength trailingEmptyLineCount sourceLineslength
lines
i i lineslength i
linesi
i
lineslength
changes LineRangeMapping resultingLines Lines LineEdit
changeschange
change resultingLines
diff LineRangeMapping newLines LineReplacement
difforiginal newLinesdiffmodifiedstartLineNumber diffmodifiedendLineNumberExclusive