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 { createDecorator } from '../../instantiation/common/instantiation.js';
import { IArcTextReplacement } from '../../../base/common/editArcTracker.js';
export interface IDiffCountResult {
added: number;
removed: number;
changes: readonly IOffsetEdit[];
}
export interface IOffsetEdit {
startOffset: number;
endOffsetExclusive: number;
newText: string;
}
export interface IDetailedDiffResult {
added: number;
removed: number;
replacements: readonly IArcTextReplacement[];
hitTimeout: boolean;
}
export const IDiffComputeService = createDecorator<IDiffComputeService>('diffComputeService');
/** Default timeout for diff computation in milliseconds. */
export const DEFAULT_DIFF_TIMEOUT_MS = 5000;
/**
* Service that computes line diff counts (added/removed) between two
* text strings. Implementations may offload computation to a worker
* thread to avoid blocking the main thread.
*/
export interface IDiffComputeService {
readonly _serviceBrand: undefined;
/**
* Computes line-level diff counts and character edits between two text strings.
* @param original - The original text.
* @param modified - The modified text to compare against the original.
* @param timeoutMs - Maximum time in milliseconds before aborting. Defaults to {@link DEFAULT_DIFF_TIMEOUT_MS}.
*/
computeDiffCounts(original: string, modified: string, timeoutMs?: number): Promise<IDiffCountResult>;
/**
* Computes whitespace-sensitive offset replacements between two text strings.
*/
computeDetailedDiff(original: string, modified: string, timeoutMs?: number): Promise<IDetailedDiffResult>;
}