Add feature flag for codespaces-codeql template workspace
We'll use this flag for commands that are specific to the tutorial code tour and "quick setup" in https://github.com/github/codespaces-codeql
This commit is contained in:
@@ -647,3 +647,16 @@ export class MockGitHubApiConfigListener
|
|||||||
export function getMockGitHubApiServerScenariosPath(): string | undefined {
|
export function getMockGitHubApiServerScenariosPath(): string | undefined {
|
||||||
return MOCK_GH_API_SERVER_SCENARIOS_PATH.getValue<string>();
|
return MOCK_GH_API_SERVER_SCENARIOS_PATH.getValue<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables features that are specific to the codespaces-codeql template workspace from
|
||||||
|
* https://github.com/github/codespaces-codeql.
|
||||||
|
*/
|
||||||
|
export const CODESPACES_CODE_TOUR = new Setting(
|
||||||
|
"codespacesTemplate",
|
||||||
|
ROOT_SETTING,
|
||||||
|
);
|
||||||
|
|
||||||
|
export function isCodespacesTemplate() {
|
||||||
|
return !!CODESPACES_CODE_TOUR.getValue<boolean>();
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user