Fix #1125: fix LinkManager to only open URLs once via file navigation vs. Launcher.launch()

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2015-09-18 15:30:15 -04:00
Родитель 339610a63c
Коммит a4342637f4
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -7,7 +7,6 @@ define(function (require, exports, module) {
var Commands = brackets.getModule("command/Commands");
var FileSystem = brackets.getModule("filesystem/FileSystem");
var Launcher = require("lib/launcher");
var LinkManagerRemote = require("text!lib/LinkManagerRemote.js");
function getRemoteScript() {
@ -40,11 +39,7 @@ define(function (require, exports, module) {
var currentDir = Path.dirname(currentDoc.doc.file.fullPath);
path = Path.resolve(currentDir, path);
// Open it in the preview
var launcher = Launcher.getCurrentInstance();
launcher.launch(path);
// Open it in the editor
// Open it in the editor, which will also attempt to update the preview to match
FileSystem.resolve(path, function(err, file) {
if(err) {
console.log("[Bramble Error] unable to open path in editor", path, err);