@lvce-editor/settings-view 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -914,7 +914,7 @@ const terminate = () => {
914
914
  globalThis.close();
915
915
  };
916
916
 
917
- const clear = state => {
917
+ const clear$1 = state => {
918
918
  return {
919
919
  ...state,
920
920
  searchValue: ''
@@ -926,7 +926,8 @@ const {
926
926
  set: set$1,
927
927
  wrapCommand,
928
928
  getCommandIds,
929
- registerCommands
929
+ registerCommands,
930
+ wrapGetter
930
931
  } = create$2();
931
932
 
932
933
  const create$1 = (id, uri, x, y, width, height) => {
@@ -942,7 +943,9 @@ const create$1 = (id, uri, x, y, width, height) => {
942
943
  height,
943
944
  tabs: [],
944
945
  items: [],
945
- searchValue: ''
946
+ searchValue: '',
947
+ filteredItems: [],
948
+ preferences: {}
946
949
  };
947
950
  set$1(id, state, state);
948
951
  };
@@ -981,6 +984,19 @@ const diff2 = uid => {
981
984
  return diffResult;
982
985
  };
983
986
 
987
+ const getFilteredItems = (items, tabs, searchValue = '') => {
988
+ const selectedTab = tabs.find(tab => tab.selected);
989
+ if (!selectedTab) {
990
+ return items;
991
+ }
992
+ const tabFilteredItems = items.filter(item => item.category === selectedTab.id);
993
+ if (!searchValue.trim()) {
994
+ return tabFilteredItems;
995
+ }
996
+ const normalizedSearchValue = searchValue.toLowerCase().trim();
997
+ return tabFilteredItems.filter(item => item.heading.toLowerCase().includes(normalizedSearchValue));
998
+ };
999
+
984
1000
  const getSelectedTabId = tabs => {
985
1001
  for (const tab of tabs) {
986
1002
  if (tab.selected) {
@@ -989,6 +1005,7 @@ const getSelectedTabId = tabs => {
989
1005
  }
990
1006
  return '';
991
1007
  };
1008
+
992
1009
  const getUpdatedTabs = (tabs, selectedTabId) => {
993
1010
  // Check if the clicked tab is already selected
994
1011
  const clickedTabId = getSelectedTabId(tabs);
@@ -1005,16 +1022,30 @@ const handleClickTab = (state, name) => {
1005
1022
  if (!name) {
1006
1023
  return state;
1007
1024
  }
1025
+ const {
1026
+ items,
1027
+ tabs,
1028
+ searchValue
1029
+ } = state;
1030
+ const updatedTabs = getUpdatedTabs(tabs, name);
1031
+ const filteredItems = getFilteredItems(items, updatedTabs, searchValue);
1008
1032
  return {
1009
1033
  ...state,
1010
- tabs: getUpdatedTabs(state.tabs, name)
1034
+ tabs: updatedTabs,
1035
+ filteredItems
1011
1036
  };
1012
1037
  };
1013
1038
 
1014
1039
  const handleInput = (state, value) => {
1040
+ const {
1041
+ items,
1042
+ tabs
1043
+ } = state;
1044
+ const filteredItems = getFilteredItems(items, tabs, value);
1015
1045
  return {
1016
1046
  ...state,
1017
- searchValue: value
1047
+ searchValue: value,
1048
+ filteredItems
1018
1049
  };
1019
1050
  };
1020
1051
 
@@ -1022,52 +1053,2027 @@ const initialize = async () => {
1022
1053
  // TODO
1023
1054
  };
1024
1055
 
1056
+ const getPreferences = async () => {
1057
+ return {};
1058
+ };
1059
+
1060
+ const ApplicationsTab = 'applications';
1061
+ const Clear$1 = 'Clear';
1062
+ const ExtensionsTab = 'extensions';
1063
+ const FeaturesTab = 'features';
1064
+ const SecurityTab = 'security';
1065
+ const SettingsSearch = 'SettingsSearch';
1066
+ const TextEditorTab = 'text-editor';
1067
+ const WindowTab = 'window';
1068
+ const WorkbenchTab = 'workbench';
1069
+
1025
1070
  const String = 2;
1071
+ const Boolean$1 = 3;
1026
1072
  const Number$1 = 5;
1027
1073
 
1074
+ const emptyObject = {};
1075
+ const RE_PLACEHOLDER = /\{(PH\d+)\}/g;
1076
+ const i18nString = (key, placeholders = emptyObject) => {
1077
+ if (placeholders === emptyObject) {
1078
+ return key;
1079
+ }
1080
+ const replacer = (match, rest) => {
1081
+ return placeholders[rest];
1082
+ };
1083
+ return key.replaceAll(RE_PLACEHOLDER, replacer);
1084
+ };
1085
+
1086
+ const AutoSave = 'Auto Save';
1087
+ const AutoSaveDescription = 'Automatically save files';
1088
+ const AutoUpdateExtensions = 'Auto Update Extensions';
1089
+ const AutoUpdateExtensionsDescription = 'Automatically update extensions';
1090
+ const AutoUpdates = 'Auto Updates';
1091
+ const AutoUpdatesDescription = 'Automatically check for updates';
1092
+ const Clear = 'Clear';
1093
+ const ExtensionRecommendations = 'Extension Recommendations';
1094
+ const ExtensionRecommendationsDescription = 'Show extension recommendations';
1095
+ const FileEncryption = 'File Encryption';
1096
+ const FileEncryptionDescription = 'Encrypt sensitive files';
1097
+ const FontFamily = 'Font Family';
1098
+ const FontFamilyDescription = 'The font family of the editor';
1099
+ const FontSize = 'Font Size';
1100
+ const FontSizeDescription = 'The font size of the editor';
1101
+ const FormatOnSave = 'Format on Save';
1102
+ const FormatOnSaveDescription = 'Format code when saving';
1103
+ const NumberValue = 'number value';
1104
+ const SearchSettings = 'Search Settings';
1105
+ const SettingsContent = 'Settings Content';
1106
+ const SettingsSideBar = 'Settings SideBar';
1107
+ const SidebarPosition = 'Sidebar Position';
1108
+ const SidebarPositionDescription = 'The position of the sidebar';
1109
+ const Telemetry = 'Telemetry';
1110
+ const TelemetryDescription = 'Enable telemetry collection';
1111
+ const Theme = 'Theme';
1112
+ const ThemeDescription = 'The color theme of the workbench';
1113
+ const TwoFactorAuth = 'Two Factor Auth';
1114
+ const TwoFactorAuthDescription = 'Enable two factor authentication';
1115
+ const WindowSize = 'Window Size';
1116
+ const WindowSizeDescription = 'The default window size';
1117
+ const WindowTitle = 'Window Title';
1118
+ const WindowTitleDescription = 'The title shown in the window';
1119
+ const NoSettingsMatching = 'No settings matching "{PH1}" found';
1120
+
1121
+ // Text Editor Settings
1122
+ const WordWrap = 'Word Wrap';
1123
+ const WordWrapDescription = 'Controls how lines should wrap';
1124
+ const LineNumbers = 'Line Numbers';
1125
+ const LineNumbersDescription = 'Controls the display of line numbers';
1126
+ const Minimap = 'Minimap';
1127
+ const MinimapDescription = 'Controls whether the minimap is shown';
1128
+ const ScrollBeyondLastLine = 'Scroll Beyond Last Line';
1129
+ const ScrollBeyondLastLineDescription = 'Controls whether the editor will scroll beyond the last line';
1130
+ const SmoothScrolling = 'Smooth Scrolling';
1131
+ const SmoothScrollingDescription = 'Controls whether the editor will scroll smoothly';
1132
+ const CursorBlinking = 'Cursor Blinking';
1133
+ const CursorBlinkingDescription = 'Controls how the cursor should blink';
1134
+ const CursorStyle = 'Cursor Style';
1135
+ const CursorStyleDescription = 'Controls the cursor style';
1136
+ const CursorWidth = 'Cursor Width';
1137
+ const CursorWidthDescription = 'Controls the width of the cursor';
1138
+ const TabSize = 'Tab Size';
1139
+ const TabSizeDescription = 'The number of spaces a tab is equal to';
1140
+ const InsertSpaces = 'Insert Spaces';
1141
+ const InsertSpacesDescription = 'Insert spaces when pressing Tab';
1142
+ const DetectIndentation = 'Detect Indentation';
1143
+ const DetectIndentationDescription = 'Controls whether the editor will automatically adjust the indentation';
1144
+ const TrimAutoWhitespace = 'Trim Auto Whitespace';
1145
+ const TrimAutoWhitespaceDescription = 'Remove trailing auto inserted whitespace';
1146
+ const LargeFileOptimizations = 'Large File Optimizations';
1147
+ const LargeFileOptimizationsDescription = 'Special handling for large files to disable certain features';
1148
+ const RenderWhitespace = 'Render Whitespace';
1149
+ const RenderWhitespaceDescription = 'Controls how the editor should render whitespace characters';
1150
+ const RenderControlCharacters = 'Render Control Characters';
1151
+ const RenderControlCharactersDescription = 'Controls whether the editor should render control characters';
1152
+ const RenderLineHighlight = 'Render Line Highlight';
1153
+ const RenderLineHighlightDescription = 'Controls how the editor should render the current line highlight';
1154
+ const CodeLens = 'Code Lens';
1155
+ const CodeLensDescription = 'Controls whether the editor shows CodeLens';
1156
+ const Folding = 'Folding';
1157
+ const FoldingDescription = 'Controls whether the editor has code folding enabled';
1158
+ const ShowFoldingControls = 'Show Folding Controls';
1159
+ const ShowFoldingControlsDescription = 'Controls when the folding controls on the gutter are automatically hidden';
1160
+ const UnfoldOnClickAfterEnd = 'Unfold On Click After End';
1161
+ const UnfoldOnClickAfterEndDescription = 'Controls whether clicking on the empty content after a folded line will unfold the line';
1162
+ const Links = 'Links';
1163
+ const LinksDescription = 'Controls whether the editor should detect links and make them clickable';
1164
+ const ColorDecorators = 'Color Decorators';
1165
+ const ColorDecoratorsDescription = 'Controls whether the editor should render the inline color decorators and color picker';
1166
+ const Lightbulb = 'Lightbulb';
1167
+ const LightbulbDescription = 'Controls whether the editor should show the lightbulb code action';
1168
+ const CodeActionsOnSave = 'Code Actions On Save';
1169
+ const CodeActionsOnSaveDescription = 'Code actions to be run on save';
1170
+ const FormatOnPaste = 'Format On Paste';
1171
+ const FormatOnPasteDescription = 'Format a file on paste';
1172
+ const FormatOnType = 'Format On Type';
1173
+ const FormatOnTypeDescription = 'Format a file on type';
1174
+ const AcceptSuggestionOnCommitCharacter = 'Accept Suggestion On Commit Character';
1175
+ const AcceptSuggestionOnCommitCharacterDescription = 'Controls if suggestions should be accepted on commit characters';
1176
+ const AcceptSuggestionOnEnter = 'Accept Suggestion On Enter';
1177
+ const AcceptSuggestionOnEnterDescription = 'Controls if suggestions should be accepted on Enter';
1178
+ const TabCompletion = 'Tab Completion';
1179
+ const TabCompletionDescription = 'Enables tab completions';
1180
+ const WordBasedSuggestions = 'Word Based Suggestions';
1181
+ const WordBasedSuggestionsDescription = 'Controls whether completions should be computed based on words in the document';
1182
+ const SuggestOnTriggerCharacters = 'Suggest On Trigger Characters';
1183
+ const SuggestOnTriggerCharactersDescription = 'Controls whether suggestions should automatically show up when typing trigger characters';
1184
+ const QuickSuggestions = 'Quick Suggestions';
1185
+ const QuickSuggestionsDescription = 'Controls whether suggestions should automatically show up while typing';
1186
+ const ParameterHints = 'Parameter Hints';
1187
+ const ParameterHintsDescription = 'Controls whether the editor should show parameter hints';
1188
+ const AutoClosingBrackets = 'Auto Closing Brackets';
1189
+ const AutoClosingBracketsDescription = 'Controls whether the editor should automatically close brackets after opening them';
1190
+ const AutoClosingQuotes = 'Auto Closing Quotes';
1191
+ const AutoClosingQuotesDescription = 'Controls whether the editor should automatically close quotes after opening them';
1192
+ const AutoClosingOvertype = 'Auto Closing Overtype';
1193
+ const AutoClosingOvertypeDescription = 'Controls whether the editor should type over closing quotes or brackets';
1194
+ const AutoClosingDelete = 'Auto Closing Delete';
1195
+ const AutoClosingDeleteDescription = 'Controls whether the editor should remove adjacent closing quotes or brackets when deleting';
1196
+ const AutoSurround = 'Auto Surround';
1197
+ const AutoSurroundDescription = 'Controls whether the editor should automatically surround selections';
1198
+ const BracketPairColorization = 'Bracket Pair Colorization';
1199
+ const BracketPairColorizationDescription = 'Controls whether the editor should enable bracket pair colorization';
1200
+ const Guides = 'Guides';
1201
+ const GuidesDescription = 'Controls whether the editor should render bracket pair guides';
1202
+ const DragAndDrop = 'Drag And Drop';
1203
+ const DragAndDropDescription = 'Controls whether the editor allows moving selections via drag and drop';
1204
+ const CopyWithSyntaxHighlighting = 'Copy With Syntax Highlighting';
1205
+ const CopyWithSyntaxHighlightingDescription = 'Controls whether syntax highlighting should be copied when copying text';
1206
+ const MultiCursorModifier = 'Multi Cursor Modifier';
1207
+ const MultiCursorModifierDescription = 'The modifier to be used to add multiple cursors with the mouse';
1208
+ const MultiCursorPaste = 'Multi Cursor Paste';
1209
+ const MultiCursorPasteDescription = 'Controls how the editor should handle multiple cursors when pasting';
1210
+ const OccurrencesHighlight = 'Occurrences Highlight';
1211
+ const OccurrencesHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
1212
+ const SelectionHighlight = 'Selection Highlight';
1213
+ const SelectionHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
1214
+ const SemanticHighlighting = 'Semantic Highlighting';
1215
+ const SemanticHighlightingDescription = 'Controls whether the editor should enable semantic highlighting';
1216
+ const TokenColorCustomizations = 'Token Color Customizations';
1217
+ const TokenColorCustomizationsDescription = 'Overrides editor syntax highlighting colors';
1218
+ const WorkbenchColorCustomizations = 'Workbench Color Customizations';
1219
+ const WorkbenchColorCustomizationsDescription = 'Overrides workbench colors';
1220
+ const EditorColorCustomizations = 'Editor Color Customizations';
1221
+ const EditorColorCustomizationsDescription = 'Overrides editor colors';
1222
+ const DiffEditor = 'Diff Editor';
1223
+ const DiffEditorDescription = 'Controls whether the diff editor shows the diff side by side or inline';
1224
+ const DiffWordWrap = 'Diff Word Wrap';
1225
+ const DiffWordWrapDescription = 'Controls whether the diff editor shows the diff side by side or inline';
1226
+ const DiffCodeLens = 'Diff Code Lens';
1227
+ const DiffCodeLensDescription = 'Controls whether the diff editor shows code lens';
1228
+ const DiffRenderSideBySide = 'Diff Render Side By Side';
1229
+ const DiffRenderSideBySideDescription = 'Controls whether the diff editor shows the diff side by side or inline';
1230
+ const DiffIgnoreTrimWhitespace = 'Diff Ignore Trim Whitespace';
1231
+ const DiffIgnoreTrimWhitespaceDescription = 'Controls whether the diff editor ignores changes in whitespace';
1232
+ const DiffRenderIndicators = 'Diff Render Indicators';
1233
+ const DiffRenderIndicatorsDescription = 'Controls whether the diff editor shows indicators';
1234
+ const DiffRenderOverviewRuler = 'Diff Render Overview Ruler';
1235
+ const DiffRenderOverviewRulerDescription = 'Controls whether the diff editor shows the overview ruler';
1236
+ const DiffRenderMarginRevertIcon = 'Diff Render Margin Revert Icon';
1237
+ const DiffRenderMarginRevertIconDescription = 'Controls whether the diff editor shows the revert icon in the margin';
1238
+
1239
+ // Additional Text Editor Settings
1240
+ const InsertMode = 'Insert Mode';
1241
+ const InsertModeDescription = 'Controls whether the editor is in insert mode';
1242
+ const OverwriteMode = 'Overwrite Mode';
1243
+ const OverwriteModeDescription = 'Controls whether the editor is in overwrite mode';
1244
+ const ReadOnly = 'Read Only';
1245
+ const ReadOnlyDescription = 'Controls whether the editor is read only';
1246
+ const AccessibilitySupport = 'Accessibility Support';
1247
+ const AccessibilitySupportDescription = 'Controls whether the editor should run in a mode where it is optimized for screen readers';
1248
+ const AutoIndent = 'Auto Indent';
1249
+ const AutoIndentDescription = 'Controls whether the editor should automatically adjust the indentation';
1250
+ const BracketMatching = 'Bracket Matching';
1251
+ const BracketMatchingDescription = 'Controls whether the editor should highlight matching brackets';
1252
+ const CenteredLayout = 'Centered Layout';
1253
+ const CenteredLayoutDescription = 'Controls whether the editor should use centered layout';
1254
+ const ColumnSelection = 'Column Selection';
1255
+ const ColumnSelectionDescription = 'Controls whether the editor should support column selection';
1256
+ const Contextmenu = 'Context Menu';
1257
+ const ContextmenuDescription = 'Controls whether the editor should show the context menu';
1258
+ const CursorSmoothCaretAnimation = 'Cursor Smooth Caret Animation';
1259
+ const CursorSmoothCaretAnimationDescription = 'Controls whether the cursor should be animated';
1260
+ const CursorSurroundingLines = 'Cursor Surrounding Lines';
1261
+ const CursorSurroundingLinesDescription = 'Controls the number of extra characters beyond which the editor will scroll horizontally';
1262
+ const CursorSurroundingLinesStyle = 'Cursor Surrounding Lines Style';
1263
+ const CursorSurroundingLinesStyleDescription = 'Controls when the cursor should be hidden';
1264
+ const DisableMonospaceOptimizations = 'Disable Monospace Optimizations';
1265
+ const DisableMonospaceOptimizationsDescription = 'Controls whether the editor should disable optimizations for monospace fonts';
1266
+ const EmptySelectionClipboard = 'Empty Selection Clipboard';
1267
+ const EmptySelectionClipboardDescription = 'Controls whether copying without a selection copies the current line';
1268
+ const ExtraEditorClassName = 'Extra Editor Class Name';
1269
+ const ExtraEditorClassNameDescription = 'An extra class name to add to the editor';
1270
+ const FastScrollSensitivity = 'Fast Scroll Sensitivity';
1271
+ const FastScrollSensitivityDescription = 'Scrolling speed multiplier when pressing Alt';
1272
+ const Find = 'Find';
1273
+ const FindDescription = 'Controls whether the editor should add extra space on the bottom';
1274
+ const FixedOverflowWidgets = 'Fixed Overflow Widgets';
1275
+ const FixedOverflowWidgetsDescription = 'Controls whether the editor should scroll beyond the last line';
1276
+ const FoldingStrategy = 'Folding Strategy';
1277
+ const FoldingStrategyDescription = 'Controls the folding strategy';
1278
+ const FontLigatures = 'Font Ligatures';
1279
+ const FontLigaturesDescription = 'Enables/Disables font ligatures';
1280
+ const GlyphMargin = 'Glyph Margin';
1281
+ const GlyphMarginDescription = 'Controls whether the editor should render the vertical glyph margin';
1282
+ const GotoLocation = 'Go To Location';
1283
+ const GotoLocationDescription = "Controls the behavior the 'Go to Definition'-mouse gesture";
1284
+ const HideCursorInOverviewRuler = 'Hide Cursor In Overview Ruler';
1285
+ const HideCursorInOverviewRulerDescription = 'Controls whether the cursor should be hidden in the overview ruler';
1286
+ const Hover = 'Hover';
1287
+ const HoverDescription = 'Controls whether the editor should show hover';
1288
+ const InDiffEditor = 'In Diff Editor';
1289
+ const InDiffEditorDescription = 'Controls whether the editor should be in a diff editor';
1290
+ const LetterSpacing = 'Letter Spacing';
1291
+ const LetterSpacingDescription = 'The letter spacing';
1292
+ const LightbulbEnabled = 'Lightbulb Enabled';
1293
+ const LightbulbEnabledDescription = 'Controls whether the editor should show the lightbulb code action';
1294
+ const LineDecorationsWidth = 'Line Decorations Width';
1295
+ const LineDecorationsWidthDescription = 'The width reserved for line decorations (in px)';
1296
+ const LineHeight = 'Line Height';
1297
+ const LineHeightDescription = 'The line height';
1298
+ const MatchBrackets = 'Match Brackets';
1299
+ const MatchBracketsDescription = 'Controls whether the editor should highlight matching brackets';
1300
+ const MinimapEnabled = 'Minimap Enabled';
1301
+ const MinimapEnabledDescription = 'Controls whether the minimap is shown';
1302
+ const MouseWheelScrollSensitivity = 'Mouse Wheel Scroll Sensitivity';
1303
+ const MouseWheelScrollSensitivityDescription = 'A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events';
1304
+ const MouseWheelZoom = 'Mouse Wheel Zoom';
1305
+ const MouseWheelZoomDescription = 'Zoom the font of the editor when using mouse wheel and holding Ctrl';
1306
+ const MultiCursorMergeOverlapping = 'Multi Cursor Merge Overlapping';
1307
+ const MultiCursorMergeOverlappingDescription = 'Merge overlapping selections';
1308
+ const OverviewRulerBorder = 'Overview Ruler Border';
1309
+ const OverviewRulerBorderDescription = 'Controls whether a border should be drawn around the overview ruler';
1310
+ const OverviewRulerLanes = 'Overview Ruler Lanes';
1311
+ const OverviewRulerLanesDescription = 'Controls the number of decorations that can show in the overview ruler';
1312
+ const PeekWidgetDefaultFocus = 'Peek Widget Default Focus';
1313
+ const PeekWidgetDefaultFocusDescription = 'Controls if the peek widget should be focused by default';
1314
+ const QuickSuggestionsDelay = 'Quick Suggestions Delay';
1315
+ const QuickSuggestionsDelayDescription = 'Controls the delay in milliseconds after which quick suggestions will show up';
1316
+ const RenderFinalNewline = 'Render Final Newline';
1317
+ const RenderFinalNewlineDescription = 'Controls whether the editor should render the final newline as a space';
1318
+ const RenderValidationDecorations = 'Render Validation Decorations';
1319
+ const RenderValidationDecorationsDescription = 'Controls whether the editor should render validation decorations';
1320
+ const RevealHorizontalRightPadding = 'Reveal Horizontal Right Padding';
1321
+ const RevealHorizontalRightPaddingDescription = 'When revealing the cursor, a virtual padding (px) is added to the cursor, turning on a block cursor';
1322
+ const RoundedSelection = 'Rounded Selection';
1323
+ const RoundedSelectionDescription = 'Controls whether selections should have rounded corners';
1324
+ const Rulers = 'Rulers';
1325
+ const RulersDescription = 'Render vertical rulers at a certain number of monospace characters';
1326
+ const ScrollBeyondLastColumn = 'Scroll Beyond Last Column';
1327
+ const ScrollBeyondLastColumnDescription = 'Controls how many characters the editor will scroll horizontally';
1328
+ const Scrollbar = 'Scrollbar';
1329
+ const ScrollbarDescription = 'Controls the visibility and behavior of the scrollbars';
1330
+ const ScrollPredominantAxis = 'Scroll Predominant Axis';
1331
+ const ScrollPredominantAxisDescription = 'Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time';
1332
+ const SelectionClipboard = 'Selection Clipboard';
1333
+ const SelectionClipboardDescription = 'Controls whether the editor should use the CLIPBOARD selection';
1334
+ const ShowUnused = 'Show Unused';
1335
+ const ShowUnusedDescription = 'Controls fading out of unused code';
1336
+ const SnippetSuggestions = 'Snippet Suggestions';
1337
+ const SnippetSuggestionsDescription = 'Controls whether snippets are shown with other suggestions and how they are sorted';
1338
+ const Suggest = 'Suggest';
1339
+ const SuggestDescription = 'Controls whether suggestions should automatically show up while typing';
1340
+ const SuggestFontSize = 'Suggest Font Size';
1341
+ const SuggestFontSizeDescription = 'Font size for the suggest widget';
1342
+ const SuggestLineHeight = 'Suggest Line Height';
1343
+ const SuggestLineHeightDescription = 'Line height for the suggest widget';
1344
+ const SuggestSelection = 'Suggest Selection';
1345
+ const SuggestSelectionDescription = 'Controls how suggestions are selected when showing the suggest widget';
1346
+ const UseTabStops = 'Use Tab Stops';
1347
+ const UseTabStopsDescription = 'Inserting and deleting whitespace follows tab stops';
1348
+ const WordSeparators = 'Word Separators';
1349
+ const WordSeparatorsDescription = 'Characters that will be used as word separators when doing word related navigations or operations';
1350
+ const WrappingIndent = 'Wrapping Indent';
1351
+ const WrappingIndentDescription = 'Controls the indentation of wrapped lines';
1352
+
1353
+ const autoSave = () => {
1354
+ return i18nString(AutoSave);
1355
+ };
1356
+ const autoSaveDescription = () => {
1357
+ return i18nString(AutoSaveDescription);
1358
+ };
1359
+ const autoUpdateExtensions = () => {
1360
+ return i18nString(AutoUpdateExtensions);
1361
+ };
1362
+ const autoUpdateExtensionsDescription = () => {
1363
+ return i18nString(AutoUpdateExtensionsDescription);
1364
+ };
1365
+ const autoUpdates = () => {
1366
+ return i18nString(AutoUpdates);
1367
+ };
1368
+ const autoUpdatesDescription = () => {
1369
+ return i18nString(AutoUpdatesDescription);
1370
+ };
1371
+ const clear = () => {
1372
+ return i18nString(Clear);
1373
+ };
1374
+ const extensionRecommendations = () => {
1375
+ return i18nString(ExtensionRecommendations);
1376
+ };
1377
+ const extensionRecommendationsDescription = () => {
1378
+ return i18nString(ExtensionRecommendationsDescription);
1379
+ };
1380
+ const fileEncryption = () => {
1381
+ return i18nString(FileEncryption);
1382
+ };
1383
+ const fileEncryptionDescription = () => {
1384
+ return i18nString(FileEncryptionDescription);
1385
+ };
1386
+ const fontFamily = () => {
1387
+ return i18nString(FontFamily);
1388
+ };
1389
+ const fontFamilyDescription = () => {
1390
+ return i18nString(FontFamilyDescription);
1391
+ };
1392
+ const fontSize = () => {
1393
+ return i18nString(FontSize);
1394
+ };
1395
+ const fontSizeDescription = () => {
1396
+ return i18nString(FontSizeDescription);
1397
+ };
1398
+ const formatOnSave = () => {
1399
+ return i18nString(FormatOnSave);
1400
+ };
1401
+ const formatOnSaveDescription = () => {
1402
+ return i18nString(FormatOnSaveDescription);
1403
+ };
1404
+ const numberValue = () => {
1405
+ return i18nString(NumberValue);
1406
+ };
1407
+ const searchSettings = () => {
1408
+ return i18nString(SearchSettings);
1409
+ };
1410
+ const settingsContent = () => {
1411
+ return i18nString(SettingsContent);
1412
+ };
1413
+ const settingsSideBar = () => {
1414
+ return i18nString(SettingsSideBar);
1415
+ };
1416
+ const sidebarPosition = () => {
1417
+ return i18nString(SidebarPosition);
1418
+ };
1419
+ const sidebarPositionDescription = () => {
1420
+ return i18nString(SidebarPositionDescription);
1421
+ };
1422
+ const telemetry = () => {
1423
+ return i18nString(Telemetry);
1424
+ };
1425
+ const telemetryDescription = () => {
1426
+ return i18nString(TelemetryDescription);
1427
+ };
1428
+ const theme = () => {
1429
+ return i18nString(Theme);
1430
+ };
1431
+ const themeDescription = () => {
1432
+ return i18nString(ThemeDescription);
1433
+ };
1434
+ const twoFactorAuth = () => {
1435
+ return i18nString(TwoFactorAuth);
1436
+ };
1437
+ const twoFactorAuthDescription = () => {
1438
+ return i18nString(TwoFactorAuthDescription);
1439
+ };
1440
+ const windowSize = () => {
1441
+ return i18nString(WindowSize);
1442
+ };
1443
+ const windowSizeDescription = () => {
1444
+ return i18nString(WindowSizeDescription);
1445
+ };
1446
+ const windowTitle = () => {
1447
+ return i18nString(WindowTitle);
1448
+ };
1449
+ const windowTitleDescription = () => {
1450
+ return i18nString(WindowTitleDescription);
1451
+ };
1452
+ const noSettingsMatching = searchTerm => {
1453
+ return i18nString(NoSettingsMatching, {
1454
+ PH1: searchTerm
1455
+ });
1456
+ };
1457
+
1458
+ // Text Editor Settings
1459
+ const wordWrap = () => {
1460
+ return i18nString(WordWrap);
1461
+ };
1462
+ const wordWrapDescription = () => {
1463
+ return i18nString(WordWrapDescription);
1464
+ };
1465
+ const lineNumbers = () => {
1466
+ return i18nString(LineNumbers);
1467
+ };
1468
+ const lineNumbersDescription = () => {
1469
+ return i18nString(LineNumbersDescription);
1470
+ };
1471
+ const minimap = () => {
1472
+ return i18nString(Minimap);
1473
+ };
1474
+ const minimapDescription = () => {
1475
+ return i18nString(MinimapDescription);
1476
+ };
1477
+ const scrollBeyondLastLine = () => {
1478
+ return i18nString(ScrollBeyondLastLine);
1479
+ };
1480
+ const scrollBeyondLastLineDescription = () => {
1481
+ return i18nString(ScrollBeyondLastLineDescription);
1482
+ };
1483
+ const smoothScrolling = () => {
1484
+ return i18nString(SmoothScrolling);
1485
+ };
1486
+ const smoothScrollingDescription = () => {
1487
+ return i18nString(SmoothScrollingDescription);
1488
+ };
1489
+ const cursorBlinking = () => {
1490
+ return i18nString(CursorBlinking);
1491
+ };
1492
+ const cursorBlinkingDescription = () => {
1493
+ return i18nString(CursorBlinkingDescription);
1494
+ };
1495
+ const cursorStyle = () => {
1496
+ return i18nString(CursorStyle);
1497
+ };
1498
+ const cursorStyleDescription = () => {
1499
+ return i18nString(CursorStyleDescription);
1500
+ };
1501
+ const cursorWidth = () => {
1502
+ return i18nString(CursorWidth);
1503
+ };
1504
+ const cursorWidthDescription = () => {
1505
+ return i18nString(CursorWidthDescription);
1506
+ };
1507
+ const tabSize = () => {
1508
+ return i18nString(TabSize);
1509
+ };
1510
+ const tabSizeDescription = () => {
1511
+ return i18nString(TabSizeDescription);
1512
+ };
1513
+ const insertSpaces = () => {
1514
+ return i18nString(InsertSpaces);
1515
+ };
1516
+ const insertSpacesDescription = () => {
1517
+ return i18nString(InsertSpacesDescription);
1518
+ };
1519
+ const detectIndentation = () => {
1520
+ return i18nString(DetectIndentation);
1521
+ };
1522
+ const detectIndentationDescription = () => {
1523
+ return i18nString(DetectIndentationDescription);
1524
+ };
1525
+ const trimAutoWhitespace = () => {
1526
+ return i18nString(TrimAutoWhitespace);
1527
+ };
1528
+ const trimAutoWhitespaceDescription = () => {
1529
+ return i18nString(TrimAutoWhitespaceDescription);
1530
+ };
1531
+ const largeFileOptimizations = () => {
1532
+ return i18nString(LargeFileOptimizations);
1533
+ };
1534
+ const largeFileOptimizationsDescription = () => {
1535
+ return i18nString(LargeFileOptimizationsDescription);
1536
+ };
1537
+ const renderWhitespace = () => {
1538
+ return i18nString(RenderWhitespace);
1539
+ };
1540
+ const renderWhitespaceDescription = () => {
1541
+ return i18nString(RenderWhitespaceDescription);
1542
+ };
1543
+ const renderControlCharacters = () => {
1544
+ return i18nString(RenderControlCharacters);
1545
+ };
1546
+ const renderControlCharactersDescription = () => {
1547
+ return i18nString(RenderControlCharactersDescription);
1548
+ };
1549
+ const renderLineHighlight = () => {
1550
+ return i18nString(RenderLineHighlight);
1551
+ };
1552
+ const renderLineHighlightDescription = () => {
1553
+ return i18nString(RenderLineHighlightDescription);
1554
+ };
1555
+ const codeLens = () => {
1556
+ return i18nString(CodeLens);
1557
+ };
1558
+ const codeLensDescription = () => {
1559
+ return i18nString(CodeLensDescription);
1560
+ };
1561
+ const folding = () => {
1562
+ return i18nString(Folding);
1563
+ };
1564
+ const foldingDescription = () => {
1565
+ return i18nString(FoldingDescription);
1566
+ };
1567
+ const showFoldingControls = () => {
1568
+ return i18nString(ShowFoldingControls);
1569
+ };
1570
+ const showFoldingControlsDescription = () => {
1571
+ return i18nString(ShowFoldingControlsDescription);
1572
+ };
1573
+ const unfoldOnClickAfterEnd = () => {
1574
+ return i18nString(UnfoldOnClickAfterEnd);
1575
+ };
1576
+ const unfoldOnClickAfterEndDescription = () => {
1577
+ return i18nString(UnfoldOnClickAfterEndDescription);
1578
+ };
1579
+ const links = () => {
1580
+ return i18nString(Links);
1581
+ };
1582
+ const linksDescription = () => {
1583
+ return i18nString(LinksDescription);
1584
+ };
1585
+ const colorDecorators = () => {
1586
+ return i18nString(ColorDecorators);
1587
+ };
1588
+ const colorDecoratorsDescription = () => {
1589
+ return i18nString(ColorDecoratorsDescription);
1590
+ };
1591
+ const lightbulb = () => {
1592
+ return i18nString(Lightbulb);
1593
+ };
1594
+ const lightbulbDescription = () => {
1595
+ return i18nString(LightbulbDescription);
1596
+ };
1597
+ const codeActionsOnSave = () => {
1598
+ return i18nString(CodeActionsOnSave);
1599
+ };
1600
+ const codeActionsOnSaveDescription = () => {
1601
+ return i18nString(CodeActionsOnSaveDescription);
1602
+ };
1603
+ const formatOnPaste = () => {
1604
+ return i18nString(FormatOnPaste);
1605
+ };
1606
+ const formatOnPasteDescription = () => {
1607
+ return i18nString(FormatOnPasteDescription);
1608
+ };
1609
+ const formatOnType = () => {
1610
+ return i18nString(FormatOnType);
1611
+ };
1612
+ const formatOnTypeDescription = () => {
1613
+ return i18nString(FormatOnTypeDescription);
1614
+ };
1615
+ const acceptSuggestionOnCommitCharacter = () => {
1616
+ return i18nString(AcceptSuggestionOnCommitCharacter);
1617
+ };
1618
+ const acceptSuggestionOnCommitCharacterDescription = () => {
1619
+ return i18nString(AcceptSuggestionOnCommitCharacterDescription);
1620
+ };
1621
+ const acceptSuggestionOnEnter = () => {
1622
+ return i18nString(AcceptSuggestionOnEnter);
1623
+ };
1624
+ const acceptSuggestionOnEnterDescription = () => {
1625
+ return i18nString(AcceptSuggestionOnEnterDescription);
1626
+ };
1627
+ const tabCompletion = () => {
1628
+ return i18nString(TabCompletion);
1629
+ };
1630
+ const tabCompletionDescription = () => {
1631
+ return i18nString(TabCompletionDescription);
1632
+ };
1633
+ const wordBasedSuggestions = () => {
1634
+ return i18nString(WordBasedSuggestions);
1635
+ };
1636
+ const wordBasedSuggestionsDescription = () => {
1637
+ return i18nString(WordBasedSuggestionsDescription);
1638
+ };
1639
+ const suggestOnTriggerCharacters = () => {
1640
+ return i18nString(SuggestOnTriggerCharacters);
1641
+ };
1642
+ const suggestOnTriggerCharactersDescription = () => {
1643
+ return i18nString(SuggestOnTriggerCharactersDescription);
1644
+ };
1645
+ const quickSuggestions = () => {
1646
+ return i18nString(QuickSuggestions);
1647
+ };
1648
+ const quickSuggestionsDescription = () => {
1649
+ return i18nString(QuickSuggestionsDescription);
1650
+ };
1651
+ const parameterHints = () => {
1652
+ return i18nString(ParameterHints);
1653
+ };
1654
+ const parameterHintsDescription = () => {
1655
+ return i18nString(ParameterHintsDescription);
1656
+ };
1657
+ const autoClosingBrackets = () => {
1658
+ return i18nString(AutoClosingBrackets);
1659
+ };
1660
+ const autoClosingBracketsDescription = () => {
1661
+ return i18nString(AutoClosingBracketsDescription);
1662
+ };
1663
+ const autoClosingQuotes = () => {
1664
+ return i18nString(AutoClosingQuotes);
1665
+ };
1666
+ const autoClosingQuotesDescription = () => {
1667
+ return i18nString(AutoClosingQuotesDescription);
1668
+ };
1669
+ const autoClosingOvertype = () => {
1670
+ return i18nString(AutoClosingOvertype);
1671
+ };
1672
+ const autoClosingOvertypeDescription = () => {
1673
+ return i18nString(AutoClosingOvertypeDescription);
1674
+ };
1675
+ const autoClosingDelete = () => {
1676
+ return i18nString(AutoClosingDelete);
1677
+ };
1678
+ const autoClosingDeleteDescription = () => {
1679
+ return i18nString(AutoClosingDeleteDescription);
1680
+ };
1681
+ const autoSurround = () => {
1682
+ return i18nString(AutoSurround);
1683
+ };
1684
+ const autoSurroundDescription = () => {
1685
+ return i18nString(AutoSurroundDescription);
1686
+ };
1687
+ const bracketPairColorization = () => {
1688
+ return i18nString(BracketPairColorization);
1689
+ };
1690
+ const bracketPairColorizationDescription = () => {
1691
+ return i18nString(BracketPairColorizationDescription);
1692
+ };
1693
+ const guides = () => {
1694
+ return i18nString(Guides);
1695
+ };
1696
+ const guidesDescription = () => {
1697
+ return i18nString(GuidesDescription);
1698
+ };
1699
+ const dragAndDrop = () => {
1700
+ return i18nString(DragAndDrop);
1701
+ };
1702
+ const dragAndDropDescription = () => {
1703
+ return i18nString(DragAndDropDescription);
1704
+ };
1705
+ const copyWithSyntaxHighlighting = () => {
1706
+ return i18nString(CopyWithSyntaxHighlighting);
1707
+ };
1708
+ const copyWithSyntaxHighlightingDescription = () => {
1709
+ return i18nString(CopyWithSyntaxHighlightingDescription);
1710
+ };
1711
+ const multiCursorModifier = () => {
1712
+ return i18nString(MultiCursorModifier);
1713
+ };
1714
+ const multiCursorModifierDescription = () => {
1715
+ return i18nString(MultiCursorModifierDescription);
1716
+ };
1717
+ const multiCursorPaste = () => {
1718
+ return i18nString(MultiCursorPaste);
1719
+ };
1720
+ const multiCursorPasteDescription = () => {
1721
+ return i18nString(MultiCursorPasteDescription);
1722
+ };
1723
+ const occurrencesHighlight = () => {
1724
+ return i18nString(OccurrencesHighlight);
1725
+ };
1726
+ const occurrencesHighlightDescription = () => {
1727
+ return i18nString(OccurrencesHighlightDescription);
1728
+ };
1729
+ const selectionHighlight = () => {
1730
+ return i18nString(SelectionHighlight);
1731
+ };
1732
+ const selectionHighlightDescription = () => {
1733
+ return i18nString(SelectionHighlightDescription);
1734
+ };
1735
+ const semanticHighlighting = () => {
1736
+ return i18nString(SemanticHighlighting);
1737
+ };
1738
+ const semanticHighlightingDescription = () => {
1739
+ return i18nString(SemanticHighlightingDescription);
1740
+ };
1741
+ const tokenColorCustomizations = () => {
1742
+ return i18nString(TokenColorCustomizations);
1743
+ };
1744
+ const tokenColorCustomizationsDescription = () => {
1745
+ return i18nString(TokenColorCustomizationsDescription);
1746
+ };
1747
+ const workbenchColorCustomizations = () => {
1748
+ return i18nString(WorkbenchColorCustomizations);
1749
+ };
1750
+ const workbenchColorCustomizationsDescription = () => {
1751
+ return i18nString(WorkbenchColorCustomizationsDescription);
1752
+ };
1753
+ const editorColorCustomizations = () => {
1754
+ return i18nString(EditorColorCustomizations);
1755
+ };
1756
+ const editorColorCustomizationsDescription = () => {
1757
+ return i18nString(EditorColorCustomizationsDescription);
1758
+ };
1759
+ const diffEditor = () => {
1760
+ return i18nString(DiffEditor);
1761
+ };
1762
+ const diffEditorDescription = () => {
1763
+ return i18nString(DiffEditorDescription);
1764
+ };
1765
+ const diffWordWrap = () => {
1766
+ return i18nString(DiffWordWrap);
1767
+ };
1768
+ const diffWordWrapDescription = () => {
1769
+ return i18nString(DiffWordWrapDescription);
1770
+ };
1771
+ const diffCodeLens = () => {
1772
+ return i18nString(DiffCodeLens);
1773
+ };
1774
+ const diffCodeLensDescription = () => {
1775
+ return i18nString(DiffCodeLensDescription);
1776
+ };
1777
+ const diffRenderSideBySide = () => {
1778
+ return i18nString(DiffRenderSideBySide);
1779
+ };
1780
+ const diffRenderSideBySideDescription = () => {
1781
+ return i18nString(DiffRenderSideBySideDescription);
1782
+ };
1783
+ const diffIgnoreTrimWhitespace = () => {
1784
+ return i18nString(DiffIgnoreTrimWhitespace);
1785
+ };
1786
+ const diffIgnoreTrimWhitespaceDescription = () => {
1787
+ return i18nString(DiffIgnoreTrimWhitespaceDescription);
1788
+ };
1789
+ const diffRenderIndicators = () => {
1790
+ return i18nString(DiffRenderIndicators);
1791
+ };
1792
+ const diffRenderIndicatorsDescription = () => {
1793
+ return i18nString(DiffRenderIndicatorsDescription);
1794
+ };
1795
+ const diffRenderOverviewRuler = () => {
1796
+ return i18nString(DiffRenderOverviewRuler);
1797
+ };
1798
+ const diffRenderOverviewRulerDescription = () => {
1799
+ return i18nString(DiffRenderOverviewRulerDescription);
1800
+ };
1801
+ const diffRenderMarginRevertIcon = () => {
1802
+ return i18nString(DiffRenderMarginRevertIcon);
1803
+ };
1804
+ const diffRenderMarginRevertIconDescription = () => {
1805
+ return i18nString(DiffRenderMarginRevertIconDescription);
1806
+ };
1807
+
1808
+ // Additional Text Editor Settings
1809
+ const insertMode = () => {
1810
+ return i18nString(InsertMode);
1811
+ };
1812
+ const insertModeDescription = () => {
1813
+ return i18nString(InsertModeDescription);
1814
+ };
1815
+ const overwriteMode = () => {
1816
+ return i18nString(OverwriteMode);
1817
+ };
1818
+ const overwriteModeDescription = () => {
1819
+ return i18nString(OverwriteModeDescription);
1820
+ };
1821
+ const readOnly = () => {
1822
+ return i18nString(ReadOnly);
1823
+ };
1824
+ const readOnlyDescription = () => {
1825
+ return i18nString(ReadOnlyDescription);
1826
+ };
1827
+ const accessibilitySupport = () => {
1828
+ return i18nString(AccessibilitySupport);
1829
+ };
1830
+ const accessibilitySupportDescription = () => {
1831
+ return i18nString(AccessibilitySupportDescription);
1832
+ };
1833
+ const autoIndent = () => {
1834
+ return i18nString(AutoIndent);
1835
+ };
1836
+ const autoIndentDescription = () => {
1837
+ return i18nString(AutoIndentDescription);
1838
+ };
1839
+ const bracketMatching = () => {
1840
+ return i18nString(BracketMatching);
1841
+ };
1842
+ const bracketMatchingDescription = () => {
1843
+ return i18nString(BracketMatchingDescription);
1844
+ };
1845
+ const centeredLayout = () => {
1846
+ return i18nString(CenteredLayout);
1847
+ };
1848
+ const centeredLayoutDescription = () => {
1849
+ return i18nString(CenteredLayoutDescription);
1850
+ };
1851
+ const columnSelection = () => {
1852
+ return i18nString(ColumnSelection);
1853
+ };
1854
+ const columnSelectionDescription = () => {
1855
+ return i18nString(ColumnSelectionDescription);
1856
+ };
1857
+ const contextmenu = () => {
1858
+ return i18nString(Contextmenu);
1859
+ };
1860
+ const contextmenuDescription = () => {
1861
+ return i18nString(ContextmenuDescription);
1862
+ };
1863
+ const cursorSmoothCaretAnimation = () => {
1864
+ return i18nString(CursorSmoothCaretAnimation);
1865
+ };
1866
+ const cursorSmoothCaretAnimationDescription = () => {
1867
+ return i18nString(CursorSmoothCaretAnimationDescription);
1868
+ };
1869
+ const cursorSurroundingLines = () => {
1870
+ return i18nString(CursorSurroundingLines);
1871
+ };
1872
+ const cursorSurroundingLinesDescription = () => {
1873
+ return i18nString(CursorSurroundingLinesDescription);
1874
+ };
1875
+ const cursorSurroundingLinesStyle = () => {
1876
+ return i18nString(CursorSurroundingLinesStyle);
1877
+ };
1878
+ const cursorSurroundingLinesStyleDescription = () => {
1879
+ return i18nString(CursorSurroundingLinesStyleDescription);
1880
+ };
1881
+ const disableMonospaceOptimizations = () => {
1882
+ return i18nString(DisableMonospaceOptimizations);
1883
+ };
1884
+ const disableMonospaceOptimizationsDescription = () => {
1885
+ return i18nString(DisableMonospaceOptimizationsDescription);
1886
+ };
1887
+ const emptySelectionClipboard = () => {
1888
+ return i18nString(EmptySelectionClipboard);
1889
+ };
1890
+ const emptySelectionClipboardDescription = () => {
1891
+ return i18nString(EmptySelectionClipboardDescription);
1892
+ };
1893
+ const extraEditorClassName = () => {
1894
+ return i18nString(ExtraEditorClassName);
1895
+ };
1896
+ const extraEditorClassNameDescription = () => {
1897
+ return i18nString(ExtraEditorClassNameDescription);
1898
+ };
1899
+ const fastScrollSensitivity = () => {
1900
+ return i18nString(FastScrollSensitivity);
1901
+ };
1902
+ const fastScrollSensitivityDescription = () => {
1903
+ return i18nString(FastScrollSensitivityDescription);
1904
+ };
1905
+ const find = () => {
1906
+ return i18nString(Find);
1907
+ };
1908
+ const findDescription = () => {
1909
+ return i18nString(FindDescription);
1910
+ };
1911
+ const fixedOverflowWidgets = () => {
1912
+ return i18nString(FixedOverflowWidgets);
1913
+ };
1914
+ const fixedOverflowWidgetsDescription = () => {
1915
+ return i18nString(FixedOverflowWidgetsDescription);
1916
+ };
1917
+ const foldingStrategy = () => {
1918
+ return i18nString(FoldingStrategy);
1919
+ };
1920
+ const foldingStrategyDescription = () => {
1921
+ return i18nString(FoldingStrategyDescription);
1922
+ };
1923
+ const fontLigatures = () => {
1924
+ return i18nString(FontLigatures);
1925
+ };
1926
+ const fontLigaturesDescription = () => {
1927
+ return i18nString(FontLigaturesDescription);
1928
+ };
1929
+ const glyphMargin = () => {
1930
+ return i18nString(GlyphMargin);
1931
+ };
1932
+ const glyphMarginDescription = () => {
1933
+ return i18nString(GlyphMarginDescription);
1934
+ };
1935
+ const gotoLocation = () => {
1936
+ return i18nString(GotoLocation);
1937
+ };
1938
+ const gotoLocationDescription = () => {
1939
+ return i18nString(GotoLocationDescription);
1940
+ };
1941
+ const hideCursorInOverviewRuler = () => {
1942
+ return i18nString(HideCursorInOverviewRuler);
1943
+ };
1944
+ const hideCursorInOverviewRulerDescription = () => {
1945
+ return i18nString(HideCursorInOverviewRulerDescription);
1946
+ };
1947
+ const hover = () => {
1948
+ return i18nString(Hover);
1949
+ };
1950
+ const hoverDescription = () => {
1951
+ return i18nString(HoverDescription);
1952
+ };
1953
+ const inDiffEditor = () => {
1954
+ return i18nString(InDiffEditor);
1955
+ };
1956
+ const inDiffEditorDescription = () => {
1957
+ return i18nString(InDiffEditorDescription);
1958
+ };
1959
+ const letterSpacing = () => {
1960
+ return i18nString(LetterSpacing);
1961
+ };
1962
+ const letterSpacingDescription = () => {
1963
+ return i18nString(LetterSpacingDescription);
1964
+ };
1965
+ const lightbulbEnabled = () => {
1966
+ return i18nString(LightbulbEnabled);
1967
+ };
1968
+ const lightbulbEnabledDescription = () => {
1969
+ return i18nString(LightbulbEnabledDescription);
1970
+ };
1971
+ const lineDecorationsWidth = () => {
1972
+ return i18nString(LineDecorationsWidth);
1973
+ };
1974
+ const lineDecorationsWidthDescription = () => {
1975
+ return i18nString(LineDecorationsWidthDescription);
1976
+ };
1977
+ const lineHeight = () => {
1978
+ return i18nString(LineHeight);
1979
+ };
1980
+ const lineHeightDescription = () => {
1981
+ return i18nString(LineHeightDescription);
1982
+ };
1983
+ const matchBrackets = () => {
1984
+ return i18nString(MatchBrackets);
1985
+ };
1986
+ const matchBracketsDescription = () => {
1987
+ return i18nString(MatchBracketsDescription);
1988
+ };
1989
+ const minimapEnabled = () => {
1990
+ return i18nString(MinimapEnabled);
1991
+ };
1992
+ const minimapEnabledDescription = () => {
1993
+ return i18nString(MinimapEnabledDescription);
1994
+ };
1995
+ const mouseWheelScrollSensitivity = () => {
1996
+ return i18nString(MouseWheelScrollSensitivity);
1997
+ };
1998
+ const mouseWheelScrollSensitivityDescription = () => {
1999
+ return i18nString(MouseWheelScrollSensitivityDescription);
2000
+ };
2001
+ const mouseWheelZoom = () => {
2002
+ return i18nString(MouseWheelZoom);
2003
+ };
2004
+ const mouseWheelZoomDescription = () => {
2005
+ return i18nString(MouseWheelZoomDescription);
2006
+ };
2007
+ const multiCursorMergeOverlapping = () => {
2008
+ return i18nString(MultiCursorMergeOverlapping);
2009
+ };
2010
+ const multiCursorMergeOverlappingDescription = () => {
2011
+ return i18nString(MultiCursorMergeOverlappingDescription);
2012
+ };
2013
+ const overviewRulerBorder = () => {
2014
+ return i18nString(OverviewRulerBorder);
2015
+ };
2016
+ const overviewRulerBorderDescription = () => {
2017
+ return i18nString(OverviewRulerBorderDescription);
2018
+ };
2019
+ const overviewRulerLanes = () => {
2020
+ return i18nString(OverviewRulerLanes);
2021
+ };
2022
+ const overviewRulerLanesDescription = () => {
2023
+ return i18nString(OverviewRulerLanesDescription);
2024
+ };
2025
+ const peekWidgetDefaultFocus = () => {
2026
+ return i18nString(PeekWidgetDefaultFocus);
2027
+ };
2028
+ const peekWidgetDefaultFocusDescription = () => {
2029
+ return i18nString(PeekWidgetDefaultFocusDescription);
2030
+ };
2031
+ const quickSuggestionsDelay = () => {
2032
+ return i18nString(QuickSuggestionsDelay);
2033
+ };
2034
+ const quickSuggestionsDelayDescription = () => {
2035
+ return i18nString(QuickSuggestionsDelayDescription);
2036
+ };
2037
+ const renderFinalNewline = () => {
2038
+ return i18nString(RenderFinalNewline);
2039
+ };
2040
+ const renderFinalNewlineDescription = () => {
2041
+ return i18nString(RenderFinalNewlineDescription);
2042
+ };
2043
+ const renderValidationDecorations = () => {
2044
+ return i18nString(RenderValidationDecorations);
2045
+ };
2046
+ const renderValidationDecorationsDescription = () => {
2047
+ return i18nString(RenderValidationDecorationsDescription);
2048
+ };
2049
+ const revealHorizontalRightPadding = () => {
2050
+ return i18nString(RevealHorizontalRightPadding);
2051
+ };
2052
+ const revealHorizontalRightPaddingDescription = () => {
2053
+ return i18nString(RevealHorizontalRightPaddingDescription);
2054
+ };
2055
+ const roundedSelection = () => {
2056
+ return i18nString(RoundedSelection);
2057
+ };
2058
+ const roundedSelectionDescription = () => {
2059
+ return i18nString(RoundedSelectionDescription);
2060
+ };
2061
+ const rulers = () => {
2062
+ return i18nString(Rulers);
2063
+ };
2064
+ const rulersDescription = () => {
2065
+ return i18nString(RulersDescription);
2066
+ };
2067
+ const scrollBeyondLastColumn = () => {
2068
+ return i18nString(ScrollBeyondLastColumn);
2069
+ };
2070
+ const scrollBeyondLastColumnDescription = () => {
2071
+ return i18nString(ScrollBeyondLastColumnDescription);
2072
+ };
2073
+ const scrollbar = () => {
2074
+ return i18nString(Scrollbar);
2075
+ };
2076
+ const scrollbarDescription = () => {
2077
+ return i18nString(ScrollbarDescription);
2078
+ };
2079
+ const scrollPredominantAxis = () => {
2080
+ return i18nString(ScrollPredominantAxis);
2081
+ };
2082
+ const scrollPredominantAxisDescription = () => {
2083
+ return i18nString(ScrollPredominantAxisDescription);
2084
+ };
2085
+ const selectionClipboard = () => {
2086
+ return i18nString(SelectionClipboard);
2087
+ };
2088
+ const selectionClipboardDescription = () => {
2089
+ return i18nString(SelectionClipboardDescription);
2090
+ };
2091
+ const showUnused = () => {
2092
+ return i18nString(ShowUnused);
2093
+ };
2094
+ const showUnusedDescription = () => {
2095
+ return i18nString(ShowUnusedDescription);
2096
+ };
2097
+ const snippetSuggestions = () => {
2098
+ return i18nString(SnippetSuggestions);
2099
+ };
2100
+ const snippetSuggestionsDescription = () => {
2101
+ return i18nString(SnippetSuggestionsDescription);
2102
+ };
2103
+ const suggest = () => {
2104
+ return i18nString(Suggest);
2105
+ };
2106
+ const suggestDescription = () => {
2107
+ return i18nString(SuggestDescription);
2108
+ };
2109
+ const suggestFontSize = () => {
2110
+ return i18nString(SuggestFontSize);
2111
+ };
2112
+ const suggestFontSizeDescription = () => {
2113
+ return i18nString(SuggestFontSizeDescription);
2114
+ };
2115
+ const suggestLineHeight = () => {
2116
+ return i18nString(SuggestLineHeight);
2117
+ };
2118
+ const suggestLineHeightDescription = () => {
2119
+ return i18nString(SuggestLineHeightDescription);
2120
+ };
2121
+ const suggestSelection = () => {
2122
+ return i18nString(SuggestSelection);
2123
+ };
2124
+ const suggestSelectionDescription = () => {
2125
+ return i18nString(SuggestSelectionDescription);
2126
+ };
2127
+ const useTabStops = () => {
2128
+ return i18nString(UseTabStops);
2129
+ };
2130
+ const useTabStopsDescription = () => {
2131
+ return i18nString(UseTabStopsDescription);
2132
+ };
2133
+ const wordSeparators = () => {
2134
+ return i18nString(WordSeparators);
2135
+ };
2136
+ const wordSeparatorsDescription = () => {
2137
+ return i18nString(WordSeparatorsDescription);
2138
+ };
2139
+ const wrappingIndent = () => {
2140
+ return i18nString(WrappingIndent);
2141
+ };
2142
+ const wrappingIndentDescription = () => {
2143
+ return i18nString(WrappingIndentDescription);
2144
+ };
2145
+
1028
2146
  const getSettingItems = async () => {
1029
2147
  return [{
1030
2148
  id: 'fontSize',
1031
- heading: 'Font Size',
1032
- description: 'The font size of the editor',
2149
+ heading: fontSize(),
2150
+ description: fontSizeDescription(),
1033
2151
  type: Number$1,
1034
- value: '15px'
2152
+ value: '15px',
2153
+ category: TextEditorTab
1035
2154
  }, {
1036
2155
  id: 'fontFamily',
1037
- heading: 'Font Family',
1038
- description: 'The font family of the editor',
2156
+ heading: fontFamily(),
2157
+ description: fontFamilyDescription(),
2158
+ type: String,
2159
+ value: 'Fira Code',
2160
+ category: TextEditorTab
2161
+ },
2162
+ // Text Editor Settings
2163
+ {
2164
+ id: 'wordWrap',
2165
+ heading: wordWrap(),
2166
+ description: wordWrapDescription(),
2167
+ type: String,
2168
+ value: 'off',
2169
+ category: TextEditorTab
2170
+ }, {
2171
+ id: 'lineNumbers',
2172
+ heading: lineNumbers(),
2173
+ description: lineNumbersDescription(),
2174
+ type: String,
2175
+ value: 'on',
2176
+ category: TextEditorTab
2177
+ }, {
2178
+ id: 'minimap',
2179
+ heading: minimap(),
2180
+ description: minimapDescription(),
2181
+ type: Boolean$1,
2182
+ value: 'true',
2183
+ category: TextEditorTab
2184
+ }, {
2185
+ id: 'scrollBeyondLastLine',
2186
+ heading: scrollBeyondLastLine(),
2187
+ description: scrollBeyondLastLineDescription(),
2188
+ type: Boolean$1,
2189
+ value: 'false',
2190
+ category: TextEditorTab
2191
+ }, {
2192
+ id: 'smoothScrolling',
2193
+ heading: smoothScrolling(),
2194
+ description: smoothScrollingDescription(),
2195
+ type: Boolean$1,
2196
+ value: 'true',
2197
+ category: TextEditorTab
2198
+ }, {
2199
+ id: 'cursorBlinking',
2200
+ heading: cursorBlinking(),
2201
+ description: cursorBlinkingDescription(),
2202
+ type: String,
2203
+ value: 'blink',
2204
+ category: TextEditorTab
2205
+ }, {
2206
+ id: 'cursorStyle',
2207
+ heading: cursorStyle(),
2208
+ description: cursorStyleDescription(),
2209
+ type: String,
2210
+ value: 'line',
2211
+ category: TextEditorTab
2212
+ }, {
2213
+ id: 'cursorWidth',
2214
+ heading: cursorWidth(),
2215
+ description: cursorWidthDescription(),
2216
+ type: Number$1,
2217
+ value: '0',
2218
+ category: TextEditorTab
2219
+ }, {
2220
+ id: 'tabSize',
2221
+ heading: tabSize(),
2222
+ description: tabSizeDescription(),
2223
+ type: Number$1,
2224
+ value: '4',
2225
+ category: TextEditorTab
2226
+ }, {
2227
+ id: 'insertSpaces',
2228
+ heading: insertSpaces(),
2229
+ description: insertSpacesDescription(),
2230
+ type: Boolean$1,
2231
+ value: 'true',
2232
+ category: TextEditorTab
2233
+ }, {
2234
+ id: 'detectIndentation',
2235
+ heading: detectIndentation(),
2236
+ description: detectIndentationDescription(),
2237
+ type: Boolean$1,
2238
+ value: 'true',
2239
+ category: TextEditorTab
2240
+ }, {
2241
+ id: 'trimAutoWhitespace',
2242
+ heading: trimAutoWhitespace(),
2243
+ description: trimAutoWhitespaceDescription(),
2244
+ type: Boolean$1,
2245
+ value: 'true',
2246
+ category: TextEditorTab
2247
+ }, {
2248
+ id: 'largeFileOptimizations',
2249
+ heading: largeFileOptimizations(),
2250
+ description: largeFileOptimizationsDescription(),
2251
+ type: Boolean$1,
2252
+ value: 'true',
2253
+ category: TextEditorTab
2254
+ }, {
2255
+ id: 'renderWhitespace',
2256
+ heading: renderWhitespace(),
2257
+ description: renderWhitespaceDescription(),
2258
+ type: String,
2259
+ value: 'selection',
2260
+ category: TextEditorTab
2261
+ }, {
2262
+ id: 'renderControlCharacters',
2263
+ heading: renderControlCharacters(),
2264
+ description: renderControlCharactersDescription(),
2265
+ type: Boolean$1,
2266
+ value: 'false',
2267
+ category: TextEditorTab
2268
+ }, {
2269
+ id: 'renderLineHighlight',
2270
+ heading: renderLineHighlight(),
2271
+ description: renderLineHighlightDescription(),
2272
+ type: String,
2273
+ value: 'line',
2274
+ category: TextEditorTab
2275
+ }, {
2276
+ id: 'codeLens',
2277
+ heading: codeLens(),
2278
+ description: codeLensDescription(),
2279
+ type: Boolean$1,
2280
+ value: 'true',
2281
+ category: TextEditorTab
2282
+ }, {
2283
+ id: 'folding',
2284
+ heading: folding(),
2285
+ description: foldingDescription(),
2286
+ type: Boolean$1,
2287
+ value: 'true',
2288
+ category: TextEditorTab
2289
+ }, {
2290
+ id: 'showFoldingControls',
2291
+ heading: showFoldingControls(),
2292
+ description: showFoldingControlsDescription(),
2293
+ type: String,
2294
+ value: 'mouseover',
2295
+ category: TextEditorTab
2296
+ }, {
2297
+ id: 'unfoldOnClickAfterEnd',
2298
+ heading: unfoldOnClickAfterEnd(),
2299
+ description: unfoldOnClickAfterEndDescription(),
2300
+ type: Boolean$1,
2301
+ value: 'false',
2302
+ category: TextEditorTab
2303
+ }, {
2304
+ id: 'links',
2305
+ heading: links(),
2306
+ description: linksDescription(),
2307
+ type: Boolean$1,
2308
+ value: 'true',
2309
+ category: TextEditorTab
2310
+ }, {
2311
+ id: 'colorDecorators',
2312
+ heading: colorDecorators(),
2313
+ description: colorDecoratorsDescription(),
2314
+ type: Boolean$1,
2315
+ value: 'true',
2316
+ category: TextEditorTab
2317
+ }, {
2318
+ id: 'lightbulb',
2319
+ heading: lightbulb(),
2320
+ description: lightbulbDescription(),
2321
+ type: Boolean$1,
2322
+ value: 'true',
2323
+ category: TextEditorTab
2324
+ }, {
2325
+ id: 'codeActionsOnSave',
2326
+ heading: codeActionsOnSave(),
2327
+ description: codeActionsOnSaveDescription(),
2328
+ type: Boolean$1,
2329
+ value: 'false',
2330
+ category: TextEditorTab
2331
+ }, {
2332
+ id: 'formatOnPaste',
2333
+ heading: formatOnPaste(),
2334
+ description: formatOnPasteDescription(),
2335
+ type: Boolean$1,
2336
+ value: 'false',
2337
+ category: TextEditorTab
2338
+ }, {
2339
+ id: 'formatOnType',
2340
+ heading: formatOnType(),
2341
+ description: formatOnTypeDescription(),
2342
+ type: Boolean$1,
2343
+ value: 'false',
2344
+ category: TextEditorTab
2345
+ }, {
2346
+ id: 'acceptSuggestionOnCommitCharacter',
2347
+ heading: acceptSuggestionOnCommitCharacter(),
2348
+ description: acceptSuggestionOnCommitCharacterDescription(),
2349
+ type: Boolean$1,
2350
+ value: 'true',
2351
+ category: TextEditorTab
2352
+ }, {
2353
+ id: 'acceptSuggestionOnEnter',
2354
+ heading: acceptSuggestionOnEnter(),
2355
+ description: acceptSuggestionOnEnterDescription(),
2356
+ type: String,
2357
+ value: 'on',
2358
+ category: TextEditorTab
2359
+ }, {
2360
+ id: 'tabCompletion',
2361
+ heading: tabCompletion(),
2362
+ description: tabCompletionDescription(),
2363
+ type: String,
2364
+ value: 'on',
2365
+ category: TextEditorTab
2366
+ }, {
2367
+ id: 'wordBasedSuggestions',
2368
+ heading: wordBasedSuggestions(),
2369
+ description: wordBasedSuggestionsDescription(),
2370
+ type: Boolean$1,
2371
+ value: 'true',
2372
+ category: TextEditorTab
2373
+ }, {
2374
+ id: 'suggestOnTriggerCharacters',
2375
+ heading: suggestOnTriggerCharacters(),
2376
+ description: suggestOnTriggerCharactersDescription(),
2377
+ type: Boolean$1,
2378
+ value: 'true',
2379
+ category: TextEditorTab
2380
+ }, {
2381
+ id: 'quickSuggestions',
2382
+ heading: quickSuggestions(),
2383
+ description: quickSuggestionsDescription(),
2384
+ type: Boolean$1,
2385
+ value: 'true',
2386
+ category: TextEditorTab
2387
+ }, {
2388
+ id: 'parameterHints',
2389
+ heading: parameterHints(),
2390
+ description: parameterHintsDescription(),
2391
+ type: Boolean$1,
2392
+ value: 'true',
2393
+ category: TextEditorTab
2394
+ }, {
2395
+ id: 'autoClosingBrackets',
2396
+ heading: autoClosingBrackets(),
2397
+ description: autoClosingBracketsDescription(),
2398
+ type: String,
2399
+ value: 'always',
2400
+ category: TextEditorTab
2401
+ }, {
2402
+ id: 'autoClosingQuotes',
2403
+ heading: autoClosingQuotes(),
2404
+ description: autoClosingQuotesDescription(),
2405
+ type: String,
2406
+ value: 'always',
2407
+ category: TextEditorTab
2408
+ }, {
2409
+ id: 'autoClosingOvertype',
2410
+ heading: autoClosingOvertype(),
2411
+ description: autoClosingOvertypeDescription(),
2412
+ type: String,
2413
+ value: 'auto',
2414
+ category: TextEditorTab
2415
+ }, {
2416
+ id: 'autoClosingDelete',
2417
+ heading: autoClosingDelete(),
2418
+ description: autoClosingDeleteDescription(),
2419
+ type: String,
2420
+ value: 'auto',
2421
+ category: TextEditorTab
2422
+ }, {
2423
+ id: 'autoSurround',
2424
+ heading: autoSurround(),
2425
+ description: autoSurroundDescription(),
2426
+ type: String,
2427
+ value: 'quotes',
2428
+ category: TextEditorTab
2429
+ }, {
2430
+ id: 'bracketPairColorization',
2431
+ heading: bracketPairColorization(),
2432
+ description: bracketPairColorizationDescription(),
2433
+ type: Boolean$1,
2434
+ value: 'true',
2435
+ category: TextEditorTab
2436
+ }, {
2437
+ id: 'guides',
2438
+ heading: guides(),
2439
+ description: guidesDescription(),
2440
+ type: Boolean$1,
2441
+ value: 'true',
2442
+ category: TextEditorTab
2443
+ }, {
2444
+ id: 'dragAndDrop',
2445
+ heading: dragAndDrop(),
2446
+ description: dragAndDropDescription(),
2447
+ type: Boolean$1,
2448
+ value: 'true',
2449
+ category: TextEditorTab
2450
+ }, {
2451
+ id: 'copyWithSyntaxHighlighting',
2452
+ heading: copyWithSyntaxHighlighting(),
2453
+ description: copyWithSyntaxHighlightingDescription(),
2454
+ type: Boolean$1,
2455
+ value: 'true',
2456
+ category: TextEditorTab
2457
+ }, {
2458
+ id: 'multiCursorModifier',
2459
+ heading: multiCursorModifier(),
2460
+ description: multiCursorModifierDescription(),
2461
+ type: String,
2462
+ value: 'alt',
2463
+ category: TextEditorTab
2464
+ }, {
2465
+ id: 'multiCursorPaste',
2466
+ heading: multiCursorPaste(),
2467
+ description: multiCursorPasteDescription(),
2468
+ type: String,
2469
+ value: 'full',
2470
+ category: TextEditorTab
2471
+ }, {
2472
+ id: 'occurrencesHighlight',
2473
+ heading: occurrencesHighlight(),
2474
+ description: occurrencesHighlightDescription(),
2475
+ type: Boolean$1,
2476
+ value: 'true',
2477
+ category: TextEditorTab
2478
+ }, {
2479
+ id: 'selectionHighlight',
2480
+ heading: selectionHighlight(),
2481
+ description: selectionHighlightDescription(),
2482
+ type: Boolean$1,
2483
+ value: 'true',
2484
+ category: TextEditorTab
2485
+ }, {
2486
+ id: 'semanticHighlighting',
2487
+ heading: semanticHighlighting(),
2488
+ description: semanticHighlightingDescription(),
2489
+ type: Boolean$1,
2490
+ value: 'true',
2491
+ category: TextEditorTab
2492
+ }, {
2493
+ id: 'tokenColorCustomizations',
2494
+ heading: tokenColorCustomizations(),
2495
+ description: tokenColorCustomizationsDescription(),
2496
+ type: String,
2497
+ value: '{}',
2498
+ category: TextEditorTab
2499
+ }, {
2500
+ id: 'workbenchColorCustomizations',
2501
+ heading: workbenchColorCustomizations(),
2502
+ description: workbenchColorCustomizationsDescription(),
2503
+ type: String,
2504
+ value: '{}',
2505
+ category: TextEditorTab
2506
+ }, {
2507
+ id: 'editorColorCustomizations',
2508
+ heading: editorColorCustomizations(),
2509
+ description: editorColorCustomizationsDescription(),
2510
+ type: String,
2511
+ value: '{}',
2512
+ category: TextEditorTab
2513
+ }, {
2514
+ id: 'diffEditor',
2515
+ heading: diffEditor(),
2516
+ description: diffEditorDescription(),
2517
+ type: Boolean$1,
2518
+ value: 'true',
2519
+ category: TextEditorTab
2520
+ }, {
2521
+ id: 'diffWordWrap',
2522
+ heading: diffWordWrap(),
2523
+ description: diffWordWrapDescription(),
1039
2524
  type: String,
1040
- value: 'Fira Code'
2525
+ value: 'inherit',
2526
+ category: TextEditorTab
2527
+ }, {
2528
+ id: 'diffCodeLens',
2529
+ heading: diffCodeLens(),
2530
+ description: diffCodeLensDescription(),
2531
+ type: Boolean$1,
2532
+ value: 'true',
2533
+ category: TextEditorTab
2534
+ }, {
2535
+ id: 'diffRenderSideBySide',
2536
+ heading: diffRenderSideBySide(),
2537
+ description: diffRenderSideBySideDescription(),
2538
+ type: Boolean$1,
2539
+ value: 'true',
2540
+ category: TextEditorTab
2541
+ }, {
2542
+ id: 'diffIgnoreTrimWhitespace',
2543
+ heading: diffIgnoreTrimWhitespace(),
2544
+ description: diffIgnoreTrimWhitespaceDescription(),
2545
+ type: Boolean$1,
2546
+ value: 'false',
2547
+ category: TextEditorTab
2548
+ }, {
2549
+ id: 'diffRenderIndicators',
2550
+ heading: diffRenderIndicators(),
2551
+ description: diffRenderIndicatorsDescription(),
2552
+ type: Boolean$1,
2553
+ value: 'true',
2554
+ category: TextEditorTab
2555
+ }, {
2556
+ id: 'diffRenderOverviewRuler',
2557
+ heading: diffRenderOverviewRuler(),
2558
+ description: diffRenderOverviewRulerDescription(),
2559
+ type: Boolean$1,
2560
+ value: 'true',
2561
+ category: TextEditorTab
2562
+ }, {
2563
+ id: 'diffRenderMarginRevertIcon',
2564
+ heading: diffRenderMarginRevertIcon(),
2565
+ description: diffRenderMarginRevertIconDescription(),
2566
+ type: Boolean$1,
2567
+ value: 'true',
2568
+ category: TextEditorTab
2569
+ },
2570
+ // Additional Text Editor Settings
2571
+ {
2572
+ id: 'insertMode',
2573
+ heading: insertMode(),
2574
+ description: insertModeDescription(),
2575
+ type: Boolean$1,
2576
+ value: 'true',
2577
+ category: TextEditorTab
2578
+ }, {
2579
+ id: 'overwriteMode',
2580
+ heading: overwriteMode(),
2581
+ description: overwriteModeDescription(),
2582
+ type: Boolean$1,
2583
+ value: 'false',
2584
+ category: TextEditorTab
2585
+ }, {
2586
+ id: 'readOnly',
2587
+ heading: readOnly(),
2588
+ description: readOnlyDescription(),
2589
+ type: Boolean$1,
2590
+ value: 'false',
2591
+ category: TextEditorTab
2592
+ }, {
2593
+ id: 'accessibilitySupport',
2594
+ heading: accessibilitySupport(),
2595
+ description: accessibilitySupportDescription(),
2596
+ type: String,
2597
+ value: 'auto',
2598
+ category: TextEditorTab
2599
+ }, {
2600
+ id: 'autoIndent',
2601
+ heading: autoIndent(),
2602
+ description: autoIndentDescription(),
2603
+ type: Boolean$1,
2604
+ value: 'true',
2605
+ category: TextEditorTab
2606
+ }, {
2607
+ id: 'bracketMatching',
2608
+ heading: bracketMatching(),
2609
+ description: bracketMatchingDescription(),
2610
+ type: Boolean$1,
2611
+ value: 'true',
2612
+ category: TextEditorTab
2613
+ }, {
2614
+ id: 'centeredLayout',
2615
+ heading: centeredLayout(),
2616
+ description: centeredLayoutDescription(),
2617
+ type: Boolean$1,
2618
+ value: 'false',
2619
+ category: TextEditorTab
2620
+ }, {
2621
+ id: 'columnSelection',
2622
+ heading: columnSelection(),
2623
+ description: columnSelectionDescription(),
2624
+ type: Boolean$1,
2625
+ value: 'false',
2626
+ category: TextEditorTab
2627
+ }, {
2628
+ id: 'contextmenu',
2629
+ heading: contextmenu(),
2630
+ description: contextmenuDescription(),
2631
+ type: Boolean$1,
2632
+ value: 'true',
2633
+ category: TextEditorTab
2634
+ }, {
2635
+ id: 'cursorSmoothCaretAnimation',
2636
+ heading: cursorSmoothCaretAnimation(),
2637
+ description: cursorSmoothCaretAnimationDescription(),
2638
+ type: String,
2639
+ value: 'off',
2640
+ category: TextEditorTab
2641
+ }, {
2642
+ id: 'cursorSurroundingLines',
2643
+ heading: cursorSurroundingLines(),
2644
+ description: cursorSurroundingLinesDescription(),
2645
+ type: Number$1,
2646
+ value: '3',
2647
+ category: TextEditorTab
2648
+ }, {
2649
+ id: 'cursorSurroundingLinesStyle',
2650
+ heading: cursorSurroundingLinesStyle(),
2651
+ description: cursorSurroundingLinesStyleDescription(),
2652
+ type: String,
2653
+ value: 'all',
2654
+ category: TextEditorTab
2655
+ }, {
2656
+ id: 'disableMonospaceOptimizations',
2657
+ heading: disableMonospaceOptimizations(),
2658
+ description: disableMonospaceOptimizationsDescription(),
2659
+ type: Boolean$1,
2660
+ value: 'false',
2661
+ category: TextEditorTab
2662
+ }, {
2663
+ id: 'emptySelectionClipboard',
2664
+ heading: emptySelectionClipboard(),
2665
+ description: emptySelectionClipboardDescription(),
2666
+ type: Boolean$1,
2667
+ value: 'true',
2668
+ category: TextEditorTab
2669
+ }, {
2670
+ id: 'extraEditorClassName',
2671
+ heading: extraEditorClassName(),
2672
+ description: extraEditorClassNameDescription(),
2673
+ type: String,
2674
+ value: '',
2675
+ category: TextEditorTab
2676
+ }, {
2677
+ id: 'fastScrollSensitivity',
2678
+ heading: fastScrollSensitivity(),
2679
+ description: fastScrollSensitivityDescription(),
2680
+ type: Number$1,
2681
+ value: '5',
2682
+ category: TextEditorTab
2683
+ }, {
2684
+ id: 'find',
2685
+ heading: find(),
2686
+ description: findDescription(),
2687
+ type: Boolean$1,
2688
+ value: 'true',
2689
+ category: TextEditorTab
2690
+ }, {
2691
+ id: 'fixedOverflowWidgets',
2692
+ heading: fixedOverflowWidgets(),
2693
+ description: fixedOverflowWidgetsDescription(),
2694
+ type: Boolean$1,
2695
+ value: 'false',
2696
+ category: TextEditorTab
2697
+ }, {
2698
+ id: 'foldingStrategy',
2699
+ heading: foldingStrategy(),
2700
+ description: foldingStrategyDescription(),
2701
+ type: String,
2702
+ value: 'auto',
2703
+ category: TextEditorTab
2704
+ }, {
2705
+ id: 'fontLigatures',
2706
+ heading: fontLigatures(),
2707
+ description: fontLigaturesDescription(),
2708
+ type: Boolean$1,
2709
+ value: 'false',
2710
+ category: TextEditorTab
2711
+ }, {
2712
+ id: 'glyphMargin',
2713
+ heading: glyphMargin(),
2714
+ description: glyphMarginDescription(),
2715
+ type: Boolean$1,
2716
+ value: 'true',
2717
+ category: TextEditorTab
2718
+ }, {
2719
+ id: 'gotoLocation',
2720
+ heading: gotoLocation(),
2721
+ description: gotoLocationDescription(),
2722
+ type: String,
2723
+ value: 'mouse',
2724
+ category: TextEditorTab
2725
+ }, {
2726
+ id: 'hideCursorInOverviewRuler',
2727
+ heading: hideCursorInOverviewRuler(),
2728
+ description: hideCursorInOverviewRulerDescription(),
2729
+ type: Boolean$1,
2730
+ value: 'false',
2731
+ category: TextEditorTab
2732
+ }, {
2733
+ id: 'hover',
2734
+ heading: hover(),
2735
+ description: hoverDescription(),
2736
+ type: Boolean$1,
2737
+ value: 'true',
2738
+ category: TextEditorTab
2739
+ }, {
2740
+ id: 'inDiffEditor',
2741
+ heading: inDiffEditor(),
2742
+ description: inDiffEditorDescription(),
2743
+ type: Boolean$1,
2744
+ value: 'false',
2745
+ category: TextEditorTab
2746
+ }, {
2747
+ id: 'letterSpacing',
2748
+ heading: letterSpacing(),
2749
+ description: letterSpacingDescription(),
2750
+ type: Number$1,
2751
+ value: '0',
2752
+ category: TextEditorTab
2753
+ }, {
2754
+ id: 'lightbulbEnabled',
2755
+ heading: lightbulbEnabled(),
2756
+ description: lightbulbEnabledDescription(),
2757
+ type: Boolean$1,
2758
+ value: 'true',
2759
+ category: TextEditorTab
2760
+ }, {
2761
+ id: 'lineDecorationsWidth',
2762
+ heading: lineDecorationsWidth(),
2763
+ description: lineDecorationsWidthDescription(),
2764
+ type: Number$1,
2765
+ value: '10',
2766
+ category: TextEditorTab
2767
+ }, {
2768
+ id: 'lineHeight',
2769
+ heading: lineHeight(),
2770
+ description: lineHeightDescription(),
2771
+ type: Number$1,
2772
+ value: '0',
2773
+ category: TextEditorTab
2774
+ }, {
2775
+ id: 'matchBrackets',
2776
+ heading: matchBrackets(),
2777
+ description: matchBracketsDescription(),
2778
+ type: Boolean$1,
2779
+ value: 'true',
2780
+ category: TextEditorTab
2781
+ }, {
2782
+ id: 'minimapEnabled',
2783
+ heading: minimapEnabled(),
2784
+ description: minimapEnabledDescription(),
2785
+ type: Boolean$1,
2786
+ value: 'true',
2787
+ category: TextEditorTab
2788
+ }, {
2789
+ id: 'mouseWheelScrollSensitivity',
2790
+ heading: mouseWheelScrollSensitivity(),
2791
+ description: mouseWheelScrollSensitivityDescription(),
2792
+ type: Number$1,
2793
+ value: '1',
2794
+ category: TextEditorTab
2795
+ }, {
2796
+ id: 'mouseWheelZoom',
2797
+ heading: mouseWheelZoom(),
2798
+ description: mouseWheelZoomDescription(),
2799
+ type: Boolean$1,
2800
+ value: 'false',
2801
+ category: TextEditorTab
2802
+ }, {
2803
+ id: 'multiCursorMergeOverlapping',
2804
+ heading: multiCursorMergeOverlapping(),
2805
+ description: multiCursorMergeOverlappingDescription(),
2806
+ type: Boolean$1,
2807
+ value: 'true',
2808
+ category: TextEditorTab
2809
+ }, {
2810
+ id: 'overviewRulerBorder',
2811
+ heading: overviewRulerBorder(),
2812
+ description: overviewRulerBorderDescription(),
2813
+ type: Boolean$1,
2814
+ value: 'true',
2815
+ category: TextEditorTab
2816
+ }, {
2817
+ id: 'overviewRulerLanes',
2818
+ heading: overviewRulerLanes(),
2819
+ description: overviewRulerLanesDescription(),
2820
+ type: Number$1,
2821
+ value: '3',
2822
+ category: TextEditorTab
2823
+ }, {
2824
+ id: 'peekWidgetDefaultFocus',
2825
+ heading: peekWidgetDefaultFocus(),
2826
+ description: peekWidgetDefaultFocusDescription(),
2827
+ type: String,
2828
+ value: 'editor',
2829
+ category: TextEditorTab
2830
+ }, {
2831
+ id: 'quickSuggestionsDelay',
2832
+ heading: quickSuggestionsDelay(),
2833
+ description: quickSuggestionsDelayDescription(),
2834
+ type: Number$1,
2835
+ value: '10',
2836
+ category: TextEditorTab
2837
+ }, {
2838
+ id: 'renderFinalNewline',
2839
+ heading: renderFinalNewline(),
2840
+ description: renderFinalNewlineDescription(),
2841
+ type: Boolean$1,
2842
+ value: 'true',
2843
+ category: TextEditorTab
2844
+ }, {
2845
+ id: 'renderValidationDecorations',
2846
+ heading: renderValidationDecorations(),
2847
+ description: renderValidationDecorationsDescription(),
2848
+ type: Boolean$1,
2849
+ value: 'true',
2850
+ category: TextEditorTab
2851
+ }, {
2852
+ id: 'revealHorizontalRightPadding',
2853
+ heading: revealHorizontalRightPadding(),
2854
+ description: revealHorizontalRightPaddingDescription(),
2855
+ type: Number$1,
2856
+ value: '30',
2857
+ category: TextEditorTab
2858
+ }, {
2859
+ id: 'roundedSelection',
2860
+ heading: roundedSelection(),
2861
+ description: roundedSelectionDescription(),
2862
+ type: Boolean$1,
2863
+ value: 'true',
2864
+ category: TextEditorTab
2865
+ }, {
2866
+ id: 'rulers',
2867
+ heading: rulers(),
2868
+ description: rulersDescription(),
2869
+ type: String,
2870
+ value: '[]',
2871
+ category: TextEditorTab
2872
+ }, {
2873
+ id: 'scrollBeyondLastColumn',
2874
+ heading: scrollBeyondLastColumn(),
2875
+ description: scrollBeyondLastColumnDescription(),
2876
+ type: Number$1,
2877
+ value: '5',
2878
+ category: TextEditorTab
2879
+ }, {
2880
+ id: 'scrollbar',
2881
+ heading: scrollbar(),
2882
+ description: scrollbarDescription(),
2883
+ type: String,
2884
+ value: 'auto',
2885
+ category: TextEditorTab
2886
+ }, {
2887
+ id: 'scrollPredominantAxis',
2888
+ heading: scrollPredominantAxis(),
2889
+ description: scrollPredominantAxisDescription(),
2890
+ type: Boolean$1,
2891
+ value: 'true',
2892
+ category: TextEditorTab
2893
+ }, {
2894
+ id: 'selectionClipboard',
2895
+ heading: selectionClipboard(),
2896
+ description: selectionClipboardDescription(),
2897
+ type: Boolean$1,
2898
+ value: 'true',
2899
+ category: TextEditorTab
2900
+ }, {
2901
+ id: 'showUnused',
2902
+ heading: showUnused(),
2903
+ description: showUnusedDescription(),
2904
+ type: Boolean$1,
2905
+ value: 'true',
2906
+ category: TextEditorTab
2907
+ }, {
2908
+ id: 'snippetSuggestions',
2909
+ heading: snippetSuggestions(),
2910
+ description: snippetSuggestionsDescription(),
2911
+ type: String,
2912
+ value: 'bottom',
2913
+ category: TextEditorTab
2914
+ }, {
2915
+ id: 'suggest',
2916
+ heading: suggest(),
2917
+ description: suggestDescription(),
2918
+ type: Boolean$1,
2919
+ value: 'true',
2920
+ category: TextEditorTab
2921
+ }, {
2922
+ id: 'suggestFontSize',
2923
+ heading: suggestFontSize(),
2924
+ description: suggestFontSizeDescription(),
2925
+ type: Number$1,
2926
+ value: '0',
2927
+ category: TextEditorTab
2928
+ }, {
2929
+ id: 'suggestLineHeight',
2930
+ heading: suggestLineHeight(),
2931
+ description: suggestLineHeightDescription(),
2932
+ type: Number$1,
2933
+ value: '0',
2934
+ category: TextEditorTab
2935
+ }, {
2936
+ id: 'suggestSelection',
2937
+ heading: suggestSelection(),
2938
+ description: suggestSelectionDescription(),
2939
+ type: String,
2940
+ value: 'recentlyUsed',
2941
+ category: TextEditorTab
2942
+ }, {
2943
+ id: 'useTabStops',
2944
+ heading: useTabStops(),
2945
+ description: useTabStopsDescription(),
2946
+ type: Boolean$1,
2947
+ value: 'true',
2948
+ category: TextEditorTab
2949
+ }, {
2950
+ id: 'wordSeparators',
2951
+ heading: wordSeparators(),
2952
+ description: wordSeparatorsDescription(),
2953
+ type: String,
2954
+ value: '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?',
2955
+ category: TextEditorTab
2956
+ }, {
2957
+ id: 'wrappingIndent',
2958
+ heading: wrappingIndent(),
2959
+ description: wrappingIndentDescription(),
2960
+ type: String,
2961
+ value: 'same',
2962
+ category: TextEditorTab
2963
+ }, {
2964
+ id: 'theme',
2965
+ heading: theme(),
2966
+ description: themeDescription(),
2967
+ type: String,
2968
+ value: 'Dark',
2969
+ category: WorkbenchTab
2970
+ }, {
2971
+ id: 'sidebarPosition',
2972
+ heading: sidebarPosition(),
2973
+ description: sidebarPositionDescription(),
2974
+ type: String,
2975
+ value: 'Left',
2976
+ category: WorkbenchTab
2977
+ }, {
2978
+ id: 'windowTitle',
2979
+ heading: windowTitle(),
2980
+ description: windowTitleDescription(),
2981
+ type: String,
2982
+ value: 'Settings View',
2983
+ category: WindowTab
2984
+ }, {
2985
+ id: 'windowSize',
2986
+ heading: windowSize(),
2987
+ description: windowSizeDescription(),
2988
+ type: String,
2989
+ value: '1024x768',
2990
+ category: WindowTab
2991
+ }, {
2992
+ id: 'autoSave',
2993
+ heading: autoSave(),
2994
+ description: autoSaveDescription(),
2995
+ type: Boolean$1,
2996
+ value: 'true',
2997
+ category: FeaturesTab
2998
+ }, {
2999
+ id: 'formatOnSave',
3000
+ heading: formatOnSave(),
3001
+ description: formatOnSaveDescription(),
3002
+ type: Boolean$1,
3003
+ value: 'false',
3004
+ category: FeaturesTab
3005
+ }, {
3006
+ id: 'telemetry',
3007
+ heading: telemetry(),
3008
+ description: telemetryDescription(),
3009
+ type: Boolean$1,
3010
+ value: 'true',
3011
+ category: ApplicationsTab
3012
+ }, {
3013
+ id: 'updates',
3014
+ heading: autoUpdates(),
3015
+ description: autoUpdatesDescription(),
3016
+ type: Boolean$1,
3017
+ value: 'true',
3018
+ category: ApplicationsTab
3019
+ }, {
3020
+ id: 'encryption',
3021
+ heading: fileEncryption(),
3022
+ description: fileEncryptionDescription(),
3023
+ type: Boolean$1,
3024
+ value: 'false',
3025
+ category: SecurityTab
3026
+ }, {
3027
+ id: 'twoFactor',
3028
+ heading: twoFactorAuth(),
3029
+ description: twoFactorAuthDescription(),
3030
+ type: Boolean$1,
3031
+ value: 'false',
3032
+ category: SecurityTab
3033
+ }, {
3034
+ id: 'extensionsAutoUpdate',
3035
+ heading: autoUpdateExtensions(),
3036
+ description: autoUpdateExtensionsDescription(),
3037
+ type: Boolean$1,
3038
+ value: 'true',
3039
+ category: ExtensionsTab
3040
+ }, {
3041
+ id: 'extensionRecommendations',
3042
+ heading: extensionRecommendations(),
3043
+ description: extensionRecommendationsDescription(),
3044
+ type: Boolean$1,
3045
+ value: 'true',
3046
+ category: ExtensionsTab
1041
3047
  }];
1042
3048
  };
1043
3049
 
1044
3050
  const getTabs = () => {
1045
3051
  const tabs = [{
1046
- id: 'text-editor',
3052
+ id: TextEditorTab,
1047
3053
  label: 'Text Editor',
1048
3054
  selected: true
1049
3055
  }, {
1050
- id: 'workbench',
3056
+ id: WorkbenchTab,
1051
3057
  label: 'Workbench',
1052
3058
  selected: false
1053
3059
  }, {
1054
- id: 'window',
3060
+ id: WindowTab,
1055
3061
  label: 'Window',
1056
3062
  selected: false
1057
3063
  }, {
1058
- id: 'features',
3064
+ id: FeaturesTab,
1059
3065
  label: 'Features',
1060
3066
  selected: false
1061
3067
  }, {
1062
- id: 'applications',
3068
+ id: ApplicationsTab,
1063
3069
  label: 'Applications',
1064
3070
  selected: false
1065
3071
  }, {
1066
- id: 'security',
3072
+ id: SecurityTab,
1067
3073
  label: 'Security',
1068
3074
  selected: false
1069
3075
  }, {
1070
- id: 'extensions',
3076
+ id: ExtensionsTab,
1071
3077
  label: 'Extensions',
1072
3078
  selected: false
1073
3079
  }];
@@ -1075,12 +3081,19 @@ const getTabs = () => {
1075
3081
  };
1076
3082
 
1077
3083
  const loadContent = async (state, savedState) => {
3084
+ const {
3085
+ searchValue
3086
+ } = state;
1078
3087
  const tabs = getTabs();
1079
3088
  const items = await getSettingItems();
3089
+ const filteredItems = getFilteredItems(items, tabs, searchValue);
3090
+ const preferences = await getPreferences();
1080
3091
  return {
1081
3092
  ...state,
1082
3093
  tabs,
1083
- items
3094
+ items,
3095
+ filteredItems,
3096
+ preferences
1084
3097
  };
1085
3098
  };
1086
3099
 
@@ -1105,7 +3118,6 @@ const Text = 12;
1105
3118
  const H2 = 22;
1106
3119
  const H3 = 23;
1107
3120
  const Aside = 28;
1108
- const Li = 48;
1109
3121
  const P = 50;
1110
3122
  const Ul = 60;
1111
3123
  const VirtualDomElements = {
@@ -1117,7 +3129,6 @@ const VirtualDomElements = {
1117
3129
  H2,
1118
3130
  H3,
1119
3131
  Input,
1120
- Li,
1121
3132
  P,
1122
3133
  Ul};
1123
3134
  const text = data => {
@@ -1129,14 +3140,17 @@ const text = data => {
1129
3140
  };
1130
3141
 
1131
3142
  const {
1132
- Viewlet} = ClassNames;
3143
+ Viewlet
3144
+ } = ClassNames;
1133
3145
  const Settings = 'Settings';
1134
3146
 
1135
- const SettingsSearch = 'SettingsSearch';
1136
- const Clear = 'Clear';
3147
+ // TODo use numeric ids
3148
+ const HandleClickClear = 'handleClickClear';
3149
+ const HandleClickTab = 'handleClickTab';
3150
+ const HandleInput = 'handleInput';
1137
3151
 
1138
3152
  const getSettingsInputDom = () => {
1139
- const placeholder = 'Search Settings';
3153
+ const placeholder = searchSettings();
1140
3154
  return [{
1141
3155
  type: VirtualDomElements.Div,
1142
3156
  className: 'SettingsInputWrapper',
@@ -1146,15 +3160,16 @@ const getSettingsInputDom = () => {
1146
3160
  className: 'InputBox SettingsSearchInput',
1147
3161
  placeholder,
1148
3162
  childCount: 0,
1149
- name: SettingsSearch // TODO add input event listener
3163
+ name: SettingsSearch,
3164
+ onInput: HandleInput
1150
3165
  }, {
1151
3166
  type: VirtualDomElements.Button,
1152
3167
  className: 'Button InputButton',
1153
3168
  childCount: 1,
1154
- ariaLabel: 'Clear',
3169
+ ariaLabel: clear(),
1155
3170
  // TODO i18n string
1156
- name: Clear // TODO add click event listener
1157
- }, text('Clear') // TODO use icon
3171
+ name: Clear$1 // TODO add click event listener
3172
+ }, text(clear()) // TODO use icon
1158
3173
  ];
1159
3174
  };
1160
3175
 
@@ -1185,12 +3200,23 @@ const getItemNumberVirtualDom = item => {
1185
3200
  type: VirtualDomElements.Input,
1186
3201
  className: 'InputBox',
1187
3202
  inputType: 'number',
1188
- placeholder: 'number value',
3203
+ placeholder: numberValue(),
1189
3204
  childCount: 0
1190
3205
  }];
1191
3206
  };
1192
3207
 
1193
- const getSettingsItemsDom = items => {
3208
+ const getSettingsItemsDom = (items, searchValue) => {
3209
+ if (items.length === 0 && searchValue.trim()) {
3210
+ return [{
3211
+ type: VirtualDomElements.Div,
3212
+ className: 'SettingsItems',
3213
+ childCount: 1
3214
+ }, {
3215
+ type: VirtualDomElements.Div,
3216
+ className: 'SettingsNoResults',
3217
+ childCount: 1
3218
+ }, text(noSettingsMatching(searchValue))];
3219
+ }
1194
3220
  return [{
1195
3221
  type: VirtualDomElements.Div,
1196
3222
  className: 'SettingsItems',
@@ -1198,30 +3224,34 @@ const getSettingsItemsDom = items => {
1198
3224
  }, ...items.flatMap(getItemNumberVirtualDom)];
1199
3225
  };
1200
3226
 
1201
- const getSettingsContentDom = items => {
3227
+ const getSettingsContentDom = (items, tabs, searchValue) => {
3228
+ const selectedTab = tabs.find(tab => tab.selected);
3229
+ const headerText = selectedTab ? selectedTab.label : settingsContent();
1202
3230
  return [{
1203
3231
  type: VirtualDomElements.Div,
1204
3232
  className: 'SettingsContent',
1205
3233
  childCount: 2
1206
3234
  }, {
1207
3235
  type: VirtualDomElements.H1,
3236
+ className: 'SettingsContentHeading',
1208
3237
  childCount: 1
1209
- }, text('Settings Content'), ...getSettingsItemsDom(items)];
3238
+ }, text(headerText), ...getSettingsItemsDom(items, searchValue)];
1210
3239
  };
1211
3240
 
1212
- const HandleClickTab = 'handleClickTab';
1213
- const HandleInput = 'handleInput';
1214
-
1215
- // TODo use numeric ids
3241
+ const getTabClassName = tab => {
3242
+ return tab.selected ? mergeClassNames('Tab', 'TabSelected') : 'Tab';
3243
+ };
1216
3244
 
1217
3245
  const getTabVirtualDom = tab => {
1218
- const className = tab.selected ? mergeClassNames('Tab', 'TabSelected') : 'Tab';
3246
+ const className = getTabClassName(tab);
1219
3247
  return [{
1220
- type: VirtualDomElements.Li,
3248
+ type: VirtualDomElements.Button,
1221
3249
  className,
1222
3250
  childCount: 1,
1223
3251
  role: AriaRoles.Tab,
1224
- name: tab.id
3252
+ name: tab.id,
3253
+ id: tab.id,
3254
+ ariaSelected: tab.selected
1225
3255
  }, text(tab.label)];
1226
3256
  };
1227
3257
 
@@ -1236,7 +3266,7 @@ const getSettingsTabsDom = tabs => {
1236
3266
  };
1237
3267
 
1238
3268
  const getSettingsSideBarDom = tabs => {
1239
- const sideBarHeading = 'Settings SideBar';
3269
+ const sideBarHeading = settingsSideBar();
1240
3270
  return [{
1241
3271
  type: VirtualDomElements.Aside,
1242
3272
  className: 'SettingsSideBar',
@@ -1248,24 +3278,25 @@ const getSettingsSideBarDom = tabs => {
1248
3278
  }, text(sideBarHeading), ...getSettingsTabsDom(tabs)];
1249
3279
  };
1250
3280
 
1251
- const getSettingsMainDom = (tabs, items) => {
3281
+ const getSettingsMainDom = (tabs, items, searchValue) => {
1252
3282
  return [{
1253
3283
  type: VirtualDomElements.Div,
1254
3284
  className: 'SettingsMain',
1255
3285
  childCount: 2
1256
- }, ...getSettingsSideBarDom(tabs), ...getSettingsContentDom(items)];
3286
+ }, ...getSettingsSideBarDom(tabs), ...getSettingsContentDom(items, tabs, searchValue)];
1257
3287
  };
1258
3288
 
1259
3289
  const getSettingsDom = state => {
1260
3290
  const {
1261
3291
  tabs,
1262
- items
3292
+ filteredItems,
3293
+ searchValue
1263
3294
  } = state;
1264
3295
  return [{
1265
3296
  type: VirtualDomElements.Div,
1266
3297
  childCount: 2,
1267
3298
  className: mergeClassNames(Viewlet, Settings)
1268
- }, ...getSettingsHeaderDom(), ...getSettingsMainDom(tabs, items)];
3299
+ }, ...getSettingsHeaderDom(), ...getSettingsMainDom(tabs, filteredItems, searchValue)];
1269
3300
  };
1270
3301
 
1271
3302
  const renderItems = (oldState, newState) => {
@@ -1312,6 +3343,9 @@ const renderEventListeners = () => {
1312
3343
  }, {
1313
3344
  name: HandleInput,
1314
3345
  params: ['handleInput', 'event.target.value']
3346
+ }, {
3347
+ name: HandleClickClear,
3348
+ params: ['clear']
1315
3349
  }];
1316
3350
  };
1317
3351
 
@@ -1351,13 +3385,20 @@ const restoreState = savedState => {
1351
3385
  };
1352
3386
  };
1353
3387
 
1354
- const saveState = uid => {
3388
+ const saveState = state => {
3389
+ const {
3390
+ tabs,
3391
+ searchValue
3392
+ } = state;
3393
+ const selectedTab = getSelectedTabId(tabs);
1355
3394
  return {
1356
3395
  expandedPaths: [],
1357
3396
  root: '',
1358
3397
  minLineY: 0,
1359
3398
  maxLineY: 0,
1360
- deltaY: 0
3399
+ deltaY: 0,
3400
+ searchValue,
3401
+ selectedTab
1361
3402
  };
1362
3403
  };
1363
3404
 
@@ -1371,10 +3412,10 @@ const commandMap = {
1371
3412
  'Settings.renderActions': renderActions,
1372
3413
  'Settings.renderEventListeners': renderEventListeners,
1373
3414
  'Settings.restoreState': restoreState,
1374
- 'Settings.saveState': saveState,
3415
+ 'Settings.saveState': wrapGetter(saveState),
1375
3416
  'Settings.terminate': terminate,
1376
3417
  'Settings.handleClickTab': wrapCommand(handleClickTab),
1377
- 'Settings.clear': wrapCommand(clear),
3418
+ 'Settings.clear': wrapCommand(clear$1),
1378
3419
  'Settings.handleInput': wrapCommand(handleInput)
1379
3420
  };
1380
3421