mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Provide type from package
This prevents packages from needing instance of checks for package class type
This commit is contained in:
parent
32556b0ce6
commit
49647ffc58
@ -24,6 +24,8 @@ class AtomPackage extends Package
|
||||
resolvedMainModulePath: false
|
||||
mainModule: null
|
||||
|
||||
getType: -> 'atom'
|
||||
|
||||
load: ->
|
||||
try
|
||||
@metadata = Package.loadMetadata(@path)
|
||||
|
@ -26,6 +26,8 @@ class TextMatePackage extends Package
|
||||
@scopedProperties = []
|
||||
@metadata = {@name}
|
||||
|
||||
getType: -> 'textmate'
|
||||
|
||||
load: ({sync}={}) ->
|
||||
@metadata = Package.loadMetadata(@path, true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user