mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Move logic for assigning grammars to editors into TextEditorRegistry
This commit is contained in:
@@ -577,6 +577,7 @@ class Workspace extends Model
|
||||
}, params)
|
||||
editor = new TextEditor(params)
|
||||
@textEditorRegistry.maintainConfig(editor)
|
||||
@textEditorRegistry.maintainGrammar(editor)
|
||||
editor
|
||||
|
||||
# Public: Asynchronously reopens the last-closed item's URI if it hasn't already been
|
||||
|
||||
Reference in New Issue
Block a user