Skip to content

Commit ae6be79

Browse files
committed
Add config setting to enable canary features
1 parent 154b4a2 commit ae6be79

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

extensions/ql-vscode/src/config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,12 @@ export class CliConfigListener extends ConfigListener implements CliConfig {
240240
* want to enable experimental features, they can add them directly in
241241
* their vscode settings json file.
242242
*/
243+
244+
/**
245+
* Enables canary features of this extension. Recommended for all internal users.
246+
*/
247+
const CANARY_FEATURES = new Setting('canary', ROOT_SETTING);
248+
249+
export function isCanary() {
250+
return !!CANARY_FEATURES.getValue<boolean>();
251+
}

0 commit comments

Comments
 (0)