Add config setting to enable canary features

This commit is contained in:
Henry Mercer
2021-01-21 16:09:29 +00:00
committed by Henry Mercer
parent 154b4a2fe2
commit ae6be79c51

View File

@@ -240,3 +240,12 @@ export class CliConfigListener extends ConfigListener implements CliConfig {
* want to enable experimental features, they can add them directly in
* their vscode settings json file.
*/
/**
* Enables canary features of this extension. Recommended for all internal users.
*/
const CANARY_FEATURES = new Setting('canary', ROOT_SETTING);
export function isCanary() {
return !!CANARY_FEATURES.getValue<boolean>();
}