Permalink
Browse files

Add Preference Hints for version 1.4

  • Loading branch information...
1 parent afc3a57 commit 85a959fc505fcd47fea7f0e489ddd2d07ebf292c @lkcampbell committed Aug 2, 2015
Showing with 18 additions and 6 deletions.
  1. +16 −4 main.js
  2. +2 −2 package.json
View
@@ -55,10 +55,22 @@ define(function (require, exports, module) {
guideStyle = "solid",
prefs = PreferencesManager.getExtensionPrefs("brackets-indent-guides");
- prefs.definePreference("enabled", "boolean", enabled);
- prefs.definePreference("hideFirst", "boolean", hideFirst);
- prefs.definePreference("guideColor", "string", guideColor);
- prefs.definePreference("guideStyle", "string", guideStyle);
+ prefs.definePreference("enabled", "boolean", enabled, {
+ description: "If the value of this preference is true, Indent Guides will be visible. If the value is false, Indent Guides will be hidden."
+ });
+
+ prefs.definePreference("hideFirst", "boolean", hideFirst, {
+ description: "If the value of this preference is true the first Indent Guide will not be drawn."
+ });
+
+ prefs.definePreference("guideColor", "string", guideColor, {
+ description: "The color of the indent guides. Can be any valid CSS Color value."
+ });
+
+ prefs.definePreference("guideStyle", "string", guideStyle, {
+ description: 'This value determines the style of the guide: "solid" or "dotted".',
+ values: ["solid", "dotted"]
+ });
function updateStyleRules() {
var svgStr = "",
View
@@ -1,7 +1,7 @@
{
"name": "brackets-indent-guides",
"title": "Indent Guides",
- "version": "1.3.4",
+ "version": "1.3.5",
"description": "Show indent guides in the code editor.",
"homepage": "https://github.com/lkcampbell/brackets-indent-guides",
"author": "Lance Campbell (https://github.com/lkcampbell)",
@@ -20,6 +20,6 @@
"snap.svg-min.js"
],
"engines": {
- "brackets": ">=1.0.0"
+ "brackets": ">=1.4.0"
}
}

0 comments on commit 85a959f

Please sign in to comment.