mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
Add grammar registry as an injected dependency of Project
This commit is contained in:
@@ -167,7 +167,10 @@ class AtomEnvironment extends Model
|
||||
@packages.setContextMenuManager(@contextMenu)
|
||||
@packages.setThemeManager(@themes)
|
||||
|
||||
@project = new Project({notificationManager: @notifications, packageManager: @packages, @config, @applicationDelegate})
|
||||
@project = new Project({
|
||||
notificationManager: @notifications, packageManager: @packages, grammarRegistry: @grammars
|
||||
@config, @applicationDelegate
|
||||
})
|
||||
@commandInstaller = new CommandInstaller(@applicationDelegate)
|
||||
@protocolHandlerInstaller = new ProtocolHandlerInstaller()
|
||||
|
||||
|
||||
@@ -19,10 +19,11 @@ class Project extends Model {
|
||||
Section: Construction and Destruction
|
||||
*/
|
||||
|
||||
constructor ({notificationManager, packageManager, config, applicationDelegate}) {
|
||||
constructor ({notificationManager, packageManager, config, applicationDelegate, grammarRegistry}) {
|
||||
super()
|
||||
this.notificationManager = notificationManager
|
||||
this.applicationDelegate = applicationDelegate
|
||||
this.grammarRegistry = grammarRegistry
|
||||
this.emitter = new Emitter()
|
||||
this.buffers = []
|
||||
this.rootDirectories = []
|
||||
|
||||
Reference in New Issue
Block a user