mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Revert "reload IDE when ssh settings change"
This commit is contained in:
parent
7426bd6bb3
commit
1e2524b856
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user