diff options
author | Aleksey Kladov <[email protected]> | 2020-03-24 08:31:42 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-24 08:34:54 +0000 |
commit | be4977da7fa78ae386b595ef2227d034ebb3a7e5 (patch) | |
tree | 2f7b655ad1b2b6bdec281e498632c1c89f4333dc /editors/code/src/config.ts | |
parent | f9494f114798f66b5f2174cf518a2951a82571d3 (diff) |
Don't try to enable proposed API's on stable
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r-- | editors/code/src/config.ts | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index be5296fcf..602538ea1 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -38,17 +38,11 @@ export class Config { | |||
38 | ] | 38 | ] |
39 | .map(opt => `${this.rootSection}.${opt}`); | 39 | .map(opt => `${this.rootSection}.${opt}`); |
40 | 40 | ||
41 | readonly packageJsonVersion: string = vscode | 41 | readonly package: { |
42 | .extensions | 42 | version: string; |
43 | .getExtension(this.extensionId)! | 43 | releaseTag: string | undefined; |
44 | .packageJSON | 44 | enableProposedApi: boolean | undefined; |
45 | .version; | 45 | } = vscode.extensions.getExtension(this.extensionId)!.packageJSON; |
46 | |||
47 | readonly releaseTag: string | undefined = vscode | ||
48 | .extensions | ||
49 | .getExtension(this.extensionId)! | ||
50 | .packageJSON | ||
51 | .releaseTag ?? undefined; | ||
52 | 46 | ||
53 | private cfg!: vscode.WorkspaceConfiguration; | 47 | private cfg!: vscode.WorkspaceConfiguration; |
54 | 48 | ||
@@ -62,7 +56,7 @@ export class Config { | |||
62 | const enableLogging = this.cfg.get("trace.extension") as boolean; | 56 | const enableLogging = this.cfg.get("trace.extension") as boolean; |
63 | log.setEnabled(enableLogging); | 57 | log.setEnabled(enableLogging); |
64 | log.debug( | 58 | log.debug( |
65 | "Extension version:", this.packageJsonVersion, | 59 | "Extension version:", this.package.version, |
66 | "using configuration:", this.cfg | 60 | "using configuration:", this.cfg |
67 | ); | 61 | ); |
68 | } | 62 | } |