mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-10 09:35:46 +01:00
add 'jsdebugger' option
for javascript completion
This commit is contained in:
@@ -1289,6 +1289,20 @@ const Completion = Module("completion", {
|
||||
}, {
|
||||
EVAL_TMP: "__liberator_eval_tmp"
|
||||
})
|
||||
}, {
|
||||
options: function () {
|
||||
options.add(["jsdebugger", "jsd"],
|
||||
"Switch on/off jsdebugger",
|
||||
"boolean", false, {
|
||||
setter: function(value) {
|
||||
if (value)
|
||||
services.get("debugger").on();
|
||||
else
|
||||
services.get("debugger").off();
|
||||
},
|
||||
getter: function () services.get("debugger").isOn
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
@@ -1347,5 +1347,18 @@
|
||||
</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<tags>'jsd' 'jsdebugger'</tags>
|
||||
<spec>'jsdebugger' 'jsd'</spec>
|
||||
<type>boolean</type>
|
||||
<default>off</default>
|
||||
<description>
|
||||
<p>
|
||||
Use javascript debugger service at the completion list.
|
||||
More list is shown up when it is on.
|
||||
</p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
</document>
|
||||
<!-- vim:se sts=4 sw=4 et: -->
|
||||
|
||||
Reference in New Issue
Block a user