12
13
export function createProfileSchemaEnums(detectedProfiles: ITerminalProfile[], extensionProfiles?: readonly IExtensionTerminalProfile[]): {
15
>
markdownDescriptions: string[] | undefined;
16
>
} {
17
>
const result: { name: string | null; description: string }[] = [{
18
>
name: null,
19
>
description: localize('terminalAutomaticProfile', 'Automatically detect the default')
20
>
}];
21
>
result.push(...detectedProfiles.map(e => {
22
return {
23
name: e.profileName,
24
description: createProfileDescription(e)
25
};
27
>
if (extensionProfiles) {
28
result.push(...extensionProfiles.map(extensionProfile => {
29
return {