Merge pull request #14205 from atom/fb-mdt-resolve-uri-in-opensync

Fix URI resolution in `openSync()`
This commit is contained in:
Nathan Sobo
2017-04-14 09:38:39 -06:00
committed by GitHub

View File

@@ -1068,7 +1068,7 @@ module.exports = class Workspace extends Model {
const activatePane = options.activatePane != null ? options.activatePane : true
const activateItem = options.activateItem != null ? options.activateItem : true
const uri = this.project.resolvePath(uri)
const uri = this.project.resolvePath(uri_)
let item = this.getActivePane().itemForURI(uri)
if (uri && (item == null)) {
for (const opener of this.getOpeners()) {