File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,20 @@ function detectDeprecatedOptions() {
90
90
if ( config . get ( 'provideHover' ) ) oldArgs . push ( 'fortran.provideHover' ) ;
91
91
if ( config . get ( 'provideCompletion' ) ) oldArgs . push ( 'fortran.provideCompletion' ) ;
92
92
93
+ // only captures config options set to true but the package.json deprecation
94
+ // descriptions should take care of the rest
93
95
if ( oldArgs . length !== 0 ) {
94
- const err = vscode . window . showErrorMessage (
95
- `Deprecated settings have been detected in your settings.
96
+ vscode . window
97
+ . showErrorMessage (
98
+ `Deprecated settings have been detected in your settings.
96
99
Please update your settings to make use of the new names. The old names will not work.` ,
97
- 'Open Settings'
98
- ) ;
99
- err . then ( ( ) => vscode . commands . executeCommand ( 'workbench.action.openGlobalSettings' ) ) ;
100
- loggingService . logError ( `The following deprecated options have been detected:\n${ oldArgs } ` ) ;
100
+ 'Open Settings'
101
+ )
102
+ . then ( selected => {
103
+ if ( selected === 'Open Settings' ) {
104
+ vscode . commands . executeCommand ( 'workbench.action.openGlobalSettings' ) ;
105
+ }
106
+ loggingService . logError ( `The following deprecated options have been detected:\n${ oldArgs } ` ) ;
107
+ } ) ;
101
108
}
102
109
}
You can’t perform that action at this time.
0 commit comments