Revert "reload IDE when ssh settings change"

This commit is contained in:
Matthijs van Henten 2015-12-10 15:25:55 +01:00
parent 7426bd6bb3
commit 1e2524b856

View File

@ -5,7 +5,7 @@ define(function(require, exports, module) {
"use strict";
main.consumes = [
"Plugin", "pubsub", "vfs", "metrics", "vfs.endpoint", "dialog.alert"
"Plugin", "pubsub", "vfs", "metrics", "vfs.endpoint"
];
main.provides = ["vfs.listener"];
return main;
@ -16,7 +16,6 @@ define(function(require, exports, module) {
var vfs = imports.vfs;
var vfsEndpoint = imports["vfs.endpoint"];
var metrics = imports.metrics;
var showAlert = imports["dialog.alert"].show;
/***** Initialization *****/
@ -36,20 +35,6 @@ define(function(require, exports, module) {
vfsEndpoint.clearCache();
vfs.reconnect();
}
else if (m.action == "remote_changed") {
metrics.increment("vfs.remote_changed", 1, true);
vfsEndpoint.clearCache();
showAlert("Workspace configuration changed!",
"The configuration of this workspace has changed.",
"Cloud9 will be reloaded in order to activate the changes.",
function() {
setTimeout(function() {
window.location.reload();
}, 500);
}
);
}
});
}