mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 906632 - Indentation size in gcli's JavaScript beautifier should follow devtools.editor.tabsize. r=mratcliffe
This commit is contained in:
parent
4743461640
commit
268c158f7d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user