Deprecate reopenItemSync

This commit is contained in:
Corey Johnson
2014-04-24 14:27:26 -07:00
parent c7e308bca0
commit c9a377d4ac

View File

@@ -165,7 +165,7 @@ class Workspace extends Model
.catch (error) ->
console.error(error.stack ? error)
# Public: Reopen the last-closed item's URI if it hasn't already been
# Public: Asynchronously reopens the last-closed item's URI if it hasn't already been
# reopened.
#
# Returns a promise that is resolved when the item is opened
@@ -175,6 +175,12 @@ class Workspace extends Model
else
Q()
# Deprecated
reopenItemSync: ->
deprecate("Use Workspace::reopenItem instead")
if uri = @destroyedItemUris.pop()
@openSync(uri)
# Public: Register an opener for a uri.
#
# An {Editor} will be used if no openers return a value.