Bug 906632 - Indentation size in gcli's JavaScript beautifier should follow devtools.editor.tabsize. r=mratcliffe

This commit is contained in:
Sebastian Hengst 2014-06-09 09:03:35 +02:00
parent 4743461640
commit 268c158f7d

View File

@ -8,6 +8,7 @@ const { Cc, Ci, Cu } = require("chrome");
const gcli = require("gcli/index");
const XMLHttpRequest = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"];
loader.lazyImporter(this, "Preferences", "resource://gre/modules/Preferences.jsm");
loader.lazyImporter(this, "js_beautify", "resource:///modules/devtools/Jsbeautify.jsm");
exports.items = [
@ -29,7 +30,7 @@ exports.items = [
type: "number",
description: gcli.lookup("jsbIndentSizeDesc"),
manual: gcli.lookup("jsbIndentSizeManual"),
defaultValue: 2
defaultValue: Preferences.get("devtools.editor.tabsize", 2),
},
{
name: "indentChar",