Skip to content

Commit d0d48df

Browse files
committed
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
1 parent 0dd741f commit d0d48df

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

extensions/ql-vscode/src/config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,3 +647,16 @@ export class MockGitHubApiConfigListener
647647
export function getMockGitHubApiServerScenariosPath(): string | undefined {
648648
return MOCK_GH_API_SERVER_SCENARIOS_PATH.getValue<string>();
649649
}
650+
651+
/**
652+
* Enables features that are specific to the codespaces-codeql template workspace from
653+
* https://github.com/github/codespaces-codeql.
654+
*/
655+
export const CODESPACES_CODE_TOUR = new Setting(
656+
"codespacesTemplate",
657+
ROOT_SETTING,
658+
);
659+
660+
export function isCodespacesTemplate() {
661+
return !!CODESPACES_CODE_TOUR.getValue<boolean>();
662+
}

0 commit comments

Comments
 (0)