See #898. Improve notification for unsupported settings
Also update Lodash dependency.
This commit is contained in:
parent
4cdb738d28
commit
11069f6b42
|
@ -99,7 +99,7 @@
|
|||
"handlebars": "^4.0.2",
|
||||
"js-beautify": "^1.6.2",
|
||||
"jscs": "^2.1.1",
|
||||
"lodash": "4.6.1",
|
||||
"lodash": "^4.8.2",
|
||||
"loophole": "^1.0.0",
|
||||
"node-dir": "^0.1.8",
|
||||
"node-uuid": "^1.4.3",
|
||||
|
|
|
@ -522,7 +522,10 @@ getUnsupportedOptions = ->
|
|||
plugin.checkUnsupportedOptions = ->
|
||||
unsupportedOptions = getUnsupportedOptions()
|
||||
if unsupportedOptions.length isnt 0
|
||||
atom.notifications.addWarning("You have unsupported options: #{unsupportedOptions.join(', ')} <br> Please run Atom command 'Atom-Beautify: Migrate Settings'.")
|
||||
atom.notifications.addWarning("Please run Atom command 'Atom-Beautify: Migrate Settings'.", {
|
||||
detail : "You have unsupported options: #{unsupportedOptions.join(', ')}",
|
||||
dismissable : true
|
||||
})
|
||||
|
||||
plugin.migrateSettings = ->
|
||||
unsupportedOptions = getUnsupportedOptions()
|
||||
|
|
Loading…
Reference in New Issue