mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Parameterize view registry on TextEditor
This commit is contained in:
@@ -26,8 +26,10 @@ class Workspace extends Model
|
||||
constructor: (params) ->
|
||||
super
|
||||
|
||||
{@packageManager, @config, @project, @grammarRegistry, @notificationManager, @clipboard} = params
|
||||
{@setRepresentedFilename, @setDocumentEdited} = params
|
||||
{
|
||||
@packageManager, @config, @project, @grammarRegistry, @notificationManager,
|
||||
@clipboard, @viewRegistry, @setRepresentedFilename, @setDocumentEdited
|
||||
} = params
|
||||
|
||||
@emitter = new Emitter
|
||||
@openers = []
|
||||
@@ -456,7 +458,7 @@ class Workspace extends Model
|
||||
@buildTextEditor(_.extend({buffer, largeFileMode}, options))
|
||||
|
||||
buildTextEditor: (params) ->
|
||||
new TextEditor(_.extend({@config, @notificationManager, @clipboard}, params))
|
||||
new TextEditor(_.extend({@config, @notificationManager, @clipboard, @viewRegistry}, params))
|
||||
|
||||
# Public: Asynchronously reopens the last-closed item's URI if it hasn't already been
|
||||
# reopened.
|
||||
|
||||
Reference in New Issue
Block a user