@@ -45,7 +45,7 @@ export class Config {
4545 /**
4646 * Either `nightly` or `YYYY-MM-DD` (i.e. `stable` release)
4747 */
48- private readonly extensionVersion : string = ( ( ) => {
48+ readonly extensionReleaseTag : string = ( ( ) => {
4949 const packageJsonVersion = vscode
5050 . extensions
5151 . getExtension ( this . extensionId ) !
@@ -135,10 +135,8 @@ export class Config {
135135 }
136136 }
137137
138- get installedExtensionUpdateChannel ( ) {
139- if ( this . serverPath !== null ) return null ;
140-
141- return this . extensionVersion === NIGHTLY_TAG
138+ get installedExtensionUpdateChannel ( ) : UpdatesChannel {
139+ return this . extensionReleaseTag === NIGHTLY_TAG
142140 ? UpdatesChannel . Nightly
143141 : UpdatesChannel . Stable ;
144142 }
@@ -159,7 +157,7 @@ export class Config {
159157
160158 return this . createGithubReleaseSource (
161159 prebuiltBinaryName ,
162- this . extensionVersion
160+ this . extensionReleaseTag
163161 ) ;
164162 }
165163
@@ -195,7 +193,7 @@ export class Config {
195193 // We don't do runtime config validation here for simplicity. More on stackoverflow:
196194 // https://stackoverflow.com/questions/60135780/what-is-the-best-way-to-type-check-the-configuration-for-vscode-extension
197195
198- private get serverPath ( ) { return this . cfg . get ( "serverPath" ) as null | string ; }
196+ get serverPath ( ) { return this . cfg . get ( "serverPath" ) as null | string ; }
199197 get updatesChannel ( ) { return this . cfg . get ( "updates.channel" ) as UpdatesChannel ; }
200198 get askBeforeDownload ( ) { return this . cfg . get ( "updates.askBeforeDownload" ) as boolean ; }
201199 get highlightingSemanticTokens ( ) { return this . cfg . get ( "highlighting.semanticTokens" ) as boolean ; }
0 commit comments