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 * as assert from 'assert';
import { BaseConfig, Config, ConfigKey } from '../../../platform/configuration/common/configurationService';
import { ConfigurationServiceImpl } from '../../../platform/configuration/vscode/configurationServiceImpl';
import { Event } from '../../../util/vs/base/common/event';
class TestConfigurationServiceImpl extends ConfigurationServiceImpl {
public getDefinedDefaultValue<T>(key: BaseConfig<T>): T {
return key.defaultValue;
}
}
suite('Configuration Defaults', () => {
let testObject: TestConfigurationServiceImpl;
setup(() => {
testObject = new TestConfigurationServiceImpl({
_serviceBrand: undefined,
copilotToken: undefined,
onDidStoreUpdate: Event.None
});
});
teardown(() => testObject.dispose());
test('default values of all advanced settings should match default values', () => {
const advancedSettings = Object.values(ConfigKey.Advanced) as Config<unknown>[];
for (const setting of advancedSettings) {
const actual = testObject.getConfig<unknown>(setting);
const expected = testObject.getDefinedDefaultValue(setting);
assert.deepStrictEqual(actual, expected, `Default value for ${setting.fullyQualifiedId} did not match`);
}
});
test('default values of all internal settings', () => {
const internalSettings = Object.values(ConfigKey.TeamInternal) as Config<unknown>[];
for (const setting of internalSettings) {
const actual = testObject.getConfig<unknown>(setting);
const expected = testObject.getDefinedDefaultValue(setting);
assert.deepStrictEqual(actual, expected, `Default value for ${setting.fullyQualifiedId} did not match`);
}
});
});