rename the bool type to be called boolean
This commit is contained in:
parent
f70310742a
commit
6508ebea8c
2 changed files with 19 additions and 19 deletions
|
|
@ -38,16 +38,16 @@
|
||||||
|
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
|
|
||||||
var types = require('pilot/types')
|
var types = require('pilot/types');
|
||||||
var SelectionType = require('pilot/types/basic').SelectionType
|
var SelectionType = require('pilot/types/basic').SelectionType;
|
||||||
|
|
||||||
var env
|
var env;
|
||||||
|
|
||||||
var settingTypes = {
|
var settingTypes = {
|
||||||
selectionStyle: new SelectionType({
|
selectionStyle: new SelectionType({
|
||||||
data: [ 'line', 'text' ]
|
data: [ 'line', 'text' ]
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
printMargin: {
|
printMargin: {
|
||||||
|
|
@ -55,23 +55,23 @@ var settings = {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
defaultValue: 80,
|
defaultValue: 80,
|
||||||
onChange: function onChange(event) {
|
onChange: function onChange(event) {
|
||||||
if (env.editor) env.editor.setPrintMarginColumn(event.value)
|
if (env.editor) env.editor.setPrintMarginColumn(event.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showIvisibles: {
|
showIvisibles: {
|
||||||
description: 'Whether or not to show invisible characters.',
|
description: 'Whether or not to show invisible characters.',
|
||||||
type: 'bool',
|
type: 'boolean',
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
onChange: function onChange(event) {
|
onChange: function onChange(event) {
|
||||||
if (env.editor) env.editor.setShowInvisibles(event.value)
|
if (env.editor) env.editor.setShowInvisibles(event.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
highlightActiveLine: {
|
highlightActiveLine: {
|
||||||
description: 'Whether or not highlight active line.',
|
description: 'Whether or not highlight active line.',
|
||||||
type: 'bool',
|
type: 'boolean',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
onChange: function onChange(event) {
|
onChange: function onChange(event) {
|
||||||
if (env.editor) env.editor.setHighlightActiveLine(event.value)
|
if (env.editor) env.editor.setHighlightActiveLine(event.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectionStyle: {
|
selectionStyle: {
|
||||||
|
|
@ -79,19 +79,19 @@ var settings = {
|
||||||
type: 'selectionStyle',
|
type: 'selectionStyle',
|
||||||
defaultValue: 'line',
|
defaultValue: 'line',
|
||||||
onChange: function onChange(event) {
|
onChange: function onChange(event) {
|
||||||
if (env.editor) env.editor.setSelectionStyle(event.value)
|
if (env.editor) env.editor.setSelectionStyle(event.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
exports.startup = function startup(data, reason) {
|
exports.startup = function startup(data, reason) {
|
||||||
env = data.env
|
env = data.env;
|
||||||
types.registerTypes(settingTypes)
|
types.registerTypes(settingTypes);
|
||||||
data.env.settings.addSettings(settings)
|
data.env.settings.addSettings(settings);
|
||||||
}
|
};
|
||||||
|
|
||||||
exports.shutdown = function shutdown(data, reason) {
|
exports.shutdown = function shutdown(data, reason) {
|
||||||
data.env.settings.removeSettings(settings)
|
data.env.settings.removeSettings(settings);
|
||||||
}
|
};
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4db2acd7d27bf8073eab841e8f8266e9d1cf0fa7
|
Subproject commit 56a7887f269e31e2bf96cb3bf85d5ac9373111c6
|
||||||
Loading…
Add table
Add a link
Reference in a new issue