Files
languageservices/languageserver/src/initializationOptions.ts
T
Christopher Schleiden b82ddcdb42 Update import paths
String replacement from `@github/actions-` to `@actions/`
2023-03-23 09:57:18 -07:00

54 lines
955 B
TypeScript

import {LogLevel} from "@actions/languageservice/log";
export {LogLevel} from "@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;
/**
* Optional user agent to use when making calls to github.com
*/
userAgent?: 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;
}