Files
languageservices/actions-languageserver/src/initializationOptions.ts
T
2023-01-30 17:57:07 -05:00

49 lines
870 B
TypeScript

import {LogLevel} from "@github/actions-languageservice/log";
export {LogLevel} from "@github/actions-languageservice/log";
export interface InitializationOptions {
/**
* GitHub token that will be used to retrieve additional information from github.com
*
* Requires the `repo` and `workflow` scopes
*/
sessionToken?: string;
/**
* List of repositories that the language server should be aware of
*/
repos?: RepositoryContext[];
/**
* Desired log level
*/
logLevel?: LogLevel;
}
export interface RepositoryContext {
/**
* Repository ID
*/
id: number;
/**
* Repository owner
*/
owner: string;
/**
* Indicates if the repository is owned by an organization
*/
organizationOwned: boolean;
/**
* Repository name
*/
name: string;
/**
* Local workspace uri
*/
workspaceUri: string;
}