@@ -30,7 +30,15 @@ Please take a look at the current extension settings\nand update to the new conf
30
30
this . deprecationWarningShown = false
31
31
this . updateConfig ( )
32
32
33
- if ( this . hasDeprecatedParameters ( ) ) {
33
+ let deprecatedParameters = this . hasDeprecatedParameters ( )
34
+
35
+ if ( deprecatedParameters ) {
36
+ if ( Array . isArray ( deprecatedParameters ) ) {
37
+ deprecatedParameters . forEach ( ( parameter ) => {
38
+ utils . appendToOutput ( `Usage of deprecated config => openhab.${ parameter } <= detected.` )
39
+ } )
40
+ }
41
+
34
42
this . showDeprecationWarning ( )
35
43
}
36
44
}
@@ -102,7 +110,7 @@ Please take a look at the current extension settings\nand update to the new conf
102
110
103
111
// Output a warning with a "Dismiss" button to prevent warning from showing too often
104
112
if ( returnValue !== null ) {
105
- utils . appendToOutput ( `Usage of deprecated config ${ parameter } detected.` )
113
+ utils . appendToOutput ( `Usage of deprecated config => openhab. ${ parameter } <= detected.` )
106
114
}
107
115
108
116
return returnValue
@@ -252,14 +260,13 @@ Please take a look at the current extension settings\nand update to the new conf
252
260
private async showDeprecationWarning ( ) {
253
261
if ( ! this . deprecationWarningShown ) {
254
262
this . deprecationWarningShown = true
255
- // const migrateStandardValues = 'Migrate minimal config directly! '
263
+ const showOutput = 'Show Output '
256
264
257
- // let result = await vscode.window.showWarningMessage(ConfigManager.DEPRECATION_WARNING_MESSAGE, { modal: true }, migrateStandardValues)
258
- vscode . window . showWarningMessage ( ConfigManager . DEPRECATION_WARNING_MESSAGE )
265
+ let result = await vscode . window . showWarningMessage ( ConfigManager . DEPRECATION_WARNING_MESSAGE , showOutput )
259
266
260
- // // Action based on user input
261
- // if(result == migrateStandardValues )
262
- // ConfigManager.migrateDeprecatedParameters ()
267
+ // Action based on user input
268
+ if ( result == showOutput )
269
+ utils . getOutputChannel ( ) . show ( )
263
270
}
264
271
}
265
272
}
0 commit comments