Это 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{ readFileSync }from'fs';import{ afterAll, beforeAll, expect, suite, test }from'vitest';importtype{ChatResponseStream,TextEdit}from'vscode';import{ITestingServicesAccessor}from'../../../../platform/test/node/services';import{ applyEdits }from'../../../../platform/test/node/simulationWorkspace';import{TestWorkspaceService}
accessor
documents
largeContent length _ i
allDocs
largeContent
__dirname
__dirname
doc allDocs
documentsdoc doc
services
services
allDocsd d
accessor services
accessor
params
edits
stream
part
part
editspart
editspartpart
uri edit
edit
editsuri
editsuriedit edit edit
toolsService accessor
toolsServiceresolveInputparams stream
result toolsService input params toolInvocationToken
result edits
r
results
uriStr edits r
doc documentsuriStr
doc
doc edits
resultsuriStr doc
results
input
explanation
replacements
filePath
newString
oldString
r input
r
input
r input
r__dirname
input
r input
accessor r
edits r
editsa b ab
i i edits i
e1 editsi
e2 editsi
e1e2
`import { URI } from '../../../../../base/common/uri.js';
import { IBulkEditService } from '../../../../../editor/browser/services/bulkEditService.js';`
,
'oldString'
:
`import { URI } from '../../../../../base/common/uri.js';
import { IBulkEditService } from '../../../../../editor/browser/services/bulkEditService.js';
import { IFile } from '../../../../../base/node/zip.js';`
}
,
{
'filePath'
:
'/workspace/multi-sr-bug.ts'
,
'newString'
:
` private readonly _entriesObs = observableValue<readonly IModifiedFileEntryInternal[]>(this, []);
public get entries(): IObservable<readonly IModifiedFileEntry[]> {
return this._entriesObs;
}`
,
'oldString'
:
` private readonly _entriesObs = observableValue<readonly AbstractChatEditingModifiedFileEntry[]>(this, []);
public get entries(): IObservable<readonly IModifiedFileEntry[]> {
return this._entriesObs;
}`
'The multi_replace_string_in_file trashed my file due to overlapping replacements #277154'
,
async
(
)
=>
{
const
:
IMultiReplaceStringToolParams
=
{
'explanation'
:
'Adding JSDoc comments to the div and mul functions'
,
'replacements'
:
[
{
'filePath'
:
'/workspace/math.js'
,
'oldString'
:
`export function sumArray(a) {
return a.reduce((sum, num) => sum + num, 0);
}
export function div(a, b) {
// console.log fff fff
return a / b;
}`
,
'newString'
:
`export function sumArray(a) {
return a.reduce((sum, num) => sum + num, 0);
}
/**
* Divides the first number by the second number.
*
* @param {number} a - The dividend.
* @param {number} b - The divisor.
* @returns {number} - The quotient of a divided by b.
*/
export function div(a, b) {
// console.log fff fff
return a / b;
}`
,
}
,
{
'filePath'
:
'/workspace/math.js'
,
'oldString'
:
`export function div(a, b) {
// console.log fff fff
return a / b;
}
export function mul(a, b) {
return a * b;
}
export function sumThreeFloats(a, b, c) {`
,
'newString'
:
`/**
* Divides the first number by the second number.
*
* @param {number} a - The dividend.
* @param {number} b - The divisor.
* @returns {number} - The quotient of a divided by b.
*/
export function div(a, b) {
// console.log fff fff
return a / b;
}
/**
* Multiplies two numbers together.
*
* @param {number} a - The first number.
* @param {number} b - The second number.
* @returns {number} - The product of a and b.
*/
export function mul(a, b) {
return a * b;
}
export function sumThreeFloats(a, b, c) {`
,
}
]
}
;
const
=
await
invoke
(
)
;
expect
(
await
toolResultToString
(
,
.
result
)
)
.
toMatchInlineSnapshot
(
`
"The following files were successfully edited:
/workspace/math.js
Edit at index 1 conflicts with another replacement in /workspace/math.js. You can make another call to try again."
`