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 { Schemas } from '../../../base/common/network.js';
import { extUriBiasedIgnorePathCase } from '../../../base/common/resources.js';
import { URI } from '../../../base/common/uri.js';
import type { ISessionFileDiff } from '../common/state/sessionState.js';
/**
* Pure helpers backing the multi-root changeset aggregation. Kept free of any
* service, git, or ambient state so the aggregation rules (first-wins file
* dedup and source-availability classification) can be unit tested in
* isolation, mirroring the pure {@link resolveSessionRepositories} split.
*/
/**
* Merges several ordered change lists into one, keeping the FIRST diff seen for
* each file. Priority is purely positional — the earliest list wins; this helper
* is source-agnostic and never inspects where a diff came from.
*
* A file is identified by `after.uri` (or `before.uri` for deletions); diffs
* with neither are skipped. `file:` paths match per-OS (case-insensitive on
* macOS/Windows, case-sensitive on Linux); other schemes match by exact string.
*
* The multi-root turn caller passes its git-repo diffs before the non-git
* edit-tracker list, so git wins when both report the same file — e.g. a git
* repo nested under a non-git folder, where the file appears in both the repo's
* git diff and the folder's edit-tracker list.
*
* Example (macOS/Windows), git list first, edit-tracker list second:
* gitRepoA: [ file:///work/repoA/App.ts, file:///work/repoA/Gone.ts (deleted) ]
* editTracker: [ file:///work/repoA/app.ts, file:///work/notes.md ]
* -> [ App.ts (git), Gone.ts (git), notes.md ]
* `app.ts` is dropped as a case-insensitive duplicate of the git `App.ts`; on
* Linux both would be kept as distinct files.
*/
orderedDiffLists ISessionFileDiff ISessionFileDiff
merged ISessionFileDiff
seenKeys
diffs orderedDiffLists
diff diffs
id diffafteruri diffbeforeuri
id
key id
seenKeyskey
seenKeyskey
mergeddiff
merged
id
resource id
resourcescheme Schemasfile
extUriBiasedIgnorePathCaseresource
id
outcome MultiRootDiffOutcome
availableSources ISessionFileDiff
orderedSources ISessionFileDiff IMultiRootDiffEvaluation
availableSources orderedSourcessource source ISessionFileDiff source
outcome MultiRootDiffOutcome
availableSourceslength
outcome
availableSourceslength orderedSourceslength
outcome
outcome
outcome availableSources