Fix logging with vfs disconnections

pull/3/head
Tim Robinson 2015-02-10 11:45:13 +00:00
rodzic b0108959bc
commit 3b0b0199ea
6 zmienionych plików z 13 dodań i 19 usunięć

Wyświetl plik

@ -21,10 +21,11 @@ We have several documentation resources for you:
<tr><th>SDK documentation</th><td>http://cloud9-sdk.readme.io/v0.1/docs</td></tr>
<tr><th>API documentation</th><td>http://docs.c9.io/api</td></tr>
<tr><th>User documentation</th><td>http://docs.c9.io</td></tr>
<tr><th>User docs repo</th><td>https://github.com/c9/docs.c9.io</td></tr>
</table>
Please joing the mailinglist to get support or give support to the growing community of plugin developers:
https://groups.google.com/forum/#!forum/cloud9-sdk
https://groups.google.com/forum/#!forum/cloud9-plugin-development
#### Installation ####

Wyświetl plik

@ -63,7 +63,7 @@
"c9.ide.find": "#be3bca94b7",
"c9.ide.find.infiles": "#462928475c",
"c9.ide.find.replace": "#fe41fa768d",
"c9.ide.run.debug": "#9a05fadc55",
"c9.ide.run.debug": "#b734a2a47f",
"c9.ide.ace.emmet": "#e5f1a92ac3",
"c9.ide.ace.gotoline": "#4d1a93172c",
"c9.ide.ace.keymaps": "#422e83553b",

Wyświetl plik

@ -71,11 +71,6 @@ function plugin(options, imports, register) {
email: req.user.email
};
}
else if (req.session) {
customData.user = {
id: req.session.uid
};
}
raygunClient.send(err, customData, function() {}, {
host: parsedUrl.hostname,

Wyświetl plik

@ -139,12 +139,10 @@ define(function(require, exports, module) {
watch("~/.c9/plugins/" + pluginPath);
var cfg = options.plugins[path];
var host = vfs.baseUrl + "/";
var base = join(String(c9.projectId),
"plugins", auth.accessToken);
cfg.packagePath = host + join(base, pluginPath.replace(/^plugins\//, ""));
cfg.staticPrefix = host + join(base, name);
cfg.packagePath = join(vfs.baseUrl, c9.projectId, "plugins",
auth.accessToken, pluginPath.replace(/^plugins\//, ""));
cfg.staticPrefix = join(vfs.baseUrl, c9.projectId, "plugins",
auth.accessToken, name);
cfg.apikey = "0000000000000000000000000000=";
config.push(cfg);

Wyświetl plik

@ -66,11 +66,9 @@ define(function(require, exports, module) {
names.push(name);
var path = options.packagePath + ".js";
var host = vfs.baseUrl + "/";
var base = join(String(c9.projectId), "plugins", auth.accessToken);
options.packagePath = host + join(base, path.replace(/^plugins\//, ""));
options.staticPrefix = host + join(base, name);
var base = join(vfs.baseUrl, c9.projectId, "plugins", auth.accessToken);
options.packagePath = join(base, path.replace(/^plugins\//, ""));
options.staticPrefix = join(base, name);
if (!options.setup) {
wait++;

Wyświetl plik

@ -1,12 +1,13 @@
define(function(require, exports, module) {
"use strict";
main.consumes = ["Plugin"];
main.consumes = ["Plugin", "logger"];
main.provides = ["vfs.connect"];
return main;
function main(options, imports, register) {
var Plugin = imports.Plugin;
var logger = imports.logger;
var Vfs = require("./vfs");
var localFs = require("vfs-local");
@ -45,6 +46,7 @@ define(function(require, exports, module) {
callback(null, new Vfs(localFs(vfsOptions), master, {
debug: options.debug || false,
logger: logger,
homeDir: vfsOptions.homeDir,
projectDir: vfsOptions.projectDir,
extendDirectory: options.extendDirectory,