Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/terminal-suggest/src/fig/fig-autocomplete-shared/utils.ts
3520 views
1
/*---------------------------------------------------------------------------------------------
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
export function makeArray<T>(object: T | T[]): T[] {
7
return Array.isArray(object) ? object : [object];
8
}
9
10
export enum SpecLocationSource {
11
GLOBAL = 'global',
12
LOCAL = 'local',
13
}
14
15