@@ -113,19 +113,19 @@ export async function activate(context: vscode.ExtensionContext) {
113113 ! fs . existsSync ( path . join ( __dirname , 'displayReleaseNotes.txt' ) ) &&
114114 config . get < boolean > ( 'notifications.releaseNotes' )
115115 ) {
116- await showWhatsNew ( ) ;
116+ const whatsNew = `Show What's New` ;
117+ const notAgain = `Don't show again` ;
118+ vscode . window
119+ . showInformationMessage ( '🎉 New Release: Modern Fortran 🎉' , whatsNew , notAgain )
120+ . then ( selection => {
121+ if ( selection === whatsNew ) {
122+ showWhatsNew ( ) ;
123+ } else if ( selection === notAgain ) {
124+ config . update ( 'notifications.releaseNotes' , false , true ) ;
125+ }
126+ } ) ;
117127 fs . writeFileSync ( path . join ( __dirname , 'displayReleaseNotes.txt' ) , 'false' ) ;
118128 }
119- // const GoToHelp = 'Go to Help';
120- // vscode.window.showInformationMessage('Click for more Info', GoToHelp).then(selection => {
121- // if (selection === GoToHelp) {
122- // vscode.env.openExternal(
123- // vscode.Uri.parse(
124- // 'https://github.com/fortran-lang/vscode-fortran-support/blob/main/updates/RELEASE_NOTES-v3.2.md'
125- // )
126- // );
127- // }
128- // });
129129 return context ;
130130}
131131
@@ -183,6 +183,7 @@ function detectDeprecatedOptions() {
183183}
184184
185185async function showWhatsNew ( ) {
186- const uri = vscode . Uri . file ( path . join ( __dirname , '../updates/RELEASE_NOTES-unreleased.md' ) ) ;
187- vscode . commands . executeCommand ( 'markdown.showPreview' , uri ) ;
186+ vscode . env . openExternal (
187+ vscode . Uri . parse ( 'https://github.com/fortran-lang/vscode-fortran-support/wiki/Pre-Release' )
188+ ) ;
188189}
0 commit comments