diff options
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r-- | editors/code/src/config.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index e858f80bc..fbb7a556a 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -4,7 +4,7 @@ import { log } from "./util"; | |||
4 | 4 | ||
5 | export type UpdatesChannel = "stable" | "nightly"; | 5 | export type UpdatesChannel = "stable" | "nightly"; |
6 | 6 | ||
7 | export const NIGHTLY_TAG = "nightly"; | 7 | const NIGHTLY_TAG = "nightly"; |
8 | 8 | ||
9 | export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string; env: Record<string, string> }[]; | 9 | export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string; env: Record<string, string> }[]; |
10 | 10 | ||
@@ -34,7 +34,7 @@ export class Config { | |||
34 | readonly globalStoragePath: string; | 34 | readonly globalStoragePath: string; |
35 | 35 | ||
36 | constructor(ctx: vscode.ExtensionContext) { | 36 | constructor(ctx: vscode.ExtensionContext) { |
37 | this.globalStoragePath = ctx.globalStoragePath; | 37 | this.globalStoragePath = ctx.globalStorageUri.path; |
38 | vscode.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration, this, ctx.subscriptions); | 38 | vscode.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration, this, ctx.subscriptions); |
39 | this.refreshLogging(); | 39 | this.refreshLogging(); |
40 | } | 40 | } |
@@ -170,4 +170,8 @@ export class Config { | |||
170 | gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), | 170 | gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), |
171 | }; | 171 | }; |
172 | } | 172 | } |
173 | |||
174 | get currentExtensionIsNightly() { | ||
175 | return this.package.releaseTag === NIGHTLY_TAG; | ||
176 | } | ||
173 | } | 177 | } |