mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-11 03:35:04 -05:00
27 lines
997 B
TypeScript
27 lines
997 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import { ConfigKey } from '../../src/platform/configuration/common/configurationService';
|
|
import { SimulationOptions } from '../base/simulationOptions';
|
|
import { Configuration } from '../base/stest';
|
|
|
|
export function nesOptionsToConfigurations(options: SimulationOptions): Configuration<unknown>[] {
|
|
const configs: Configuration<unknown>[] = [];
|
|
|
|
if (options.nesUrl) {
|
|
configs.push({
|
|
key: ConfigKey.TeamInternal.InlineEditsXtabProviderUrl,
|
|
value: options.nesUrl,
|
|
});
|
|
}
|
|
if (options.nesApiKey) {
|
|
configs.push({
|
|
key: ConfigKey.TeamInternal.InlineEditsXtabProviderApiKey,
|
|
value: options.nesApiKey,
|
|
});
|
|
}
|
|
|
|
return configs;
|
|
}
|