File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
1010### Added
1111
12+ - Added option to disable Release Notes from being displayed
13+ ([ #675 ] ( https://github.com/fortran-lang/vscode-fortran-support/issues/675 ) )
1214- Added support for schema validation of ` fpm.toml ` files.
1315- Added local path resolution for ` fortls ` , ` findent ` and ` fprettify ` executables
1416 ([ #667 ] ( https://github.com/fortran-lang/vscode-fortran-support/issues/667 ) )
Original file line number Diff line number Diff line change 513513 }
514514 }
515515 },
516+ {
517+ "id" : " notifications" ,
518+ "title" : " Notifications" ,
519+ "order" : 100 ,
520+ "properties" : {
521+ "fortran.notifications.releaseNotes" : {
522+ "type" : " boolean" ,
523+ "default" : true ,
524+ "markdownDescription" : " Show release notes when a new version of the extension is installed." ,
525+ "order" : 0
526+ }
527+ }
528+ },
516529 {
517530 "id" : " deprecated" ,
518531 "title" : " Deprecated Options" ,
Original file line number Diff line number Diff line change @@ -107,7 +107,10 @@ export async function activate(context: vscode.ExtensionContext) {
107107 context . subscriptions . push ( vscode . commands . registerCommand ( WhatsNew , showWhatsNew ) ) ;
108108 // Upon the very first initialisation create a file to indicate that the release
109109 // notes have been shown and not show them again.
110- if ( ! fs . existsSync ( path . join ( __dirname , 'displayReleaseNotes.txt' ) ) ) {
110+ if (
111+ ! fs . existsSync ( path . join ( __dirname , 'displayReleaseNotes.txt' ) ) &&
112+ config . get < boolean > ( 'notifications.releaseNotes' )
113+ ) {
111114 await showWhatsNew ( ) ;
112115 fs . writeFileSync ( path . join ( __dirname , 'displayReleaseNotes.txt' ) , 'false' ) ;
113116 }
You can’t perform that action at this time.
0 commit comments