diff options
| author | Kirill Bulatov <mail4score@gmail.com> | 2021-05-23 13:57:04 +0300 |
|---|---|---|
| committer | Kirill Bulatov <mail4score@gmail.com> | 2021-05-23 13:57:04 +0300 |
| commit | daedcc2b77187486fde13a2813809b06b2385ac0 (patch) | |
| tree | 60b2b267baadbc1be09ac338611c68de59fd0174 /editors/code/src/config.ts | |
| parent | 223dbd2187e5b966d192dac9745d47831dccb9b3 (diff) | |
| download | rust-daedcc2b77187486fde13a2813809b06b2385ac0.tar.gz rust-daedcc2b77187486fde13a2813809b06b2385ac0.zip | |
More style fixes
Diffstat (limited to 'editors/code/src/config.ts')
| -rw-r--r-- | editors/code/src/config.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index c9249768d2c..fbb7a556a86 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -4,7 +4,7 @@ import { log } from "./util"; export type UpdatesChannel = "stable" | "nightly"; -export const NIGHTLY_TAG = "nightly"; +const NIGHTLY_TAG = "nightly"; export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string; env: Record<string, string> }[]; @@ -170,4 +170,8 @@ export class Config { gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), }; } + + get currentExtensionIsNightly() { + return this.package.releaseTag === NIGHTLY_TAG; + } } |
