mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Pass character codes around in TextUtils
Previously the character codes were looked up for each type of character pair.
This commit is contained in:
@@ -402,6 +402,8 @@ class Workspace extends Model
|
||||
item ?= opener(atom.project.resolve(uri), options) for opener in @getOpeners() when !item
|
||||
item ?= atom.project.open(uri, options)
|
||||
|
||||
console.profile('open')
|
||||
|
||||
Q(item)
|
||||
.then (item) =>
|
||||
if not pane
|
||||
@@ -413,6 +415,7 @@ class Workspace extends Model
|
||||
index = pane.getActiveItemIndex()
|
||||
@emit "uri-opened"
|
||||
@emitter.emit 'did-open', {uri, pane, item, index}
|
||||
console.profileEnd('open')
|
||||
item
|
||||
.catch (error) ->
|
||||
console.error(error.stack ? error)
|
||||
|
||||
Reference in New Issue
Block a user