Read metadata when TextMate packages are loaded

The bundled TextMate packages contain valid package metadata
which should be available when displaying in the packages settings
view.
This commit is contained in:
Kevin Sawicki
2013-08-05 16:09:08 -07:00
parent 236ec6fc3b
commit 557ada7c81

View File

@@ -27,6 +27,8 @@ class TextMatePackage extends Package
@metadata = {@name}
load: ({sync}={}) ->
@metadata = Package.loadMetadata(@path, true)
if sync
@loadGrammarsSync()
@loadScopedPropertiesSync()