File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -578,15 +578,16 @@ function showGoWelcomePage(ctx: vscode.ExtensionContext) {
578
578
// Update this list of versions when there is a new version where we want to
579
579
// show the welcome page on update.
580
580
const showVersions : string [ ] = [ '0.22.0' ] ;
581
-
581
+ // TODO(hyangah): use the content hash instead of hard-coded string.
582
+ // https://github.com/golang/vscode-go/issue/1179
583
+ let goExtensionVersion = 'v0.22.0' ;
582
584
let goExtensionVersionKey = 'go.extensionVersion' ;
583
585
if ( isInPreviewMode ( ) ) {
586
+ goExtensionVersion = '0.0.0' ;
584
587
goExtensionVersionKey = 'go.nightlyExtensionVersion' ;
585
588
}
586
589
587
- const goExtension = vscode . extensions . getExtension ( extensionId ) ! ;
588
- const goExtensionVersion = goExtension . packageJSON . version ;
589
- const savedGoExtensionVersion = getFromGlobalState ( goExtensionVersionKey , '0.0.0' ) ;
590
+ const savedGoExtensionVersion = getFromGlobalState ( goExtensionVersionKey , '' ) ;
590
591
591
592
if ( shouldShowGoWelcomePage ( showVersions , goExtensionVersion , savedGoExtensionVersion ) ) {
592
593
WelcomePanel . createOrShow ( ctx . extensionUri ) ;
You can’t perform that action at this time.
0 commit comments