1
>
/*---------------------------------------------------------------------------------------------
copilotHome.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { join } from '../../../base/common/path.js';
7
>
import { IProcessEnvironment } from '../../../base/common/platform.js';
8
>
9
>
export function getCopilotHomePath(userHomePath: string, environment: IProcessEnvironment): string {
10
return environment['COPILOT_HOME'] || join(userHomePath, '.copilot');
11
}
13
>
export function getCopilotRootPaths(userHomePath: string, environment: IProcessEnvironment): string[] {
14
return [...new Set([
15
getCopilotHomePath(userHomePath, environment),