See #898. Improve notification for unsupported settings

Also update Lodash dependency.
This commit is contained in:
Glavin Wiechert 2016-04-08 09:57:19 -03:00
parent 4cdb738d28
commit 11069f6b42
2 changed files with 5 additions and 2 deletions

View File

@ -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",

View File

@ -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()