mirror of
https://github.com/wassname/nvatom.git
synced 2026-07-17 11:30:02 +08:00
Make autosave also consider nvatom.extensions
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports =
|
||||
return unless paneItem?.isModified?()
|
||||
uri = paneItem.getURI()
|
||||
return unless uri.indexOf(@rootDirectory) == 0
|
||||
return unless fs.isMarkdownExtension(path.extname(uri))
|
||||
return unless path.extname(uri) in atom.config.get('nvatom.extensions')
|
||||
paneItem?.save?()
|
||||
|
||||
autosaveAll: ->
|
||||
|
||||
Reference in New Issue
Block a user