Pass character codes around in TextUtils

Previously the character codes were looked up for each type of character pair.
This commit is contained in:
Kevin Sawicki
2014-10-28 16:55:36 -07:00
parent d1fcfabf0b
commit dc824485aa
2 changed files with 37 additions and 29 deletions

View File

@@ -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)