From 600f4584c0af668aabbd305ebe32ca7adba307db Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 11 May 2017 14:30:11 +0400 Subject: [PATCH] fix support for --setting-path --- plugins/c9.core/settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/c9.core/settings.js b/plugins/c9.core/settings.js index d50ff855..44affaff 100644 --- a/plugins/c9.core/settings.js +++ b/plugins/c9.core/settings.js @@ -44,9 +44,9 @@ define(function(require, exports, module) { var TEMPLATE = options.template || { user: {}, project: {}, state: {}}; var INTERVAL = 1000; var PATH = { - "project": c9.toInternalPath(options.projectConfigPath || "/.c9") + "/project.settings", - "user": c9.toInternalPath(options.userConfigPath || "~/.c9") + "/user.settings", - "state": c9.toInternalPath(options.stateConfigFilePath || (options.stateConfigPath || "/.c9") + "/state.settings") + "project": util.normalizePath(c9.toInternalPath(options.projectConfigPath || "/.c9")) + "/project.settings", + "user": util.normalizePath(c9.toInternalPath(options.userConfigPath || "~/.c9")) + "/user.settings", + "state": util.normalizePath(c9.toInternalPath(options.stateConfigFilePath || (options.stateConfigPath || "/.c9") + "/state.settings")) }; var KEYS = Object.keys(PATH);