Skip to content

Commit

Permalink
Add enum descriptions in sublime-settings schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Mar 19, 2020
1 parent af3b3d4 commit 2f72c1e
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions schemas/sublime-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"default": 10
},
"font_options": {
"markdownDescription": "Valid options on all platforms are:\n - \"no_bold\": Disables bold text\n - \"no_italic\": Disables italic text\nAntialiasing options:\n - \"no_antialias\": Disables antialiasing\n - \"gray_antialias\": Uses grayscale antialiasing instead of subpixel\nLigature options: - \"no_liga\": Disables standard ligatures (OpenType liga feature)\n - \"no_clig\": Disables contextual ligatures (OpenType clig feature)\n - \"no_calt\": Disables contextual alternatives (OpenType calt feature)\n - \"dlig\": Enables discretionary ligatures (OpenType dlig feature)\n - \"ss01\": Enables OpenType stylistic set 1. Can enable sets 1 to 10 by changing the last two digits.\nWindows-only options:\n - \"directwrite\": (default) Use DirectWrite for font rendering\n - \"gdi\": Use GDI for font rendering\n - \"dwrite_cleartype_classic\": Only applicable to \"directwrite\" mode, should render fonts similar to traditional GDI\n - \"dwrite_cleartype_natural\": Only applicable to \"directwrite\" mode, should render fonts similar to ClearType \"natural quality\" GDI\n - \"subpixel_antialias\": Force ClearType antialiasing when disabled at system level\nMac-only options:\n - \"no_round\": Don't round glyph widths for monospace fonts when `font_size` is small.",
"markdownDescription": "Options for text font.",
"type": "array",
"uniqueItems": true,
"items": {
Expand Down Expand Up @@ -53,12 +53,38 @@
"dwrite_cleartype_natural",
"subpixel_antialias",
"no_round"
],
"markdownEnumDescriptions": [
"Disable bold text.",
"Disable italic text.",
"Disable antialiasing.",
"Use grayscale antialiasing instead of subpixel.",
"Disable standard ligatures (OpenType liga feature).",
"Disable contextual ligatures (OpenType clig feature).",
"Disable contextual alternatives (OpenType calt feature).",
"Enable discretionary ligatures (OpenType dlig feature).",
"Enable OpenType stylistic set 1.",
"Enable OpenType stylistic set 2.",
"Enable OpenType stylistic set 3.",
"Enable OpenType stylistic set 4.",
"Enable OpenType stylistic set 5.",
"Enable OpenType stylistic set 6.",
"Enable OpenType stylistic set 7.",
"Enable OpenType stylistic set 8.",
"Enable OpenType stylistic set 9.",
"Enable OpenType stylistic set 10.",
"Use DirectWrite for font rendering (default, Windows only!).",
"Use GDI for font rendering (Windows only!).",
"Only applicable to `directwrite` mode, should render fonts similar to traditional GDI (Windows only!).",
"Only applicable to `directwrite` mode, should render fonts similar to ClearType \"natural quality\" GDI (Windows only!).",
"Force ClearType antialiasing when disabled at system level (Windows only!).",
"Don't round glyph widths for monospace fonts when `font_size` is small (Mac only!)."
]
},
"default": []
},
"theme_font_options": {
"markdownDescription": "Font options for theme text.\nValid options on all platforms are:\nAntialiasing options:\n - \"no_antialias\": Disables antialiasing\n - \"gray_antialias\": Uses grayscale antialiasing instead of subpixel\nLigature options: - \"no_liga\": Disables standard ligatures (OpenType liga feature)\n - \"no_clig\": Disables contextual ligatures (OpenType clig feature)\n - \"no_calt\": Disables contextual alternatives (OpenType calt feature)\n - \"dlig\": Enables discretionary ligatures (OpenType dlig feature)\n - \"ss01\": Enables OpenType stylistic set 1. Can enable sets 1 to 10 by changing the last two digits.\nWindows-only options:\n - \"directwrite\": (default) Use DirectWrite for font rendering\n - \"gdi\": Use GDI for font rendering\n - \"dwrite_cleartype_classic\": Only applicable to \"directwrite\" mode, should render fonts similar to traditional GDI\n - \"dwrite_cleartype_natural\": Only applicable to \"directwrite\" mode, should render fonts similar to ClearType \"natural quality\" GDI\n - \"subpixel_antialias\": Force ClearType antialiasing when disabled at system level\nMac-only options:\n - \"no_round\": Don't round glyph widths for monospace fonts when `font_size` is small.",
"markdownDescription": "Options for theme text font.",
"type": "array",
"uniqueItems": true,
"items": {
Expand Down Expand Up @@ -86,6 +112,30 @@
"dwrite_cleartype_natural",
"subpixel_antialias",
"no_round"
],
"markdownEnumDescriptions": [
"Disable antialiasing.",
"Use grayscale antialiasing instead of subpixel.",
"Disable standard ligatures (OpenType liga feature).",
"Disable contextual ligatures (OpenType clig feature).",
"Disable contextual alternatives (OpenType calt feature).",
"Enable discretionary ligatures (OpenType dlig feature).",
"Enable OpenType stylistic set 1.",
"Enable OpenType stylistic set 2.",
"Enable OpenType stylistic set 3.",
"Enable OpenType stylistic set 4.",
"Enable OpenType stylistic set 5.",
"Enable OpenType stylistic set 6.",
"Enable OpenType stylistic set 7.",
"Enable OpenType stylistic set 8.",
"Enable OpenType stylistic set 9.",
"Enable OpenType stylistic set 10.",
"Use DirectWrite for font rendering (default, Windows only!).",
"Use GDI for font rendering (Windows only!).",
"Only applicable to `directwrite` mode, should render fonts similar to traditional GDI (Windows only!).",
"Only applicable to `directwrite` mode, should render fonts similar to ClearType \"natural quality\" GDI (Windows only!).",
"Force ClearType antialiasing when disabled at system level (Windows only!).",
"Don't round glyph widths for monospace fonts when `font_size` is small (Mac only!)."
]
},
"default": []
Expand Down Expand Up @@ -121,8 +171,13 @@
"default": true
},
"mini_diff": {
"markdownDescription": "Indicate modified lines in the gutter.\n - true: Enables modified line indicators on all files\n - \"auto\": Enables modified line indicators on tracked files within Git\n - false: Disables modified line indicators",
"markdownDescription": "Indicate modified lines in the gutter.",
"enum": [true, false, "auto"],
"markdownEnumDescriptions": [
"Enable modified line indicators on all files.",
"Disable modified line indicators.",
"Enable modified line indicators on tracked files within Git."
],
"default": "auto"
},
"rulers": {
Expand Down Expand Up @@ -178,8 +233,13 @@
"default": true
},
"word_wrap": {
"markdownDescription": "Disables horizontal scrolling if enabled.\nMay be set to `true`, `false`, or `\"auto\"`, where it will be disabled for source code, and otherwise enabled.",
"markdownDescription": "Disables horizontal scrolling if enabled.",
"enum": [true, false, "auto"],
"markdownEnumDescriptions": [
"Enable word wrap.",
"Disable word wrap.",
"Enable word wrap for source code and disable it otherwise."
],
"default": "auto"
},
"wrap_width": {
Expand Down Expand Up @@ -333,7 +393,7 @@
"default": true
},
"draw_white_space": {
"markdownDescription": "Controls when white space is drawn. Any of the following options may be combined:\n- \"selection\": Draw white space under the current selection.\n- \"leading\": Draw any white space between the beginning of a line and the first character.\n- \"enclosed\": Draw white space enclosed by other characters.\n- \"trailing\": Draw white space following the last character on a line.\n- \"isolated\": Draw white space on lines containing no other characters.- \"all\": All of the above, ie. always draw white space.\nFor example [\"selection\", \"trailing\", \"isolated\"] will draw whitespace at the end of any lines and under the selection.",
"markdownDescription": "Controls when white space is drawn. Any of the valid options may be combined.\nFor example [\"selection\", \"trailing\", \"isolated\"] will draw whitespace at the end of any lines and under the selection.",
"oneOf": [
{
"type": "array",
Expand Down

0 comments on commit 2f72c1e

Please sign in to comment.