@lvce-editor/settings-view 2.0.0 → 2.1.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.
@@ -378,7 +378,7 @@ const create$4 = (method, params) => {
378
378
  };
379
379
  };
380
380
  const callbacks = Object.create(null);
381
- const set$2 = (id, fn) => {
381
+ const set$4 = (id, fn) => {
382
382
  callbacks[id] = fn;
383
383
  };
384
384
  const get$2 = id => {
@@ -397,7 +397,7 @@ const registerPromise = () => {
397
397
  resolve,
398
398
  promise
399
399
  } = Promise.withResolvers();
400
- set$2(id, resolve);
400
+ set$4(id, resolve);
401
401
  return {
402
402
  id,
403
403
  promise
@@ -742,10 +742,10 @@ const send = (transport, method, ...params) => {
742
742
  const message = create$4(method, params);
743
743
  transport.send(message);
744
744
  };
745
- const invoke = (ipc, method, ...params) => {
745
+ const invoke$1 = (ipc, method, ...params) => {
746
746
  return invokeHelper(ipc, method, params, false);
747
747
  };
748
- const invokeAndTransfer = (ipc, method, ...params) => {
748
+ const invokeAndTransfer$1 = (ipc, method, ...params) => {
749
749
  return invokeHelper(ipc, method, params, true);
750
750
  };
751
751
 
@@ -781,10 +781,10 @@ const createRpc = ipc => {
781
781
  send(ipc, method, ...params);
782
782
  },
783
783
  invoke(method, ...params) {
784
- return invoke(ipc, method, ...params);
784
+ return invoke$1(ipc, method, ...params);
785
785
  },
786
786
  invokeAndTransfer(method, ...params) {
787
- return invokeAndTransfer(ipc, method, ...params);
787
+ return invokeAndTransfer$1(ipc, method, ...params);
788
788
  },
789
789
  async dispose() {
790
790
  await ipc?.dispose();
@@ -836,6 +836,25 @@ const WebWorkerRpcClient = {
836
836
  __proto__: null,
837
837
  create: create$3
838
838
  };
839
+ const createMockRpc = ({
840
+ commandMap
841
+ }) => {
842
+ const invocations = [];
843
+ const invoke = (method, ...params) => {
844
+ invocations.push([method, ...params]);
845
+ const command = commandMap[method];
846
+ if (!command) {
847
+ throw new Error(`command ${method} not found`);
848
+ }
849
+ return command(...params);
850
+ };
851
+ const mockRpc = {
852
+ invoke,
853
+ invokeAndTransfer: invoke,
854
+ invocations
855
+ };
856
+ return mockRpc;
857
+ };
839
858
 
840
859
  const toCommandId = key => {
841
860
  const dotIndex = key.indexOf('.');
@@ -942,9 +961,9 @@ const computeVisibleItems = (items, height, scrollOffset, itemHeight) => {
942
961
  const maxLineY = Math.min(totalItems, minLineY + itemsPerViewport);
943
962
  const visibleItems = items.slice(minLineY, maxLineY);
944
963
  return {
945
- visibleItems,
964
+ maxLineY,
946
965
  minLineY,
947
- maxLineY
966
+ visibleItems
948
967
  };
949
968
  };
950
969
 
@@ -975,16 +994,16 @@ const validateSettings = (items, modifiedSettings, preferences) => {
975
994
  const hasError = errorMessage.length > 0;
976
995
  const modified = isItemModified(item, modifiedSettings);
977
996
  return {
978
- id: item.id,
979
- heading: item.heading,
980
- description: item.description,
981
- type: item.type,
982
- value: item.value,
983
997
  category: item.category,
984
- options: item.options,
985
- modified,
998
+ description: item.description,
986
999
  errorMessage,
987
- hasError
1000
+ hasError,
1001
+ heading: item.heading,
1002
+ id: item.id,
1003
+ modified,
1004
+ options: item.options,
1005
+ type: item.type,
1006
+ value: item.value
988
1007
  };
989
1008
  });
990
1009
  };
@@ -1003,21 +1022,21 @@ const FocusSettingsInput = 2199;
1003
1022
 
1004
1023
  const clear$1 = state => {
1005
1024
  const {
1025
+ height,
1026
+ itemHeight,
1006
1027
  items,
1007
- tabs,
1008
1028
  modifiedSettings,
1009
1029
  preferences,
1010
- height,
1011
- itemHeight,
1012
- scrollBarMinHeight
1030
+ scrollBarMinHeight,
1031
+ tabs
1013
1032
  } = state;
1014
1033
  const newSearchValue = '';
1015
1034
  const filteredItems = getFilteredItems(items, tabs, newSearchValue, modifiedSettings, preferences);
1016
1035
  const nextScrollOffset = 0;
1017
1036
  const {
1018
- visibleItems,
1037
+ maxLineY,
1019
1038
  minLineY,
1020
- maxLineY
1039
+ visibleItems
1021
1040
  } = computeVisibleItems(filteredItems, height, nextScrollOffset, itemHeight);
1022
1041
  const {
1023
1042
  thumbHeight,
@@ -1025,18 +1044,18 @@ const clear$1 = state => {
1025
1044
  } = computeScrollBar(height, filteredItems.length, itemHeight, nextScrollOffset, scrollBarMinHeight);
1026
1045
  return {
1027
1046
  ...state,
1028
- filteredItems,
1029
- visibleItems,
1030
- minLineY,
1031
- maxLineY,
1032
1047
  deltaY: 0,
1033
- scrollOffset: nextScrollOffset,
1048
+ filteredItems,
1034
1049
  focus: FocusSettingsInput,
1035
1050
  focusSource: Script,
1036
1051
  inputSource: Script,
1037
- searchValue: newSearchValue,
1052
+ maxLineY,
1053
+ minLineY,
1038
1054
  scrollBarThumbHeight: thumbHeight,
1039
- scrollBarThumbTop: thumbTop
1055
+ scrollBarThumbTop: thumbTop,
1056
+ scrollOffset: nextScrollOffset,
1057
+ searchValue: newSearchValue,
1058
+ visibleItems
1040
1059
  };
1041
1060
  };
1042
1061
 
@@ -1050,10 +1069,10 @@ const clearHistory = state => {
1050
1069
 
1051
1070
  const {
1052
1071
  get: get$1,
1053
- set: set$1,
1054
- wrapCommand,
1055
1072
  getCommandIds,
1056
1073
  registerCommands,
1074
+ set: set$3,
1075
+ wrapCommand,
1057
1076
  wrapGetter
1058
1077
  } = create$2();
1059
1078
 
@@ -1061,36 +1080,36 @@ const create$1 = (id, uri, x, y, width, height) => {
1061
1080
  const state = {
1062
1081
  breakPointsExpanded: false,
1063
1082
  breakPointsVisible: false,
1064
- focus: 0,
1065
- id,
1066
- uri,
1067
- x,
1068
- y,
1069
- width,
1070
- height,
1071
1083
  deltaY: 0,
1072
- itemHeight: 100,
1073
- tabs: [],
1074
- items: [],
1075
- searchValue: '',
1076
1084
  filteredItems: [],
1077
- preferences: {},
1078
- inputSource: 0,
1079
- scrollOffset: 0,
1080
- minLineY: 0,
1081
- maxLineY: 0,
1082
- visibleItems: [],
1083
1085
  filteredItemsCount: 0,
1086
+ focus: 0,
1087
+ focusSource: 0,
1088
+ height,
1089
+ highlightsEnabled: false,
1084
1090
  history: [],
1085
1091
  historyIndex: -1,
1092
+ id,
1093
+ inputSource: 0,
1094
+ itemHeight: 100,
1095
+ items: [],
1096
+ maxLineY: 0,
1097
+ minLineY: 0,
1086
1098
  modifiedSettings: {},
1087
- focusSource: 0,
1099
+ preferences: {},
1088
1100
  scrollBarMinHeight: 0,
1089
1101
  scrollBarThumbHeight: 0,
1090
1102
  scrollBarThumbTop: 0,
1091
- highlightsEnabled: false
1103
+ scrollOffset: 0,
1104
+ searchValue: '',
1105
+ tabs: [],
1106
+ uri,
1107
+ visibleItems: [],
1108
+ width,
1109
+ x,
1110
+ y
1092
1111
  };
1093
- set$1(id, state, state);
1112
+ set$3(id, state, state);
1094
1113
  };
1095
1114
 
1096
1115
  const isEqual$4 = (oldState, newState) => {
@@ -1141,8 +1160,8 @@ const diff = (oldState, newState) => {
1141
1160
 
1142
1161
  const diff2 = uid => {
1143
1162
  const {
1144
- oldState,
1145
- newState
1163
+ newState,
1164
+ oldState
1146
1165
  } = get$1(uid);
1147
1166
  const diffResult = diff(oldState, newState);
1148
1167
  return diffResult;
@@ -1151,25 +1170,478 @@ const diff2 = uid => {
1151
1170
  const Group = 'group';
1152
1171
  const Tab$1 = 'tab';
1153
1172
  const TabList = 'tablist';
1154
- const AriaRoles = {
1155
- __proto__: null,
1156
- Group,
1157
- Tab: Tab$1,
1158
- TabList};
1173
+
1174
+ const Actions = 'Actions';
1175
+ const AdditionalDetails = 'AdditionalDetails';
1176
+ const AdditionalDetailsEntry = 'AdditionalDetailsEntry';
1177
+ const AdditionalDetailsTitle = 'AdditionalDetailsTitle';
1178
+ const Aside$1 = 'Aside';
1179
+ const Badge$1 = 'Badge';
1180
+ const Button$1 = 'Button';
1181
+ const ButtonPrimary = 'ButtonPrimary';
1182
+ const CallStackArrow = 'CallStackArrow';
1183
+ const CallStackDescription = 'CallStackDescription';
1184
+ const CallStackLabel = 'CallStackLabel';
1185
+ const Categories = 'Categories';
1186
+ const Category = 'Category';
1187
+ const Changelog = 'Changelog';
1188
+ const Chevron = 'Chevron';
1189
+ const CloseMaskIcon = 'MaskIcon MaskIconClose';
1190
+ const CodeGeneratorInput = 'CodeGeneratorInput';
1191
+ const CodeGeneratorMessage = 'CodeGeneratorMessage';
1192
+ const CodeGeneratorWidget = 'CodeGeneratorWidget';
1193
+ const ColoredMaskIcon = 'ColoredMaskIcon';
1194
+ const ColorPicker = 'ColorPicker';
1195
+ const ColorPickerBackgroundColor = 'ColorPickerBackgroundColor';
1196
+ const ColorPickerDark = 'ColorPickerDark';
1197
+ const ColorPickerLight = 'ColorPickerLight';
1198
+ const ColorPickerRectangle = 'ColorPickerRectangle';
1199
+ const ColorPickerSlider = 'ColorPickerSlider';
1200
+ const ColorPickerSliderThumb = 'ColorPickerSliderThumb';
1201
+ const CompletionDetailCloseButton = 'CompletionDetailCloseButton';
1202
+ const CompletionDetailContent = 'CompletionDetailContent';
1203
+ const DebugButton = 'DebugButton';
1204
+ const DebugButtons = 'DebugButtons';
1205
+ const DebugPausedMessage = 'DebugPausedMessage';
1206
+ const DebugPropertyChevron = 'DebugPropertyChevron';
1207
+ const DebugPropertyKey = 'DebugPropertyKey';
1208
+ const DebugRow = 'DebugRow';
1209
+ const DebugRowCallStack = 'DebugRowCallStack';
1210
+ const DebugRowCheckBox = 'DebugRowCheckBox';
1211
+ const DebugRowInputField = 'DebugRowInputField';
1212
+ const DebugSectionAction = 'DebugSectionAction';
1213
+ const DebugSectionActions = 'DebugSectionActions';
1214
+ const DebugSectionHeader = 'DebugSectionHeader';
1215
+ const DebugValue = 'DebugValue';
1216
+ const DebugValueBoolean = 'DebugValueBoolean';
1217
+ const DebugValueFunction = 'DebugValueFunction';
1218
+ const DebugValueGetter = 'DebugValueGetter';
1219
+ const DebugValueNumber = 'DebugValueNumber';
1220
+ const DebugValueObject = 'DebugValueObject';
1221
+ const DebugValueScopeName = 'DebugValueScopeName';
1222
+ const DebugValueString = 'DebugValueString';
1223
+ const DebugValueSymbol = 'DebugValueSymbol';
1224
+ const DebugValueUndefined = 'DebugValueUndefined';
1225
+ const DefaultMarkdown = 'DefaultMarkdown';
1226
+ const DefinitionListItem = 'DefinitionListItem';
1227
+ const DefinitionListItemHeading = 'DefinitionListItemHeading';
1228
+ const DefinitionListItemValue = 'DefinitionListItemValue';
1229
+ const DeleteWatchExpression = 'DeleteWatchExpression';
1230
+ const Diagnostic = 'Diagnostic';
1231
+ const DiagnosticError = 'DiagnosticError';
1232
+ const DiagnosticWarning = 'DiagnosticWarning';
1233
+ const EditorCompletionItem = 'EditorCompletionItem';
1234
+ const EditorCompletionItemDeprecated = 'EditorCompletionItemDeprecated';
1235
+ const EditorCompletionItemFocused = 'EditorCompletionItemFocused';
1236
+ const EditorCompletionItemHighlight = 'EditorCompletionItemHighlight';
1237
+ const EditorCursor = 'EditorCursor';
1238
+ const EditorRow = 'EditorRow';
1239
+ const EditorSelection = 'EditorSelection';
1240
+ const EditorSourceActions = 'EditorSourceActions';
1241
+ const EditorSourceActionsList = 'EditorSourceActionsList';
1242
+ const Empty = '';
1243
+ const ExtensionActions = 'ExtensionActions';
1244
+ const ExtensionActive = 'ExtensionActive';
1245
+ const ExtensionDetail = 'ExtensionDetail';
1246
+ const ExtensionDetailDescription = 'ExtensionDetailDescription';
1247
+ const ExtensionDetailHeader = 'ExtensionDetailHeader';
1248
+ const ExtensionDetailHeaderActions = 'ExtensionDetailHeaderActions';
1249
+ const ExtensionDetailHeaderDetails = 'ExtensionDetailHeaderDetails';
1250
+ const ExtensionDetailIcon = 'ExtensionDetailIcon';
1251
+ const ExtensionDetailName = 'ExtensionDetailName';
1252
+ const ExtensionDetailNameBadge = 'ExtensionDetailNameBadge';
1253
+ const ExtensionDetailPanel = 'ExtensionDetailPanel';
1254
+ const ExtensionDetailTab = 'ExtensionDetailTab';
1255
+ const ExtensionDetailTabs = 'ExtensionDetailTabs';
1256
+ const ExtensionDetailTabSelected = 'ExtensionDetailTabSelected';
1257
+ const ExtensionHeader = 'ExtensionHeader';
1258
+ const ExtensionListItem = 'ExtensionListItem';
1259
+ const ExtensionListItemAuthorName = 'ExtensionListItemAuthorName';
1260
+ const ExtensionListItemDescription = 'ExtensionListItemDescription';
1261
+ const ExtensionListItemDetail = 'ExtensionListItemDetail';
1262
+ const ExtensionListItemFooter = 'ExtensionListItemFooter';
1263
+ const ExtensionListItemIcon = 'ExtensionListItemIcon';
1264
+ const ExtensionListItemName = 'ExtensionListItemName';
1265
+ const Extensions = 'Extensions';
1266
+ const Feature = 'Feature';
1267
+ const FeatureContent = 'FeatureContent';
1268
+ const Features = 'Features';
1269
+ const FeaturesList = 'FeaturesList';
1270
+ const FeatureWebView = 'FeatureWebView';
1271
+ const FileIcon = 'FileIcon';
1272
+ const Filter = 'Filter';
1273
+ const FilterBadge = 'FilterBadge';
1274
+ const FindWidget = 'FindWidget';
1275
+ const FindWidgetFind = 'FindWidgetFind';
1276
+ const FindWidgetMatchCount = 'FindWidgetMatchCount';
1277
+ const FindWidgetMatchCountEmpty = 'FindWidgetMatchCountEmpty';
1278
+ const FindWidgetReplace = 'FindWidgetReplace';
1279
+ const FindWidgetRight = 'FindWidgetRight';
1280
+ const FocusOutline = 'FocusOutline';
1281
+ const Grow = 'Grow';
1282
+ const Highlight = 'Highlight';
1283
+ const HighlightDeleted = 'HighlightDeleted';
1284
+ const HighlightInserted = 'HighlightInserted';
1285
+ const HoverDisplayString = 'HoverDisplayString';
1286
+ const HoverDocumentation = 'HoverDocumentation';
1287
+ const HoverEditorRow = 'HoverEditorRow';
1288
+ const HoverProblem = 'HoverProblem';
1289
+ const HoverProblemDetail = 'HoverProblemDetail';
1290
+ const HoverProblemMessage = 'HoverProblemMessage';
1291
+ const IconButton = 'IconButton';
1292
+ const IconButtonDisabled = 'IconButtonDisabled';
1293
+ const IconClose = 'IconClose';
1294
+ const InputBox$1 = 'InputBox';
1295
+ const InputLabel = 'InputLabel';
1296
+ const InputValidationError = 'InputValidationError';
1297
+ const Label$2 = 'Label';
1298
+ const LabelCut = 'LabelCut';
1299
+ const LabelDetail = 'LabelDetail';
1300
+ const Large = 'Large';
1301
+ const List = 'List';
1302
+ const ListItems = 'ListItems';
1303
+ const Markdown = 'Markdown';
1304
+ const MaskIcon$1 = 'MaskIcon';
1305
+ const MaskIconBook = 'MaskIconBook';
1306
+ const MaskIconCaseSensitive = 'MaskIconCaseSensitive';
1307
+ const MaskIconChevronDown = 'MaskIconChevronDown';
1308
+ const MaskIconChevronRight = 'MaskIconChevronRight';
1309
+ const MaskIconEllipsis = 'MaskIconEllipsis';
1310
+ const MaskIconExclude = 'MaskIconExclude';
1311
+ const MaskIconPreserveCase = 'MaskIconPreserveCase';
1312
+ const MaskIconRegex = 'MaskIconRegex';
1313
+ const MaskIconReplaceAll = 'MaskIconReplaceAll';
1314
+ const MaskIconSymbolFile = 'MaskIconSymbolFile';
1315
+ const MaskIconWholeWord = 'MaskIconWholeWord';
1316
+ const Message = 'Message';
1317
+ const MessageAction = 'MessageAction';
1318
+ const MoreInfo = 'MoreInfo';
1319
+ const MoreInfoEntry = 'MoreInfoEntry';
1320
+ const MoreInfoEntryKey = 'MoreInfoEntryKey';
1321
+ const MoreInfoEntryOdd = 'MoreInfoEntryOdd';
1322
+ const MoreInfoEntryValue = 'MoreInfoEntryValue';
1323
+ const MultilineInputBox = 'MultilineInputBox';
1324
+ const Normal = 'Normal';
1325
+ const Problem = 'Problem';
1326
+ const ProblemAt = 'ProblemAt';
1327
+ const ProblemBadge = 'ProblemBadge';
1328
+ const Problems = 'Problems';
1329
+ const ProblemSelected = 'ProblemSelected';
1330
+ const ProblemsErrorIcon = 'ProblemsErrorIcon';
1331
+ const ProblemsIcon = 'ProblemsIcon';
1332
+ const ProblemsList = 'ProblemsList';
1333
+ const ProblemsTable = 'ProblemsTable';
1334
+ const ProblemsTableBody = 'ProblemsTableBody';
1335
+ const ProblemsTableHeader = 'ProblemsTableHeader';
1336
+ const ProblemsTableRow = 'ProblemsTableRow';
1337
+ const ProblemsTableRowItem = 'ProblemsTableRowItem';
1338
+ const ProblemsTableRowOdd = 'ProblemsTableRowOdd';
1339
+ const ProblemsWarningIcon = 'ProblemsWarningIcon';
1340
+ const QuickPick = 'QuickPick';
1341
+ const QuickPickHeader = 'QuickPickHeader';
1342
+ const QuickPickHighlight = 'QuickPickHighlight';
1343
+ const QuickPickItem = 'QuickPickItem';
1344
+ const QuickPickItemActive = 'QuickPickItemActive';
1345
+ const QuickPickItemDescription = 'QuickPickItemDescription';
1346
+ const QuickPickItemLabel = 'QuickPickItemLabel';
1347
+ const QuickPickItems = 'QuickPickItems';
1348
+ const QuickPickMaskIcon = 'QuickPickMaskIcon';
1349
+ const QuickPickScrollbar = 'QuickPickScrollbar';
1350
+ const QuickPickScrollbarSlider = 'QuickPickScrollbarSlider';
1351
+ const QuickPickStatus = 'QuickPickStatus';
1352
+ const Resource = 'Resource';
1353
+ const Resources = 'Resources';
1354
+ const Sash = 'Sash';
1355
+ const SashVertical = 'SashVertical';
1356
+ const Scrollbar$1 = 'Scrollbar';
1357
+ const ScrollBar = 'ScrollBar';
1358
+ const ScrollBarSmall = 'ScrollBarSmall';
1359
+ const ScrollbarThumb = 'ScrollbarThumb';
1360
+ const ScrollBarThumb = 'ScrollBarThumb';
1361
+ const ScrollBarThumbActive = 'ScrollBarThumbActive';
1362
+ const ScrollbarTrack = 'ScrollbarTrack';
1363
+ const ScrollBarVertical = 'ScrollBarVertical';
1364
+ const Search = 'Search';
1365
+ const SearchField = 'SearchField';
1366
+ const SearchFieldButton$1 = 'SearchFieldButton';
1367
+ const SearchFieldButtonChecked = 'SearchFieldButtonChecked';
1368
+ const SearchFieldButtonDisabled = 'SearchFieldButtonDisabled';
1369
+ const SearchFieldButtons = 'SearchFieldButtons';
1370
+ const SearchFieldContainer = 'SearchFieldContainer';
1371
+ const SearchFieldDisabled = 'SearchFieldDisabled';
1372
+ const SearchFieldError = 'SearchFieldError';
1373
+ const SearchHeader = 'SearchHeader';
1374
+ const SearchHeaderDetails = 'SearchHeaderDetails';
1375
+ const SearchHeaderDetailsExpanded = 'SearchHeaderDetailsExpanded';
1376
+ const SearchHeaderDetailsExpandedTop = 'SearchHeaderDetailsExpandedTop';
1377
+ const SearchHeaderDetailsHeading = 'SearchHeaderDetailsHeading';
1378
+ const SearchHeaderTop = 'SearchHeaderTop';
1379
+ const SearchHeaderTopRight = 'SearchHeaderTopRight';
1380
+ const SearchInputError = 'SearchInputError';
1381
+ const SearchRemove = 'SearchRemove';
1382
+ const SearchToggleButton = 'SearchToggleButton';
1383
+ const SearchToggleButtonExpanded = 'SearchToggleButtonExpanded';
1384
+ const SettingsButton = 'SettingsButton';
1385
+ const SettingsIcon = 'SettingsIcon';
1386
+ const Small = 'Small';
1387
+ const SourceActionHeading = 'SourceActionHeading';
1388
+ const SourceActionIcon = 'SourceActionIcon';
1389
+ const SourceActionItem = 'SourceActionItem';
1390
+ const SourceActionItemFocused = 'SourceActionItemFocused';
1391
+ const SourceControlBadge = 'SourceControlBadge';
1392
+ const Table = 'Table';
1393
+ const TableCell = 'TableCell';
1394
+ const TableHeading = 'TableHeading';
1395
+ const ToggleDetails = 'ToggleDetails';
1396
+ const Tree = 'Tree';
1397
+ const TreeItem = 'TreeItem';
1398
+ const TreeItemActive = 'TreeItemActive';
1399
+ const TreeItems = 'TreeItems';
1159
1400
  const Viewlet$1 = 'Viewlet';
1401
+ const ViewletFind = 'ViewletFind';
1402
+ const ViewletFindWidget = 'ViewletFindWidget';
1403
+ const ViewletSearchMessage = 'ViewletSearchMessage';
1404
+ const ViewletSearchMessageIndented = 'ViewletSearchMessageIndented';
1405
+ const Welcome = 'Welcome';
1406
+ const WelcomeMessage = 'WelcomeMessage';
1407
+
1160
1408
  const ClassNames = {
1161
1409
  __proto__: null,
1162
- Viewlet: Viewlet$1};
1163
- const UpArrow = 14;
1164
- const DownArrow = 16;
1165
- const KeyCode = {
1166
- __proto__: null,
1167
- DownArrow,
1168
- UpArrow
1169
- };
1170
- const mergeClassNames = (...classNames) => {
1171
- return classNames.filter(Boolean).join(' ');
1410
+ Actions,
1411
+ AdditionalDetails,
1412
+ AdditionalDetailsEntry,
1413
+ AdditionalDetailsTitle,
1414
+ Aside: Aside$1,
1415
+ Badge: Badge$1,
1416
+ Button: Button$1,
1417
+ ButtonPrimary,
1418
+ CallStackArrow,
1419
+ CallStackDescription,
1420
+ CallStackLabel,
1421
+ Categories,
1422
+ Category,
1423
+ Changelog,
1424
+ Chevron,
1425
+ CloseMaskIcon,
1426
+ CodeGeneratorInput,
1427
+ CodeGeneratorMessage,
1428
+ CodeGeneratorWidget,
1429
+ ColorPicker,
1430
+ ColorPickerBackgroundColor,
1431
+ ColorPickerDark,
1432
+ ColorPickerLight,
1433
+ ColorPickerRectangle,
1434
+ ColorPickerSlider,
1435
+ ColorPickerSliderThumb,
1436
+ ColoredMaskIcon,
1437
+ CompletionDetailCloseButton,
1438
+ CompletionDetailContent,
1439
+ DebugButton,
1440
+ DebugButtons,
1441
+ DebugPausedMessage,
1442
+ DebugPropertyChevron,
1443
+ DebugPropertyKey,
1444
+ DebugRow,
1445
+ DebugRowCallStack,
1446
+ DebugRowCheckBox,
1447
+ DebugRowInputField,
1448
+ DebugSectionAction,
1449
+ DebugSectionActions,
1450
+ DebugSectionHeader,
1451
+ DebugValue,
1452
+ DebugValueBoolean,
1453
+ DebugValueFunction,
1454
+ DebugValueGetter,
1455
+ DebugValueNumber,
1456
+ DebugValueObject,
1457
+ DebugValueScopeName,
1458
+ DebugValueString,
1459
+ DebugValueSymbol,
1460
+ DebugValueUndefined,
1461
+ DefaultMarkdown,
1462
+ DefinitionListItem,
1463
+ DefinitionListItemHeading,
1464
+ DefinitionListItemValue,
1465
+ DeleteWatchExpression,
1466
+ Diagnostic,
1467
+ DiagnosticError,
1468
+ DiagnosticWarning,
1469
+ EditorCompletionItem,
1470
+ EditorCompletionItemDeprecated,
1471
+ EditorCompletionItemFocused,
1472
+ EditorCompletionItemHighlight,
1473
+ EditorCursor,
1474
+ EditorRow,
1475
+ EditorSelection,
1476
+ EditorSourceActions,
1477
+ EditorSourceActionsList,
1478
+ Empty,
1479
+ ExtensionActions,
1480
+ ExtensionActive,
1481
+ ExtensionDetail,
1482
+ ExtensionDetailDescription,
1483
+ ExtensionDetailHeader,
1484
+ ExtensionDetailHeaderActions,
1485
+ ExtensionDetailHeaderDetails,
1486
+ ExtensionDetailIcon,
1487
+ ExtensionDetailName,
1488
+ ExtensionDetailNameBadge,
1489
+ ExtensionDetailPanel,
1490
+ ExtensionDetailTab,
1491
+ ExtensionDetailTabSelected,
1492
+ ExtensionDetailTabs,
1493
+ ExtensionHeader,
1494
+ ExtensionListItem,
1495
+ ExtensionListItemAuthorName,
1496
+ ExtensionListItemDescription,
1497
+ ExtensionListItemDetail,
1498
+ ExtensionListItemFooter,
1499
+ ExtensionListItemIcon,
1500
+ ExtensionListItemName,
1501
+ Extensions,
1502
+ Feature,
1503
+ FeatureContent,
1504
+ FeatureWebView,
1505
+ Features,
1506
+ FeaturesList,
1507
+ FileIcon,
1508
+ Filter,
1509
+ FilterBadge,
1510
+ FindWidget,
1511
+ FindWidgetFind,
1512
+ FindWidgetMatchCount,
1513
+ FindWidgetMatchCountEmpty,
1514
+ FindWidgetReplace,
1515
+ FindWidgetRight,
1516
+ FocusOutline,
1517
+ Grow,
1518
+ Highlight,
1519
+ HighlightDeleted,
1520
+ HighlightInserted,
1521
+ HoverDisplayString,
1522
+ HoverDocumentation,
1523
+ HoverEditorRow,
1524
+ HoverProblem,
1525
+ HoverProblemDetail,
1526
+ HoverProblemMessage,
1527
+ IconButton,
1528
+ IconButtonDisabled,
1529
+ IconClose,
1530
+ InputBox: InputBox$1,
1531
+ InputLabel,
1532
+ InputValidationError,
1533
+ Label: Label$2,
1534
+ LabelCut,
1535
+ LabelDetail,
1536
+ Large,
1537
+ List,
1538
+ ListItems,
1539
+ Markdown,
1540
+ MaskIcon: MaskIcon$1,
1541
+ MaskIconBook,
1542
+ MaskIconCaseSensitive,
1543
+ MaskIconChevronDown,
1544
+ MaskIconChevronRight,
1545
+ MaskIconEllipsis,
1546
+ MaskIconExclude,
1547
+ MaskIconPreserveCase,
1548
+ MaskIconRegex,
1549
+ MaskIconReplaceAll,
1550
+ MaskIconSymbolFile,
1551
+ MaskIconWholeWord,
1552
+ Message,
1553
+ MessageAction,
1554
+ MoreInfo,
1555
+ MoreInfoEntry,
1556
+ MoreInfoEntryKey,
1557
+ MoreInfoEntryOdd,
1558
+ MoreInfoEntryValue,
1559
+ MultilineInputBox,
1560
+ Normal,
1561
+ Problem,
1562
+ ProblemAt,
1563
+ ProblemBadge,
1564
+ ProblemSelected,
1565
+ Problems,
1566
+ ProblemsErrorIcon,
1567
+ ProblemsIcon,
1568
+ ProblemsList,
1569
+ ProblemsTable,
1570
+ ProblemsTableBody,
1571
+ ProblemsTableHeader,
1572
+ ProblemsTableRow,
1573
+ ProblemsTableRowItem,
1574
+ ProblemsTableRowOdd,
1575
+ ProblemsWarningIcon,
1576
+ QuickPick,
1577
+ QuickPickHeader,
1578
+ QuickPickHighlight,
1579
+ QuickPickItem,
1580
+ QuickPickItemActive,
1581
+ QuickPickItemDescription,
1582
+ QuickPickItemLabel,
1583
+ QuickPickItems,
1584
+ QuickPickMaskIcon,
1585
+ QuickPickScrollbar,
1586
+ QuickPickScrollbarSlider,
1587
+ QuickPickStatus,
1588
+ Resource,
1589
+ Resources,
1590
+ Sash,
1591
+ SashVertical,
1592
+ ScrollBar,
1593
+ ScrollBarSmall,
1594
+ ScrollBarThumb,
1595
+ ScrollBarThumbActive,
1596
+ ScrollBarVertical,
1597
+ Scrollbar: Scrollbar$1,
1598
+ ScrollbarThumb,
1599
+ ScrollbarTrack,
1600
+ Search,
1601
+ SearchField,
1602
+ SearchFieldButton: SearchFieldButton$1,
1603
+ SearchFieldButtonChecked,
1604
+ SearchFieldButtonDisabled,
1605
+ SearchFieldButtons,
1606
+ SearchFieldContainer,
1607
+ SearchFieldDisabled,
1608
+ SearchFieldError,
1609
+ SearchHeader,
1610
+ SearchHeaderDetails,
1611
+ SearchHeaderDetailsExpanded,
1612
+ SearchHeaderDetailsExpandedTop,
1613
+ SearchHeaderDetailsHeading,
1614
+ SearchHeaderTop,
1615
+ SearchHeaderTopRight,
1616
+ SearchInputError,
1617
+ SearchRemove,
1618
+ SearchToggleButton,
1619
+ SearchToggleButtonExpanded,
1620
+ SettingsButton,
1621
+ SettingsIcon,
1622
+ Small,
1623
+ SourceActionHeading,
1624
+ SourceActionIcon,
1625
+ SourceActionItem,
1626
+ SourceActionItemFocused,
1627
+ SourceControlBadge,
1628
+ Table,
1629
+ TableCell,
1630
+ TableHeading,
1631
+ ToggleDetails,
1632
+ Tree,
1633
+ TreeItem,
1634
+ TreeItemActive,
1635
+ TreeItems,
1636
+ Viewlet: Viewlet$1,
1637
+ ViewletFind,
1638
+ ViewletFindWidget,
1639
+ ViewletSearchMessage,
1640
+ ViewletSearchMessageIndented,
1641
+ Welcome,
1642
+ WelcomeMessage
1172
1643
  };
1644
+
1173
1645
  const Button = 1;
1174
1646
  const Div = 4;
1175
1647
  const H1 = 5;
@@ -1182,19 +1654,17 @@ const Ul = 60;
1182
1654
  const Select$1 = 63;
1183
1655
  const Option = 64;
1184
1656
  const Label$1 = 66;
1185
- const VirtualDomElements = {
1186
- __proto__: null,
1187
- Aside,
1188
- Button,
1189
- Div,
1190
- H1,
1191
- H3,
1192
- Input,
1193
- Label: Label$1,
1194
- Option,
1195
- P,
1196
- Select: Select$1,
1197
- Ul};
1657
+
1658
+ const UpArrow = 14;
1659
+ const DownArrow = 16;
1660
+
1661
+ const DebugWorker = 55;
1662
+ const RendererWorker$1 = 1;
1663
+
1664
+ const mergeClassNames = (...classNames) => {
1665
+ return classNames.filter(Boolean).join(' ');
1666
+ };
1667
+
1198
1668
  const text = data => {
1199
1669
  return {
1200
1670
  type: Text,
@@ -1205,12 +1675,12 @@ const text = data => {
1205
1675
 
1206
1676
  const getKeyBindings$1 = () => {
1207
1677
  return [{
1208
- key: KeyCode.UpArrow,
1209
1678
  command: 'Settings.usePreviousSearchValue',
1679
+ key: UpArrow,
1210
1680
  when: FocusSettingsInput
1211
1681
  }, {
1212
- key: KeyCode.DownArrow,
1213
1682
  command: 'Settings.useNextSearchValue',
1683
+ key: DownArrow,
1214
1684
  when: FocusSettingsInput
1215
1685
  }];
1216
1686
  };
@@ -1246,21 +1716,21 @@ const handleClickTab = (state, name) => {
1246
1716
  return state;
1247
1717
  }
1248
1718
  const {
1719
+ height,
1720
+ itemHeight,
1249
1721
  items,
1250
- tabs,
1251
- searchValue,
1252
1722
  modifiedSettings,
1253
1723
  preferences,
1254
- height,
1255
- itemHeight,
1256
- scrollOffset
1724
+ scrollOffset,
1725
+ searchValue,
1726
+ tabs
1257
1727
  } = state;
1258
1728
  const updatedTabs = getUpdatedTabs(tabs, name);
1259
1729
  const filteredItems = getFilteredItems(items, updatedTabs, searchValue, modifiedSettings, preferences);
1260
1730
  const {
1261
- visibleItems,
1731
+ maxLineY,
1262
1732
  minLineY,
1263
- maxLineY
1733
+ visibleItems
1264
1734
  } = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
1265
1735
  const {
1266
1736
  scrollBarMinHeight
@@ -1271,13 +1741,13 @@ const handleClickTab = (state, name) => {
1271
1741
  } = computeScrollBar(height, filteredItems.length, itemHeight, scrollOffset, scrollBarMinHeight);
1272
1742
  return {
1273
1743
  ...state,
1274
- tabs: updatedTabs,
1275
1744
  filteredItems,
1276
- visibleItems,
1277
- minLineY,
1278
1745
  maxLineY,
1746
+ minLineY,
1279
1747
  scrollBarThumbHeight: thumbHeight,
1280
- scrollBarThumbTop: thumbTop
1748
+ scrollBarThumbTop: thumbTop,
1749
+ tabs: updatedTabs,
1750
+ visibleItems
1281
1751
  };
1282
1752
  };
1283
1753
 
@@ -1344,21 +1814,21 @@ const addToHistory = (history, value) => {
1344
1814
 
1345
1815
  const handleInput = (state, value, inputSource = User) => {
1346
1816
  const {
1347
- items,
1348
- tabs,
1817
+ height,
1349
1818
  history,
1819
+ itemHeight,
1820
+ items,
1350
1821
  modifiedSettings,
1351
1822
  preferences,
1352
- height,
1353
- itemHeight
1823
+ tabs
1354
1824
  } = state;
1355
1825
  const filteredItems = getFilteredItems(items, tabs, value, modifiedSettings, preferences);
1356
1826
  // Reset scroll when filter value changes so the user sees results from the top
1357
1827
  const nextScrollOffset = 0;
1358
1828
  const {
1359
- visibleItems,
1829
+ maxLineY,
1360
1830
  minLineY,
1361
- maxLineY
1831
+ visibleItems
1362
1832
  } = computeVisibleItems(filteredItems, height, nextScrollOffset, itemHeight);
1363
1833
  const {
1364
1834
  scrollBarMinHeight
@@ -1373,18 +1843,18 @@ const handleInput = (state, value, inputSource = User) => {
1373
1843
  } = addToHistory(history, value);
1374
1844
  return {
1375
1845
  ...state,
1376
- searchValue: value,
1377
- filteredItems,
1378
- visibleItems,
1379
- minLineY,
1380
- maxLineY,
1381
1846
  deltaY: 0,
1382
- scrollOffset: nextScrollOffset,
1847
+ filteredItems,
1383
1848
  history: newHistory,
1384
1849
  historyIndex: newHistoryIndex,
1385
1850
  inputSource,
1851
+ maxLineY,
1852
+ minLineY,
1386
1853
  scrollBarThumbHeight: thumbHeight,
1387
- scrollBarThumbTop: thumbTop
1854
+ scrollBarThumbTop: thumbTop,
1855
+ scrollOffset: nextScrollOffset,
1856
+ searchValue: value,
1857
+ visibleItems
1388
1858
  };
1389
1859
  };
1390
1860
 
@@ -1408,8 +1878,8 @@ const handleInputFocus = state => {
1408
1878
  const handleScroll = (state, scrollTop, inputSource = User) => {
1409
1879
  return {
1410
1880
  ...state,
1411
- scrollOffset: scrollTop,
1412
- inputSource
1881
+ inputSource,
1882
+ scrollOffset: scrollTop
1413
1883
  };
1414
1884
  };
1415
1885
 
@@ -1432,12 +1902,12 @@ const getNewModifiedSettings = (modifiedSettings, name) => {
1432
1902
 
1433
1903
  const handleSettingUpdate = (state, name, value, inputSource) => {
1434
1904
  const {
1435
- modifiedSettings,
1905
+ filteredItems,
1436
1906
  items,
1437
- tabs,
1438
- searchValue,
1907
+ modifiedSettings,
1439
1908
  preferences,
1440
- filteredItems
1909
+ searchValue,
1910
+ tabs
1441
1911
  } = state;
1442
1912
  const newModifiedSettings = getNewModifiedSettings(modifiedSettings, name);
1443
1913
  const newPreferences = {
@@ -1447,8 +1917,8 @@ const handleSettingUpdate = (state, name, value, inputSource) => {
1447
1917
  const newFilteredItems = getNewFilteredItems(modifiedSettings, newModifiedSettings, items, tabs, searchValue, filteredItems, preferences, newPreferences);
1448
1918
  return {
1449
1919
  ...state,
1450
- inputSource,
1451
1920
  filteredItems: newFilteredItems,
1921
+ inputSource,
1452
1922
  preferences: newPreferences
1453
1923
  };
1454
1924
  };
@@ -1516,9 +1986,9 @@ const handleWheel = (state, eventDeltaY, inputSource = User) => {
1516
1986
  const clampedDeltaY = clamp(total, 0, maxScrollable);
1517
1987
  const scrollOffset = clampedDeltaY;
1518
1988
  const {
1519
- visibleItems,
1989
+ maxLineY,
1520
1990
  minLineY,
1521
- maxLineY
1991
+ visibleItems
1522
1992
  } = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
1523
1993
  const {
1524
1994
  scrollBarMinHeight
@@ -1530,13 +2000,13 @@ const handleWheel = (state, eventDeltaY, inputSource = User) => {
1530
2000
  return {
1531
2001
  ...state,
1532
2002
  deltaY: clampedDeltaY,
1533
- scrollOffset,
1534
- visibleItems,
1535
- minLineY,
1536
- maxLineY,
1537
2003
  inputSource,
2004
+ maxLineY,
2005
+ minLineY,
1538
2006
  scrollBarThumbHeight: thumbHeight,
1539
- scrollBarThumbTop: thumbTop
2007
+ scrollBarThumbTop: thumbTop,
2008
+ scrollOffset,
2009
+ visibleItems
1540
2010
  };
1541
2011
  };
1542
2012
 
@@ -1553,15 +2023,13 @@ const getModifiedSettings = preferences => {
1553
2023
  };
1554
2024
 
1555
2025
  const rpcs = Object.create(null);
1556
- const set$g = (id, rpc) => {
2026
+ const set$2 = (id, rpc) => {
1557
2027
  rpcs[id] = rpc;
1558
2028
  };
1559
2029
  const get = id => {
1560
2030
  return rpcs[id];
1561
2031
  };
1562
2032
 
1563
- /* eslint-disable @typescript-eslint/explicit-function-return-type */
1564
-
1565
2033
  const create = rpcId => {
1566
2034
  return {
1567
2035
  // @ts-ignore
@@ -1577,7 +2045,7 @@ const create = rpcId => {
1577
2045
  return rpc.invokeAndTransfer(method, ...params);
1578
2046
  },
1579
2047
  set(rpc) {
1580
- set$g(rpcId, rpc);
2048
+ set$2(rpcId, rpc);
1581
2049
  },
1582
2050
  async dispose() {
1583
2051
  const rpc = get(rpcId);
@@ -1585,268 +2053,281 @@ const create = rpcId => {
1585
2053
  }
1586
2054
  };
1587
2055
  };
1588
- const DebugWorker$1 = 55;
1589
- const RendererWorker$1 = 1;
2056
+
1590
2057
  const {
1591
- invoke: invoke$3,
1592
- invokeAndTransfer: invokeAndTransfer$3,
1593
- set: set$3,
1594
- dispose: dispose$3
2058
+ invoke,
2059
+ invokeAndTransfer,
2060
+ set: set$1,
2061
+ dispose
1595
2062
  } = create(RendererWorker$1);
1596
2063
  const searchFileHtml = async uri => {
1597
- return invoke$3('ExtensionHost.searchFileWithHtml', uri);
2064
+ return invoke('ExtensionHost.searchFileWithHtml', uri);
1598
2065
  };
1599
2066
  const getFilePathElectron = async file => {
1600
- return invoke$3('FileSystemHandle.getFilePathElectron', file);
2067
+ return invoke('FileSystemHandle.getFilePathElectron', file);
1601
2068
  };
1602
2069
  const showContextMenu = async (x, y, id, ...args) => {
1603
- return invoke$3('ContextMenu.show', x, y, id, ...args);
2070
+ return invoke('ContextMenu.show', x, y, id, ...args);
1604
2071
  };
1605
2072
  const getElectronVersion = async () => {
1606
- return invoke$3('Process.getElectronVersion');
2073
+ return invoke('Process.getElectronVersion');
1607
2074
  };
1608
2075
  const applyBulkReplacement = async bulkEdits => {
1609
- await invoke$3('BulkReplacement.applyBulkReplacement', bulkEdits);
2076
+ await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
1610
2077
  };
1611
2078
  const setColorTheme = async id => {
1612
2079
  // @ts-ignore
1613
- return invoke$3(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2080
+ return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
1614
2081
  };
1615
2082
  const getNodeVersion = async () => {
1616
- return invoke$3('Process.getNodeVersion');
2083
+ return invoke('Process.getNodeVersion');
1617
2084
  };
1618
2085
  const getChromeVersion = async () => {
1619
- return invoke$3('Process.getChromeVersion');
2086
+ return invoke('Process.getChromeVersion');
1620
2087
  };
1621
2088
  const getV8Version = async () => {
1622
- return invoke$3('Process.getV8Version');
2089
+ return invoke('Process.getV8Version');
1623
2090
  };
1624
2091
  const getFileHandles = async fileIds => {
1625
- const files = await invoke$3('FileSystemHandle.getFileHandles', fileIds);
2092
+ const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
1626
2093
  return files;
1627
2094
  };
1628
2095
  const setWorkspacePath = async path => {
1629
- await invoke$3('Workspace.setPath', path);
2096
+ await invoke('Workspace.setPath', path);
1630
2097
  };
1631
2098
  const registerWebViewInterceptor = async (id, port) => {
1632
- await invokeAndTransfer$3('WebView.registerInterceptor', id, port);
2099
+ await invokeAndTransfer('WebView.registerInterceptor', id, port);
1633
2100
  };
1634
2101
  const unregisterWebViewInterceptor = async id => {
1635
- await invoke$3('WebView.unregisterInterceptor', id);
2102
+ await invoke('WebView.unregisterInterceptor', id);
1636
2103
  };
1637
2104
  const sendMessagePortToEditorWorker = async (port, rpcId) => {
1638
2105
  const command = 'HandleMessagePort.handleMessagePort';
1639
2106
  // @ts-ignore
1640
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
2107
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1641
2108
  };
1642
2109
  const sendMessagePortToErrorWorker = async (port, rpcId) => {
1643
2110
  const command = 'Errors.handleMessagePort';
1644
2111
  // @ts-ignore
1645
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
2112
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
1646
2113
  };
1647
2114
  const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
1648
2115
  const command = 'Markdown.handleMessagePort';
1649
2116
  // @ts-ignore
1650
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
2117
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
2118
+ };
2119
+ const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
2120
+ const command = 'IconTheme.handleMessagePort';
2121
+ // @ts-ignore
2122
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1651
2123
  };
1652
2124
  const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
1653
2125
  const command = 'FileSystem.handleMessagePort';
1654
2126
  // @ts-ignore
1655
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
2127
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
1656
2128
  };
1657
2129
  const readFile = async uri => {
1658
- return invoke$3('FileSystem.readFile', uri);
2130
+ return invoke('FileSystem.readFile', uri);
1659
2131
  };
1660
2132
  const getWebViewSecret = async key => {
1661
2133
  // @ts-ignore
1662
- return invoke$3('WebView.getSecret', key);
2134
+ return invoke('WebView.getSecret', key);
1663
2135
  };
1664
2136
  const setWebViewPort = async (uid, port, origin, portType) => {
1665
- return invokeAndTransfer$3('WebView.setPort', uid, port, origin, portType);
2137
+ return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
1666
2138
  };
1667
2139
  const setFocus = key => {
1668
- return invoke$3('Focus.setFocus', key);
2140
+ return invoke('Focus.setFocus', key);
1669
2141
  };
1670
2142
  const getFileIcon = async options => {
1671
- return invoke$3('IconTheme.getFileIcon', options);
2143
+ return invoke('IconTheme.getFileIcon', options);
1672
2144
  };
1673
2145
  const getColorThemeNames = async () => {
1674
- return invoke$3('ColorTheme.getColorThemeNames');
2146
+ return invoke('ColorTheme.getColorThemeNames');
1675
2147
  };
1676
2148
  const disableExtension = async id => {
1677
- return invoke$3('ExtensionManagement.disable', id);
2149
+ // @ts-ignore
2150
+ return invoke('ExtensionManagement.disable', id);
1678
2151
  };
1679
2152
  const enableExtension = async id => {
1680
2153
  // @ts-ignore
1681
- return invoke$3('ExtensionManagement.enable', id);
2154
+ return invoke('ExtensionManagement.enable', id);
1682
2155
  };
1683
2156
  const handleDebugChange = async params => {
1684
2157
  // @ts-ignore
1685
- return invoke$3('Run And Debug.handleChange', params);
2158
+ return invoke('Run And Debug.handleChange', params);
1686
2159
  };
1687
2160
  const getFolderIcon = async options => {
1688
- return invoke$3('IconTheme.getFolderIcon', options);
2161
+ return invoke('IconTheme.getFolderIcon', options);
1689
2162
  };
1690
2163
  const closeWidget = async widgetId => {
1691
- return invoke$3('Viewlet.closeWidget', widgetId);
2164
+ return invoke('Viewlet.closeWidget', widgetId);
1692
2165
  };
1693
2166
  const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
1694
2167
  const command = 'HandleMessagePort.handleMessagePort2';
1695
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
2168
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
1696
2169
  };
1697
2170
  const sendMessagePortToSearchProcess = async port => {
1698
- await invokeAndTransfer$3('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
2171
+ await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
1699
2172
  };
1700
2173
  const confirm = async (message, options) => {
1701
2174
  // @ts-ignore
1702
- const result = await invoke$3('Confirmprompt.prompt', message, options);
2175
+ const result = await invoke('ConfirmPrompt.prompt', message, options);
1703
2176
  return result;
1704
2177
  };
1705
2178
  const getRecentlyOpened = async () => {
1706
- return invoke$3(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
2179
+ return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
1707
2180
  };
1708
2181
  const getKeyBindings = async () => {
1709
- return invoke$3('KeyBindingsInitial.getKeyBindings');
2182
+ return invoke('KeyBindingsInitial.getKeyBindings');
1710
2183
  };
1711
2184
  const writeClipBoardText = async text => {
1712
- await invoke$3('ClipBoard.writeText', /* text */text);
2185
+ await invoke('ClipBoard.writeText', /* text */text);
1713
2186
  };
1714
2187
  const writeClipBoardImage = async blob => {
1715
2188
  // @ts-ignore
1716
- await invoke$3('ClipBoard.writeImage', /* text */blob);
2189
+ await invoke('ClipBoard.writeImage', /* text */blob);
1717
2190
  };
1718
2191
  const searchFileMemory = async uri => {
1719
2192
  // @ts-ignore
1720
- return invoke$3('ExtensionHost.searchFileWithMemory', uri);
2193
+ return invoke('ExtensionHost.searchFileWithMemory', uri);
1721
2194
  };
1722
2195
  const searchFileFetch = async uri => {
1723
- return invoke$3('ExtensionHost.searchFileWithFetch', uri);
2196
+ return invoke('ExtensionHost.searchFileWithFetch', uri);
1724
2197
  };
1725
2198
  const showMessageBox = async options => {
1726
- return invoke$3('ElectronDialog.showMessageBox', options);
2199
+ return invoke('ElectronDialog.showMessageBox', options);
1727
2200
  };
1728
2201
  const handleDebugResumed = async params => {
1729
- await invoke$3('Run And Debug.handleResumed', params);
2202
+ await invoke('Run And Debug.handleResumed', params);
1730
2203
  };
1731
2204
  const openWidget = async name => {
1732
- await invoke$3('Viewlet.openWidget', name);
2205
+ await invoke('Viewlet.openWidget', name);
1733
2206
  };
1734
2207
  const getIcons = async requests => {
1735
- const icons = await invoke$3('IconTheme.getIcons', requests);
2208
+ const icons = await invoke('IconTheme.getIcons', requests);
1736
2209
  return icons;
1737
2210
  };
1738
2211
  const activateByEvent = event => {
1739
- return invoke$3('ExtensionHostManagement.activateByEvent', event);
2212
+ return invoke('ExtensionHostManagement.activateByEvent', event);
1740
2213
  };
1741
2214
  const setAdditionalFocus = focusKey => {
1742
2215
  // @ts-ignore
1743
- return invoke$3('Focus.setAdditionalFocus', focusKey);
2216
+ return invoke('Focus.setAdditionalFocus', focusKey);
1744
2217
  };
1745
2218
  const getActiveEditorId = () => {
1746
2219
  // @ts-ignore
1747
- return invoke$3('GetActiveEditor.getActiveEditorId');
2220
+ return invoke('GetActiveEditor.getActiveEditorId');
1748
2221
  };
1749
2222
  const getWorkspacePath = () => {
1750
- return invoke$3('Workspace.getPath');
2223
+ return invoke('Workspace.getPath');
1751
2224
  };
1752
2225
  const sendMessagePortToRendererProcess = async port => {
1753
2226
  const command = 'HandleMessagePort.handleMessagePort';
1754
2227
  // @ts-ignore
1755
- await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker$1);
2228
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
1756
2229
  };
1757
2230
  const getPreference = async key => {
1758
- return await invoke$3('Preferences.get', key);
2231
+ return await invoke('Preferences.get', key);
1759
2232
  };
1760
2233
  const getAllExtensions = async () => {
1761
- return invoke$3('ExtensionManagement.getAllExtensions');
2234
+ return invoke('ExtensionManagement.getAllExtensions');
1762
2235
  };
1763
2236
  const rerenderEditor = async key => {
1764
2237
  // @ts-ignore
1765
- return invoke$3('Editor.rerender', key);
2238
+ return invoke('Editor.rerender', key);
1766
2239
  };
1767
2240
  const handleDebugPaused = async params => {
1768
- await invoke$3('Run And Debug.handlePaused', params);
2241
+ await invoke('Run And Debug.handlePaused', params);
1769
2242
  };
1770
2243
  const openUri = async (uri, focus, options) => {
1771
- await invoke$3('Main.openUri', uri, focus, options);
2244
+ await invoke('Main.openUri', uri, focus, options);
1772
2245
  };
1773
2246
  const sendMessagePortToSyntaxHighlightingWorker = async port => {
1774
- await invokeAndTransfer$3(
2247
+ await invokeAndTransfer(
1775
2248
  // @ts-ignore
1776
2249
  'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
1777
2250
  };
1778
2251
  const handleDebugScriptParsed = async script => {
1779
- await invoke$3('Run And Debug.handleScriptParsed', script);
2252
+ await invoke('Run And Debug.handleScriptParsed', script);
1780
2253
  };
1781
2254
  const getWindowId = async () => {
1782
- return invoke$3('GetWindowId.getWindowId');
2255
+ return invoke('GetWindowId.getWindowId');
1783
2256
  };
1784
2257
  const getBlob = async uri => {
1785
2258
  // @ts-ignore
1786
- return invoke$3('FileSystem.getBlob', uri);
2259
+ return invoke('FileSystem.getBlob', uri);
1787
2260
  };
1788
2261
  const getExtensionCommands = async () => {
1789
- return invoke$3('ExtensionHost.getCommands');
2262
+ return invoke('ExtensionHost.getCommands');
1790
2263
  };
1791
2264
  const showErrorDialog = async errorInfo => {
1792
2265
  // @ts-ignore
1793
- await invoke$3('ErrorHandling.showErrorDialog', errorInfo);
2266
+ await invoke('ErrorHandling.showErrorDialog', errorInfo);
1794
2267
  };
1795
2268
  const getFolderSize = async uri => {
1796
2269
  // @ts-ignore
1797
- return await invoke$3('FileSystem.getFolderSize', uri);
2270
+ return await invoke('FileSystem.getFolderSize', uri);
1798
2271
  };
1799
2272
  const getExtension = async id => {
1800
2273
  // @ts-ignore
1801
- return invoke$3('ExtensionManagement.getExtension', id);
2274
+ return invoke('ExtensionManagement.getExtension', id);
1802
2275
  };
1803
2276
  const getMarkdownDom = async html => {
1804
2277
  // @ts-ignore
1805
- return invoke$3('Markdown.getVirtualDom', html);
2278
+ return invoke('Markdown.getVirtualDom', html);
1806
2279
  };
1807
2280
  const renderMarkdown = async (markdown, options) => {
1808
2281
  // @ts-ignore
1809
- return invoke$3('Markdown.renderMarkdown', markdown, options);
2282
+ return invoke('Markdown.renderMarkdown', markdown, options);
1810
2283
  };
1811
2284
  const openNativeFolder = async uri => {
1812
2285
  // @ts-ignore
1813
- await invoke$3('OpenNativeFolder.openNativeFolder', uri);
2286
+ await invoke('OpenNativeFolder.openNativeFolder', uri);
1814
2287
  };
1815
2288
  const uninstallExtension = async id => {
1816
- return invoke$3('ExtensionManagement.uninstall', id);
2289
+ return invoke('ExtensionManagement.uninstall', id);
1817
2290
  };
1818
2291
  const installExtension = async id => {
1819
2292
  // @ts-ignore
1820
- return invoke$3('ExtensionManagement.install', id);
2293
+ return invoke('ExtensionManagement.install', id);
1821
2294
  };
1822
2295
  const openExtensionSearch = async () => {
1823
2296
  // @ts-ignore
1824
- return invoke$3('SideBar.openViewlet', 'Extensions');
2297
+ return invoke('SideBar.openViewlet', 'Extensions');
1825
2298
  };
1826
2299
  const setExtensionsSearchValue = async searchValue => {
1827
2300
  // @ts-ignore
1828
- return invoke$3('Extensions.handleInput', searchValue);
2301
+ return invoke('Extensions.handleInput', searchValue);
1829
2302
  };
1830
2303
  const openExternal = async uri => {
1831
2304
  // @ts-ignore
1832
- await invoke$3('Open.openExternal', uri);
2305
+ await invoke('Open.openExternal', uri);
1833
2306
  };
1834
2307
  const openUrl = async uri => {
1835
2308
  // @ts-ignore
1836
- await invoke$3('Open.openUrl', uri);
2309
+ await invoke('Open.openUrl', uri);
1837
2310
  };
1838
2311
  const getAllPreferences = async () => {
1839
2312
  // @ts-ignore
1840
- return invoke$3('Preferences.getAll');
2313
+ return invoke('Preferences.getAll');
1841
2314
  };
1842
2315
  const showSaveFilePicker = async () => {
1843
2316
  // @ts-ignore
1844
- return invoke$3('FilePicker.showSaveFilePicker');
2317
+ return invoke('FilePicker.showSaveFilePicker');
1845
2318
  };
1846
2319
  const getLogsDir = async () => {
1847
2320
  // @ts-ignore
1848
- return invoke$3('PlatformPaths.getLogsDir');
2321
+ return invoke('PlatformPaths.getLogsDir');
2322
+ };
2323
+ const registerMockRpc = commandMap => {
2324
+ const mockRpc = createMockRpc({
2325
+ commandMap
2326
+ });
2327
+ set$1(mockRpc);
2328
+ return mockRpc;
1849
2329
  };
2330
+
1850
2331
  const RendererWorker = {
1851
2332
  __proto__: null,
1852
2333
  activateByEvent,
@@ -1854,7 +2335,7 @@ const RendererWorker = {
1854
2335
  closeWidget,
1855
2336
  confirm,
1856
2337
  disableExtension,
1857
- dispose: dispose$3,
2338
+ dispose,
1858
2339
  enableExtension,
1859
2340
  getActiveEditorId,
1860
2341
  getAllExtensions,
@@ -1886,8 +2367,8 @@ const RendererWorker = {
1886
2367
  handleDebugResumed,
1887
2368
  handleDebugScriptParsed,
1888
2369
  installExtension,
1889
- invoke: invoke$3,
1890
- invokeAndTransfer: invokeAndTransfer$3,
2370
+ invoke,
2371
+ invokeAndTransfer,
1891
2372
  openExtensionSearch,
1892
2373
  openExternal,
1893
2374
  openNativeFolder,
@@ -1895,6 +2376,7 @@ const RendererWorker = {
1895
2376
  openUrl,
1896
2377
  openWidget,
1897
2378
  readFile,
2379
+ registerMockRpc,
1898
2380
  registerWebViewInterceptor,
1899
2381
  renderMarkdown,
1900
2382
  rerenderEditor,
@@ -1905,11 +2387,12 @@ const RendererWorker = {
1905
2387
  sendMessagePortToErrorWorker,
1906
2388
  sendMessagePortToExtensionHostWorker,
1907
2389
  sendMessagePortToFileSystemWorker,
2390
+ sendMessagePortToIconThemeWorker,
1908
2391
  sendMessagePortToMarkdownWorker,
1909
2392
  sendMessagePortToRendererProcess,
1910
2393
  sendMessagePortToSearchProcess,
1911
2394
  sendMessagePortToSyntaxHighlightingWorker,
1912
- set: set$3,
2395
+ set: set$1,
1913
2396
  setAdditionalFocus,
1914
2397
  setColorTheme,
1915
2398
  setExtensionsSearchValue,
@@ -1928,7 +2411,7 @@ const RendererWorker = {
1928
2411
 
1929
2412
  const getPreferences = async () => {
1930
2413
  try {
1931
- return await RendererWorker.getAllPreferences();
2414
+ return await getAllPreferences();
1932
2415
  } catch {
1933
2416
  return {};
1934
2417
  }
@@ -3032,30 +3515,29 @@ const unknownSettingType = () => {
3032
3515
 
3033
3516
  const getSettingItemsApplications = () => {
3034
3517
  return [{
3035
- id: 'telemetry',
3036
- heading: telemetry(),
3518
+ category: ApplicationsTab,
3037
3519
  description: telemetryDescription(),
3520
+ heading: telemetry(),
3521
+ id: 'telemetry',
3038
3522
  type: Boolean$1,
3039
- value: 'true',
3040
- category: ApplicationsTab
3523
+ value: 'true'
3041
3524
  }, {
3042
- id: 'updates',
3043
- heading: autoUpdates(),
3525
+ category: ApplicationsTab,
3044
3526
  description: autoUpdatesDescription(),
3527
+ heading: autoUpdates(),
3528
+ id: 'updates',
3045
3529
  type: Boolean$1,
3046
- value: 'true',
3047
- category: ApplicationsTab
3530
+ value: 'true'
3048
3531
  }];
3049
3532
  };
3050
3533
 
3051
3534
  const getSettingItemsEditor = () => {
3052
3535
  return [{
3053
- id: 'editor.fontSize',
3054
- heading: fontSize(),
3536
+ category: TextEditorTab,
3055
3537
  description: fontSizeDescription(),
3538
+ heading: fontSize(),
3539
+ id: 'editor.fontSize',
3056
3540
  type: Number$1,
3057
- value: 15,
3058
- category: TextEditorTab,
3059
3541
  validate(value) {
3060
3542
  if (typeof value !== 'number') {
3061
3543
  return 'font size must be of type number';
@@ -3069,91 +3551,91 @@ const getSettingItemsEditor = () => {
3069
3551
  return 'font size must not be greater than 100';
3070
3552
  }
3071
3553
  return '';
3072
- }
3554
+ },
3555
+ value: 15
3073
3556
  }, {
3074
- id: 'editor.fontFamily',
3075
- heading: fontFamily(),
3557
+ category: TextEditorTab,
3076
3558
  description: fontFamilyDescription(),
3559
+ heading: fontFamily(),
3560
+ id: 'editor.fontFamily',
3077
3561
  type: String,
3078
- value: 'Fira Code',
3079
- category: TextEditorTab
3562
+ value: 'Fira Code'
3080
3563
  }, {
3081
- id: 'editor.wordWrap',
3082
- heading: wordWrap(),
3083
- description: wordWrapDescription(),
3084
- type: Enum,
3085
- value: 'off',
3086
3564
  category: TextEditorTab,
3565
+ description: wordWrapDescription(),
3566
+ heading: wordWrap(),
3567
+ id: 'editor.wordWrap',
3087
3568
  options: [{
3088
3569
  id: 'editor.on',
3089
3570
  label: 'On' // i18n
3090
3571
  }, {
3091
3572
  id: 'editor.off',
3092
3573
  label: 'off' // i18n
3093
- }]
3094
- }, {
3095
- id: 'editor.lineNumbers',
3096
- heading: lineNumbers(),
3097
- description: lineNumbersDescription(),
3574
+ }],
3098
3575
  type: Enum,
3099
- value: 'on',
3576
+ value: 'off'
3577
+ }, {
3100
3578
  category: TextEditorTab,
3579
+ description: lineNumbersDescription(),
3580
+ heading: lineNumbers(),
3581
+ id: 'editor.lineNumbers',
3101
3582
  options: [{
3102
3583
  id: 'editor.on',
3103
3584
  label: 'On' // i18n
3104
3585
  }, {
3105
3586
  id: 'editor.off',
3106
3587
  label: 'off' // i18n
3107
- }]
3588
+ }],
3589
+ type: Enum,
3590
+ value: 'on'
3108
3591
  }, {
3109
- id: 'editor.minimap',
3110
- heading: minimap(),
3592
+ category: TextEditorTab,
3111
3593
  description: minimapDescription(),
3594
+ heading: minimap(),
3595
+ id: 'editor.minimap',
3112
3596
  type: Boolean$1,
3113
- value: 'true',
3114
- category: TextEditorTab
3597
+ value: 'true'
3115
3598
  }, {
3116
- id: 'editor.scrollBeyondLastLine',
3117
- heading: scrollBeyondLastLine(),
3599
+ category: TextEditorTab,
3118
3600
  description: scrollBeyondLastLineDescription(),
3601
+ heading: scrollBeyondLastLine(),
3602
+ id: 'editor.scrollBeyondLastLine',
3119
3603
  type: Boolean$1,
3120
- value: 'false',
3121
- category: TextEditorTab
3604
+ value: 'false'
3122
3605
  }, {
3123
- id: 'editor.smoothScrolling',
3124
- heading: smoothScrolling(),
3606
+ category: TextEditorTab,
3125
3607
  description: smoothScrollingDescription(),
3608
+ heading: smoothScrolling(),
3609
+ id: 'editor.smoothScrolling',
3126
3610
  type: Boolean$1,
3127
- value: 'true',
3128
- category: TextEditorTab
3611
+ value: 'true'
3129
3612
  }, {
3130
- id: 'editor.cursorBlinking',
3131
- heading: cursorBlinking(),
3613
+ category: TextEditorTab,
3132
3614
  description: cursorBlinkingDescription(),
3615
+ heading: cursorBlinking(),
3616
+ id: 'editor.cursorBlinking',
3133
3617
  type: String,
3134
- value: 'blink',
3135
- category: TextEditorTab
3618
+ value: 'blink'
3136
3619
  }, {
3137
- id: 'editor.cursorStyle',
3138
- heading: cursorStyle(),
3620
+ category: TextEditorTab,
3139
3621
  description: cursorStyleDescription(),
3622
+ heading: cursorStyle(),
3623
+ id: 'editor.cursorStyle',
3140
3624
  type: String,
3141
- value: 'line',
3142
- category: TextEditorTab
3625
+ value: 'line'
3143
3626
  }, {
3144
- id: 'editor.cursorWidth',
3145
- heading: cursorWidth(),
3627
+ category: TextEditorTab,
3146
3628
  description: cursorWidthDescription(),
3629
+ heading: cursorWidth(),
3630
+ id: 'editor.cursorWidth',
3147
3631
  type: Number$1,
3148
- value: '0',
3149
- category: TextEditorTab
3632
+ value: '0'
3150
3633
  }, {
3151
- id: 'editor.tabSize',
3152
- heading: tabSize(),
3634
+ category: TextEditorTab,
3153
3635
  description: tabSizeDescription(),
3636
+ heading: tabSize(),
3637
+ id: 'editor.tabSize',
3154
3638
  type: Number$1,
3155
- value: '4',
3156
- category: TextEditorTab,
3157
3639
  validate(value) {
3158
3640
  if (typeof value !== 'number') {
3159
3641
  return 'font size must be of type number';
@@ -3167,839 +3649,840 @@ const getSettingItemsEditor = () => {
3167
3649
  return `tab size must not be greater than ${maxTabSize}`;
3168
3650
  }
3169
3651
  return '';
3170
- }
3652
+ },
3653
+ value: '4'
3171
3654
  }, {
3172
- id: 'editor.insertSpaces',
3173
- heading: insertSpaces(),
3655
+ category: TextEditorTab,
3174
3656
  description: insertSpacesDescription(),
3657
+ heading: insertSpaces(),
3658
+ id: 'editor.insertSpaces',
3175
3659
  type: Boolean$1,
3176
- value: 'true',
3177
- category: TextEditorTab
3660
+ value: 'true'
3178
3661
  }, {
3179
- id: 'editor.detectIndentation',
3180
- heading: detectIndentation(),
3662
+ category: TextEditorTab,
3181
3663
  description: detectIndentationDescription(),
3664
+ heading: detectIndentation(),
3665
+ id: 'editor.detectIndentation',
3182
3666
  type: Boolean$1,
3183
- value: 'true',
3184
- category: TextEditorTab
3667
+ value: 'true'
3185
3668
  }, {
3186
- id: 'editor.trimAutoWhitespace',
3187
- heading: trimAutoWhitespace(),
3669
+ category: TextEditorTab,
3188
3670
  description: trimAutoWhitespaceDescription(),
3671
+ heading: trimAutoWhitespace(),
3672
+ id: 'editor.trimAutoWhitespace',
3189
3673
  type: Boolean$1,
3190
- value: 'true',
3191
- category: TextEditorTab
3674
+ value: 'true'
3192
3675
  }, {
3193
- id: 'editor.largeFileOptimizations',
3194
- heading: largeFileOptimizations(),
3676
+ category: TextEditorTab,
3195
3677
  description: largeFileOptimizationsDescription(),
3678
+ heading: largeFileOptimizations(),
3679
+ id: 'editor.largeFileOptimizations',
3196
3680
  type: Boolean$1,
3197
- value: 'true',
3198
- category: TextEditorTab
3681
+ value: 'true'
3199
3682
  }, {
3200
- id: 'editor.renderWhitespace',
3201
- heading: renderWhitespace(),
3683
+ category: TextEditorTab,
3202
3684
  description: renderWhitespaceDescription(),
3685
+ heading: renderWhitespace(),
3686
+ id: 'editor.renderWhitespace',
3203
3687
  type: String,
3204
- value: 'selection',
3205
- category: TextEditorTab
3688
+ value: 'selection'
3206
3689
  }, {
3207
- id: 'editor.renderControlCharacters',
3208
- heading: renderControlCharacters(),
3690
+ category: TextEditorTab,
3209
3691
  description: renderControlCharactersDescription(),
3692
+ heading: renderControlCharacters(),
3693
+ id: 'editor.renderControlCharacters',
3210
3694
  type: Boolean$1,
3211
- value: 'false',
3212
- category: TextEditorTab
3695
+ value: 'false'
3213
3696
  }, {
3214
- id: 'editor.renderLineHighlight',
3215
- heading: renderLineHighlight(),
3697
+ category: TextEditorTab,
3216
3698
  description: renderLineHighlightDescription(),
3699
+ heading: renderLineHighlight(),
3700
+ id: 'editor.renderLineHighlight',
3217
3701
  type: String,
3218
- value: 'line',
3219
- category: TextEditorTab
3702
+ value: 'line'
3220
3703
  }, {
3221
- id: 'editor.codeLens',
3222
- heading: codeLens(),
3704
+ category: TextEditorTab,
3223
3705
  description: codeLensDescription(),
3706
+ heading: codeLens(),
3707
+ id: 'editor.codeLens',
3224
3708
  type: Boolean$1,
3225
- value: 'true',
3226
- category: TextEditorTab
3709
+ value: 'true'
3227
3710
  }, {
3228
- id: 'editor.folding',
3229
- heading: folding(),
3711
+ category: TextEditorTab,
3230
3712
  description: foldingDescription(),
3713
+ heading: folding(),
3714
+ id: 'editor.folding',
3231
3715
  type: Boolean$1,
3232
- value: 'true',
3233
- category: TextEditorTab
3716
+ value: 'true'
3234
3717
  }, {
3235
- id: 'editor.showFoldingControls',
3236
- heading: showFoldingControls(),
3718
+ category: TextEditorTab,
3237
3719
  description: showFoldingControlsDescription(),
3720
+ heading: showFoldingControls(),
3721
+ id: 'editor.showFoldingControls',
3238
3722
  type: String,
3239
- value: 'mouseover',
3240
- category: TextEditorTab
3723
+ value: 'mouseover'
3241
3724
  }, {
3242
- id: 'editor.unfoldOnClickAfterEnd',
3243
- heading: unfoldOnClickAfterEnd(),
3725
+ category: TextEditorTab,
3244
3726
  description: unfoldOnClickAfterEndDescription(),
3727
+ heading: unfoldOnClickAfterEnd(),
3728
+ id: 'editor.unfoldOnClickAfterEnd',
3245
3729
  type: Boolean$1,
3246
- value: 'false',
3247
- category: TextEditorTab
3730
+ value: 'false'
3248
3731
  }, {
3249
- id: 'editor.links',
3250
- heading: links(),
3732
+ category: TextEditorTab,
3251
3733
  description: linksDescription(),
3734
+ heading: links(),
3735
+ id: 'editor.links',
3252
3736
  type: Boolean$1,
3253
- value: 'true',
3254
- category: TextEditorTab
3737
+ value: 'true'
3255
3738
  }, {
3256
- id: 'editor.colorDecorators',
3257
- heading: colorDecorators(),
3739
+ category: TextEditorTab,
3258
3740
  description: colorDecoratorsDescription(),
3741
+ heading: colorDecorators(),
3742
+ id: 'editor.colorDecorators',
3259
3743
  type: Boolean$1,
3260
- value: 'true',
3261
- category: TextEditorTab
3744
+ value: 'true'
3262
3745
  }, {
3263
- id: 'editor.lightbulb',
3264
- heading: lightbulb(),
3746
+ category: TextEditorTab,
3265
3747
  description: lightbulbDescription(),
3748
+ heading: lightbulb(),
3749
+ id: 'editor.lightbulb',
3266
3750
  type: Boolean$1,
3267
- value: 'true',
3268
- category: TextEditorTab
3751
+ value: 'true'
3269
3752
  }, {
3270
- id: 'editor.codeActionsOnSave',
3271
- heading: codeActionsOnSave(),
3753
+ category: TextEditorTab,
3272
3754
  description: codeActionsOnSaveDescription(),
3755
+ heading: codeActionsOnSave(),
3756
+ id: 'editor.codeActionsOnSave',
3273
3757
  type: Boolean$1,
3274
- value: 'false',
3275
- category: TextEditorTab
3758
+ value: 'false'
3276
3759
  }, {
3277
- id: 'editor.formatOnPaste',
3278
- heading: formatOnPaste(),
3760
+ category: TextEditorTab,
3279
3761
  description: formatOnPasteDescription(),
3762
+ heading: formatOnPaste(),
3763
+ id: 'editor.formatOnPaste',
3280
3764
  type: Boolean$1,
3281
- value: 'false',
3282
- category: TextEditorTab
3765
+ value: 'false'
3283
3766
  }, {
3284
- id: 'editor.formatOnType',
3285
- heading: formatOnType(),
3767
+ category: TextEditorTab,
3286
3768
  description: formatOnTypeDescription(),
3769
+ heading: formatOnType(),
3770
+ id: 'editor.formatOnType',
3287
3771
  type: Boolean$1,
3288
- value: 'false',
3289
- category: TextEditorTab
3772
+ value: 'false'
3290
3773
  }, {
3291
- id: 'editor.acceptSuggestionOnCommitCharacter',
3292
- heading: acceptSuggestionOnCommitCharacter(),
3774
+ category: TextEditorTab,
3293
3775
  description: acceptSuggestionOnCommitCharacterDescription(),
3776
+ heading: acceptSuggestionOnCommitCharacter(),
3777
+ id: 'editor.acceptSuggestionOnCommitCharacter',
3294
3778
  type: Boolean$1,
3295
- value: 'true',
3296
- category: TextEditorTab
3779
+ value: 'true'
3297
3780
  }, {
3298
- id: 'editor.acceptSuggestionOnEnter',
3299
- heading: acceptSuggestionOnEnter(),
3781
+ category: TextEditorTab,
3300
3782
  description: acceptSuggestionOnEnterDescription(),
3783
+ heading: acceptSuggestionOnEnter(),
3784
+ id: 'editor.acceptSuggestionOnEnter',
3301
3785
  type: String,
3302
- value: 'on',
3303
- category: TextEditorTab
3786
+ value: 'on'
3304
3787
  }, {
3305
- id: 'editor.tabCompletion',
3306
- heading: tabCompletion(),
3788
+ category: TextEditorTab,
3307
3789
  description: tabCompletionDescription(),
3790
+ heading: tabCompletion(),
3791
+ id: 'editor.tabCompletion',
3308
3792
  type: String,
3309
- value: 'on',
3310
- category: TextEditorTab
3793
+ value: 'on'
3311
3794
  }, {
3312
- id: 'editor.wordBasedSuggestions',
3313
- heading: wordBasedSuggestions(),
3795
+ category: TextEditorTab,
3314
3796
  description: wordBasedSuggestionsDescription(),
3797
+ heading: wordBasedSuggestions(),
3798
+ id: 'editor.wordBasedSuggestions',
3315
3799
  type: Boolean$1,
3316
- value: 'true',
3317
- category: TextEditorTab
3800
+ value: 'true'
3318
3801
  }, {
3319
- id: 'editor.suggestOnTriggerCharacters',
3320
- heading: suggestOnTriggerCharacters(),
3802
+ category: TextEditorTab,
3321
3803
  description: suggestOnTriggerCharactersDescription(),
3804
+ heading: suggestOnTriggerCharacters(),
3805
+ id: 'editor.suggestOnTriggerCharacters',
3322
3806
  type: Boolean$1,
3323
- value: 'true',
3324
- category: TextEditorTab
3807
+ value: 'true'
3325
3808
  }, {
3326
- id: 'editor.quickSuggestions',
3327
- heading: quickSuggestions(),
3809
+ category: TextEditorTab,
3328
3810
  description: quickSuggestionsDescription(),
3811
+ heading: quickSuggestions(),
3812
+ id: 'editor.quickSuggestions',
3329
3813
  type: Boolean$1,
3330
- value: 'true',
3331
- category: TextEditorTab
3814
+ value: 'true'
3332
3815
  }, {
3333
- id: 'editor.parameterHints',
3334
- heading: parameterHints(),
3816
+ category: TextEditorTab,
3335
3817
  description: parameterHintsDescription(),
3818
+ heading: parameterHints(),
3819
+ id: 'editor.parameterHints',
3336
3820
  type: Boolean$1,
3337
- value: 'true',
3338
- category: TextEditorTab
3821
+ value: 'true'
3339
3822
  }, {
3340
- id: 'editor.autoClosingBrackets',
3341
- heading: autoClosingBrackets(),
3823
+ category: TextEditorTab,
3342
3824
  description: autoClosingBracketsDescription(),
3825
+ heading: autoClosingBrackets(),
3826
+ id: 'editor.autoClosingBrackets',
3343
3827
  type: String,
3344
- value: 'always',
3345
- category: TextEditorTab
3828
+ value: 'always'
3346
3829
  }, {
3347
- id: 'editor.autoClosingQuotes',
3348
- heading: autoClosingQuotes(),
3830
+ category: TextEditorTab,
3349
3831
  description: autoClosingQuotesDescription(),
3832
+ heading: autoClosingQuotes(),
3833
+ id: 'editor.autoClosingQuotes',
3350
3834
  type: String,
3351
- value: 'always',
3352
- category: TextEditorTab
3835
+ value: 'always'
3353
3836
  }, {
3354
- id: 'editor.autoClosingOvertype',
3355
- heading: autoClosingOvertype(),
3837
+ category: TextEditorTab,
3356
3838
  description: autoClosingOvertypeDescription(),
3839
+ heading: autoClosingOvertype(),
3840
+ id: 'editor.autoClosingOvertype',
3357
3841
  type: String,
3358
- value: 'auto',
3359
- category: TextEditorTab
3842
+ value: 'auto'
3360
3843
  }, {
3361
- id: 'editor.autoClosingDelete',
3362
- heading: autoClosingDelete(),
3844
+ category: TextEditorTab,
3363
3845
  description: autoClosingDeleteDescription(),
3846
+ heading: autoClosingDelete(),
3847
+ id: 'editor.autoClosingDelete',
3364
3848
  type: String,
3365
- value: 'auto',
3366
- category: TextEditorTab
3849
+ value: 'auto'
3367
3850
  }, {
3368
- id: 'editor.autoSurround',
3369
- heading: autoSurround(),
3851
+ category: TextEditorTab,
3370
3852
  description: autoSurroundDescription(),
3853
+ heading: autoSurround(),
3854
+ id: 'editor.autoSurround',
3371
3855
  type: String,
3372
- value: 'quotes',
3373
- category: TextEditorTab
3856
+ value: 'quotes'
3374
3857
  }, {
3375
- id: 'editor.bracketPairColorization',
3376
- heading: bracketPairColorization(),
3858
+ category: TextEditorTab,
3377
3859
  description: bracketPairColorizationDescription(),
3860
+ heading: bracketPairColorization(),
3861
+ id: 'editor.bracketPairColorization',
3378
3862
  type: Boolean$1,
3379
- value: 'true',
3380
- category: TextEditorTab
3863
+ value: 'true'
3381
3864
  }, {
3382
- id: 'editor.guides',
3383
- heading: guides(),
3865
+ category: TextEditorTab,
3384
3866
  description: guidesDescription(),
3867
+ heading: guides(),
3868
+ id: 'editor.guides',
3385
3869
  type: Boolean$1,
3386
- value: 'true',
3387
- category: TextEditorTab
3870
+ value: 'true'
3388
3871
  }, {
3389
- id: 'editor.dragAndDrop',
3390
- heading: dragAndDrop(),
3872
+ category: TextEditorTab,
3391
3873
  description: dragAndDropDescription(),
3874
+ heading: dragAndDrop(),
3875
+ id: 'editor.dragAndDrop',
3392
3876
  type: Boolean$1,
3393
- value: 'true',
3394
- category: TextEditorTab
3877
+ value: 'true'
3395
3878
  }, {
3396
- id: 'editor.copyWithSyntaxHighlighting',
3397
- heading: copyWithSyntaxHighlighting(),
3879
+ category: TextEditorTab,
3398
3880
  description: copyWithSyntaxHighlightingDescription(),
3881
+ heading: copyWithSyntaxHighlighting(),
3882
+ id: 'editor.copyWithSyntaxHighlighting',
3399
3883
  type: Boolean$1,
3400
- value: 'true',
3401
- category: TextEditorTab
3884
+ value: 'true'
3402
3885
  }, {
3403
- id: 'editor.multiCursorModifier',
3404
- heading: multiCursorModifier(),
3886
+ category: TextEditorTab,
3405
3887
  description: multiCursorModifierDescription(),
3888
+ heading: multiCursorModifier(),
3889
+ id: 'editor.multiCursorModifier',
3406
3890
  type: String,
3407
- value: 'alt',
3408
- category: TextEditorTab
3891
+ value: 'alt'
3409
3892
  }, {
3410
- id: 'editor.multiCursorPaste',
3411
- heading: multiCursorPaste(),
3893
+ category: TextEditorTab,
3412
3894
  description: multiCursorPasteDescription(),
3895
+ heading: multiCursorPaste(),
3896
+ id: 'editor.multiCursorPaste',
3413
3897
  type: String,
3414
- value: 'full',
3415
- category: TextEditorTab
3898
+ value: 'full'
3416
3899
  }, {
3417
- id: 'editor.occurrencesHighlight',
3418
- heading: occurrencesHighlight(),
3900
+ category: TextEditorTab,
3419
3901
  description: occurrencesHighlightDescription(),
3902
+ heading: occurrencesHighlight(),
3903
+ id: 'editor.occurrencesHighlight',
3420
3904
  type: Boolean$1,
3421
- value: 'true',
3422
- category: TextEditorTab
3905
+ value: 'true'
3423
3906
  }, {
3424
- id: 'editor.selectionHighlight',
3425
- heading: selectionHighlight(),
3907
+ category: TextEditorTab,
3426
3908
  description: selectionHighlightDescription(),
3909
+ heading: selectionHighlight(),
3910
+ id: 'editor.selectionHighlight',
3427
3911
  type: Boolean$1,
3428
- value: 'true',
3429
- category: TextEditorTab
3912
+ value: 'true'
3430
3913
  }, {
3431
- id: 'editor.semanticHighlighting',
3432
- heading: semanticHighlighting(),
3914
+ category: TextEditorTab,
3433
3915
  description: semanticHighlightingDescription(),
3916
+ heading: semanticHighlighting(),
3917
+ id: 'editor.semanticHighlighting',
3434
3918
  type: Boolean$1,
3435
- value: 'true',
3436
- category: TextEditorTab
3919
+ value: 'true'
3437
3920
  }, {
3438
- id: 'editor.tokenColorCustomizations',
3439
- heading: tokenColorCustomizations(),
3921
+ category: TextEditorTab,
3440
3922
  description: tokenColorCustomizationsDescription(),
3923
+ heading: tokenColorCustomizations(),
3924
+ id: 'editor.tokenColorCustomizations',
3441
3925
  type: String,
3442
- value: '{}',
3443
- category: TextEditorTab
3926
+ value: '{}'
3444
3927
  }, {
3445
- id: 'editor.workbenchColorCustomizations',
3446
- heading: workbenchColorCustomizations(),
3928
+ category: TextEditorTab,
3447
3929
  description: workbenchColorCustomizationsDescription(),
3930
+ heading: workbenchColorCustomizations(),
3931
+ id: 'editor.workbenchColorCustomizations',
3448
3932
  type: String,
3449
- value: '{}',
3450
- category: TextEditorTab
3933
+ value: '{}'
3451
3934
  }, {
3452
- id: 'editorColorCustomizations',
3453
- heading: editorColorCustomizations(),
3935
+ category: TextEditorTab,
3454
3936
  description: editorColorCustomizationsDescription(),
3937
+ heading: editorColorCustomizations(),
3938
+ id: 'editorColorCustomizations',
3455
3939
  type: String,
3456
- value: '{}',
3457
- category: TextEditorTab
3940
+ value: '{}'
3458
3941
  }, {
3459
- id: 'editor.diffEditor',
3460
- heading: diffEditor(),
3942
+ category: TextEditorTab,
3461
3943
  description: diffEditorDescription(),
3944
+ heading: diffEditor(),
3945
+ id: 'editor.diffEditor',
3462
3946
  type: Boolean$1,
3463
- value: 'true',
3464
- category: TextEditorTab
3947
+ value: 'true'
3465
3948
  }, {
3466
- id: 'editor.diffWordWrap',
3467
- heading: diffWordWrap(),
3949
+ category: TextEditorTab,
3468
3950
  description: diffWordWrapDescription(),
3951
+ heading: diffWordWrap(),
3952
+ id: 'editor.diffWordWrap',
3469
3953
  type: String,
3470
- value: 'inherit',
3471
- category: TextEditorTab
3954
+ value: 'inherit'
3472
3955
  }, {
3473
- id: 'editor.diffCodeLens',
3474
- heading: diffCodeLens(),
3956
+ category: TextEditorTab,
3475
3957
  description: diffCodeLensDescription(),
3958
+ heading: diffCodeLens(),
3959
+ id: 'editor.diffCodeLens',
3476
3960
  type: Boolean$1,
3477
- value: 'true',
3478
- category: TextEditorTab
3961
+ value: 'true'
3479
3962
  }, {
3480
- id: 'editor.diffRenderSideBySide',
3481
- heading: diffRenderSideBySide(),
3963
+ category: TextEditorTab,
3482
3964
  description: diffRenderSideBySideDescription(),
3965
+ heading: diffRenderSideBySide(),
3966
+ id: 'editor.diffRenderSideBySide',
3483
3967
  type: Boolean$1,
3484
- value: 'true',
3485
- category: TextEditorTab
3968
+ value: 'true'
3486
3969
  }, {
3487
- id: 'editor.diffIgnoreTrimWhitespace',
3488
- heading: diffIgnoreTrimWhitespace(),
3970
+ category: TextEditorTab,
3489
3971
  description: diffIgnoreTrimWhitespaceDescription(),
3972
+ heading: diffIgnoreTrimWhitespace(),
3973
+ id: 'editor.diffIgnoreTrimWhitespace',
3490
3974
  type: Boolean$1,
3491
- value: 'false',
3492
- category: TextEditorTab
3975
+ value: 'false'
3493
3976
  }, {
3494
- id: 'editor.diffRenderIndicators',
3495
- heading: diffRenderIndicators(),
3977
+ category: TextEditorTab,
3496
3978
  description: diffRenderIndicatorsDescription(),
3979
+ heading: diffRenderIndicators(),
3980
+ id: 'editor.diffRenderIndicators',
3497
3981
  type: Boolean$1,
3498
- value: 'true',
3499
- category: TextEditorTab
3982
+ value: 'true'
3500
3983
  }, {
3501
- id: 'editor.diffRenderOverviewRuler',
3502
- heading: diffRenderOverviewRuler(),
3984
+ category: TextEditorTab,
3503
3985
  description: diffRenderOverviewRulerDescription(),
3986
+ heading: diffRenderOverviewRuler(),
3987
+ id: 'editor.diffRenderOverviewRuler',
3504
3988
  type: Boolean$1,
3505
- value: 'true',
3506
- category: TextEditorTab
3989
+ value: 'true'
3507
3990
  }, {
3508
- id: 'editor.diffRenderMarginRevertIcon',
3509
- heading: diffRenderMarginRevertIcon(),
3991
+ category: TextEditorTab,
3510
3992
  description: diffRenderMarginRevertIconDescription(),
3993
+ heading: diffRenderMarginRevertIcon(),
3994
+ id: 'editor.diffRenderMarginRevertIcon',
3511
3995
  type: Boolean$1,
3512
- value: 'true',
3513
- category: TextEditorTab
3996
+ value: 'true'
3514
3997
  }, {
3515
- id: 'editor.insertMode',
3516
- heading: insertMode(),
3998
+ category: TextEditorTab,
3517
3999
  description: insertModeDescription(),
4000
+ heading: insertMode(),
4001
+ id: 'editor.insertMode',
3518
4002
  type: Boolean$1,
3519
- value: 'true',
3520
- category: TextEditorTab
4003
+ value: 'true'
3521
4004
  }, {
3522
- id: 'editor.overwriteMode',
3523
- heading: overwriteMode(),
4005
+ category: TextEditorTab,
3524
4006
  description: overwriteModeDescription(),
4007
+ heading: overwriteMode(),
4008
+ id: 'editor.overwriteMode',
3525
4009
  type: Boolean$1,
3526
- value: 'false',
3527
- category: TextEditorTab
4010
+ value: 'false'
3528
4011
  }, {
3529
- id: 'editor.readOnly',
3530
- heading: readOnly(),
4012
+ category: TextEditorTab,
3531
4013
  description: readOnlyDescription(),
4014
+ heading: readOnly(),
4015
+ id: 'editor.readOnly',
3532
4016
  type: Boolean$1,
3533
- value: 'false',
3534
- category: TextEditorTab
4017
+ value: 'false'
3535
4018
  }, {
3536
- id: 'editor.accessibilitySupport',
3537
- heading: accessibilitySupport(),
4019
+ category: TextEditorTab,
3538
4020
  description: accessibilitySupportDescription(),
4021
+ heading: accessibilitySupport(),
4022
+ id: 'editor.accessibilitySupport',
3539
4023
  type: String,
3540
- value: 'auto',
3541
- category: TextEditorTab
4024
+ value: 'auto'
3542
4025
  }, {
3543
- id: 'editor.autoIndent',
3544
- heading: autoIndent(),
4026
+ category: TextEditorTab,
3545
4027
  description: autoIndentDescription(),
4028
+ heading: autoIndent(),
4029
+ id: 'editor.autoIndent',
3546
4030
  type: Boolean$1,
3547
- value: 'true',
3548
- category: TextEditorTab
4031
+ value: 'true'
3549
4032
  }, {
3550
- id: 'editor.bracketMatching',
3551
- heading: bracketMatching(),
4033
+ category: TextEditorTab,
3552
4034
  description: bracketMatchingDescription(),
4035
+ heading: bracketMatching(),
4036
+ id: 'editor.bracketMatching',
3553
4037
  type: Boolean$1,
3554
- value: 'true',
3555
- category: TextEditorTab
4038
+ value: 'true'
3556
4039
  }, {
3557
- id: 'editor.centeredLayout',
3558
- heading: centeredLayout(),
4040
+ category: TextEditorTab,
3559
4041
  description: centeredLayoutDescription(),
4042
+ heading: centeredLayout(),
4043
+ id: 'editor.centeredLayout',
3560
4044
  type: Boolean$1,
3561
- value: 'false',
3562
- category: TextEditorTab
4045
+ value: 'false'
3563
4046
  }, {
3564
- id: 'editor.columnSelection',
3565
- heading: columnSelection(),
4047
+ category: TextEditorTab,
3566
4048
  description: columnSelectionDescription(),
4049
+ heading: columnSelection(),
4050
+ id: 'editor.columnSelection',
3567
4051
  type: Boolean$1,
3568
- value: 'false',
3569
- category: TextEditorTab
4052
+ value: 'false'
3570
4053
  }, {
3571
- id: 'editor.contextmenu',
3572
- heading: contextmenu(),
4054
+ category: TextEditorTab,
3573
4055
  description: contextmenuDescription(),
4056
+ heading: contextmenu(),
4057
+ id: 'editor.contextmenu',
3574
4058
  type: Boolean$1,
3575
- value: 'true',
3576
- category: TextEditorTab
4059
+ value: 'true'
3577
4060
  }, {
3578
- id: 'editor.cursorSmoothCaretAnimation',
3579
- heading: cursorSmoothCaretAnimation(),
4061
+ category: TextEditorTab,
3580
4062
  description: cursorSmoothCaretAnimationDescription(),
4063
+ heading: cursorSmoothCaretAnimation(),
4064
+ id: 'editor.cursorSmoothCaretAnimation',
3581
4065
  type: String,
3582
- value: 'off',
3583
- category: TextEditorTab
4066
+ value: 'off'
3584
4067
  }, {
3585
- id: 'editor.cursorSurroundingLines',
3586
- heading: cursorSurroundingLines(),
4068
+ category: TextEditorTab,
3587
4069
  description: cursorSurroundingLinesDescription(),
4070
+ heading: cursorSurroundingLines(),
4071
+ id: 'editor.cursorSurroundingLines',
3588
4072
  type: Number$1,
3589
- value: '3',
3590
- category: TextEditorTab
4073
+ value: '3'
3591
4074
  }, {
3592
- id: 'editor.cursorSurroundingLinesStyle',
3593
- heading: cursorSurroundingLinesStyle(),
4075
+ category: TextEditorTab,
3594
4076
  description: cursorSurroundingLinesStyleDescription(),
4077
+ heading: cursorSurroundingLinesStyle(),
4078
+ id: 'editor.cursorSurroundingLinesStyle',
3595
4079
  type: String,
3596
- value: 'all',
3597
- category: TextEditorTab
4080
+ value: 'all'
3598
4081
  }, {
3599
- id: 'editor.disableMonospaceOptimizations',
3600
- heading: disableMonospaceOptimizations(),
4082
+ category: TextEditorTab,
3601
4083
  description: disableMonospaceOptimizationsDescription(),
4084
+ heading: disableMonospaceOptimizations(),
4085
+ id: 'editor.disableMonospaceOptimizations',
3602
4086
  type: Boolean$1,
3603
- value: 'false',
3604
- category: TextEditorTab
4087
+ value: 'false'
3605
4088
  }, {
3606
- id: 'editor.emptySelectionClipboard',
3607
- heading: emptySelectionClipboard(),
4089
+ category: TextEditorTab,
3608
4090
  description: emptySelectionClipboardDescription(),
4091
+ heading: emptySelectionClipboard(),
4092
+ id: 'editor.emptySelectionClipboard',
3609
4093
  type: Boolean$1,
3610
- value: 'true',
3611
- category: TextEditorTab
4094
+ value: 'true'
3612
4095
  }, {
3613
- id: 'editor.extraEditorClassName',
3614
- heading: extraEditorClassName(),
4096
+ category: TextEditorTab,
3615
4097
  description: extraEditorClassNameDescription(),
4098
+ heading: extraEditorClassName(),
4099
+ id: 'editor.extraEditorClassName',
3616
4100
  type: String,
3617
- value: '',
3618
- category: TextEditorTab
4101
+ value: ''
3619
4102
  }, {
3620
- id: 'editor.fastScrollSensitivity',
3621
- heading: fastScrollSensitivity(),
4103
+ category: TextEditorTab,
3622
4104
  description: fastScrollSensitivityDescription(),
4105
+ heading: fastScrollSensitivity(),
4106
+ id: 'editor.fastScrollSensitivity',
3623
4107
  type: Number$1,
3624
- value: '5',
3625
- category: TextEditorTab
4108
+ value: '5'
3626
4109
  }, {
3627
- id: 'editor.find',
3628
- heading: find(),
4110
+ category: TextEditorTab,
3629
4111
  description: findDescription(),
4112
+ heading: find(),
4113
+ id: 'editor.find',
3630
4114
  type: Boolean$1,
3631
- value: 'true',
3632
- category: TextEditorTab
4115
+ value: 'true'
3633
4116
  }, {
3634
- id: 'editor.fixedOverflowWidgets',
3635
- heading: fixedOverflowWidgets(),
4117
+ category: TextEditorTab,
3636
4118
  description: fixedOverflowWidgetsDescription(),
4119
+ heading: fixedOverflowWidgets(),
4120
+ id: 'editor.fixedOverflowWidgets',
3637
4121
  type: Boolean$1,
3638
- value: 'false',
3639
- category: TextEditorTab
4122
+ value: 'false'
3640
4123
  }, {
3641
- id: 'editor.foldingStrategy',
3642
- heading: foldingStrategy(),
4124
+ category: TextEditorTab,
3643
4125
  description: foldingStrategyDescription(),
4126
+ heading: foldingStrategy(),
4127
+ id: 'editor.foldingStrategy',
3644
4128
  type: String,
3645
- value: 'auto',
3646
- category: TextEditorTab
4129
+ value: 'auto'
3647
4130
  }, {
3648
- id: 'editor.fontLigatures',
3649
- heading: fontLigatures(),
4131
+ category: TextEditorTab,
3650
4132
  description: fontLigaturesDescription(),
4133
+ heading: fontLigatures(),
4134
+ id: 'editor.fontLigatures',
3651
4135
  type: Boolean$1,
3652
- value: 'false',
3653
- category: TextEditorTab
4136
+ value: 'false'
3654
4137
  }, {
3655
- id: 'editor.glyphMargin',
3656
- heading: glyphMargin(),
4138
+ category: TextEditorTab,
3657
4139
  description: glyphMarginDescription(),
4140
+ heading: glyphMargin(),
4141
+ id: 'editor.glyphMargin',
3658
4142
  type: Boolean$1,
3659
- value: 'true',
3660
- category: TextEditorTab
4143
+ value: 'true'
3661
4144
  }, {
3662
- id: 'editor.gotoLocation',
3663
- heading: gotoLocation(),
4145
+ category: TextEditorTab,
3664
4146
  description: gotoLocationDescription(),
4147
+ heading: gotoLocation(),
4148
+ id: 'editor.gotoLocation',
3665
4149
  type: String,
3666
- value: 'mouse',
3667
- category: TextEditorTab
4150
+ value: 'mouse'
3668
4151
  }, {
3669
- id: 'editor.hideCursorInOverviewRuler',
3670
- heading: hideCursorInOverviewRuler(),
4152
+ category: TextEditorTab,
3671
4153
  description: hideCursorInOverviewRulerDescription(),
4154
+ heading: hideCursorInOverviewRuler(),
4155
+ id: 'editor.hideCursorInOverviewRuler',
3672
4156
  type: Boolean$1,
3673
- value: 'false',
3674
- category: TextEditorTab
4157
+ value: 'false'
3675
4158
  }, {
3676
- id: 'editor.hover',
3677
- heading: hover(),
4159
+ category: TextEditorTab,
3678
4160
  description: hoverDescription(),
4161
+ heading: hover(),
4162
+ id: 'editor.hover',
3679
4163
  type: Boolean$1,
3680
- value: 'true',
3681
- category: TextEditorTab
4164
+ value: 'true'
3682
4165
  }, {
3683
- id: 'editor.inDiffEditor',
3684
- heading: inDiffEditor(),
4166
+ category: TextEditorTab,
3685
4167
  description: inDiffEditorDescription(),
4168
+ heading: inDiffEditor(),
4169
+ id: 'editor.inDiffEditor',
3686
4170
  type: Boolean$1,
3687
- value: 'false',
3688
- category: TextEditorTab
4171
+ value: 'false'
3689
4172
  }, {
3690
- id: 'editor.letterSpacing',
3691
- heading: letterSpacing(),
4173
+ category: TextEditorTab,
3692
4174
  description: letterSpacingDescription(),
4175
+ heading: letterSpacing(),
4176
+ id: 'editor.letterSpacing',
3693
4177
  type: Number$1,
3694
- value: '0',
3695
- category: TextEditorTab
4178
+ value: '0'
3696
4179
  }, {
3697
- id: 'editor.lightbulbEnabled',
3698
- heading: lightbulbEnabled(),
4180
+ category: TextEditorTab,
3699
4181
  description: lightbulbEnabledDescription(),
4182
+ heading: lightbulbEnabled(),
4183
+ id: 'editor.lightbulbEnabled',
3700
4184
  type: Boolean$1,
3701
- value: 'true',
3702
- category: TextEditorTab
4185
+ value: 'true'
3703
4186
  }, {
3704
- id: 'editor.lineDecorationsWidth',
3705
- heading: lineDecorationsWidth(),
4187
+ category: TextEditorTab,
3706
4188
  description: lineDecorationsWidthDescription(),
4189
+ heading: lineDecorationsWidth(),
4190
+ id: 'editor.lineDecorationsWidth',
3707
4191
  type: Number$1,
3708
- value: '10',
3709
- category: TextEditorTab
4192
+ value: '10'
3710
4193
  }, {
3711
- id: 'editor.lineHeight',
3712
- heading: lineHeight(),
4194
+ category: TextEditorTab,
3713
4195
  description: lineHeightDescription(),
4196
+ heading: lineHeight(),
4197
+ id: 'editor.lineHeight',
3714
4198
  type: Number$1,
3715
- value: '0',
3716
- category: TextEditorTab
4199
+ value: '0'
3717
4200
  }, {
3718
- id: 'editor.matchBrackets',
3719
- heading: matchBrackets(),
4201
+ category: TextEditorTab,
3720
4202
  description: matchBracketsDescription(),
4203
+ heading: matchBrackets(),
4204
+ id: 'editor.matchBrackets',
3721
4205
  type: Boolean$1,
3722
- value: 'true',
3723
- category: TextEditorTab
4206
+ value: 'true'
3724
4207
  }, {
3725
- id: 'editor.minimapEnabled',
3726
- heading: minimapEnabled(),
4208
+ category: TextEditorTab,
3727
4209
  description: minimapEnabledDescription(),
4210
+ heading: minimapEnabled(),
4211
+ id: 'editor.minimapEnabled',
3728
4212
  type: Boolean$1,
3729
- value: 'true',
3730
- category: TextEditorTab
4213
+ value: 'true'
3731
4214
  }, {
3732
- id: 'editor.mouseWheelScrollSensitivity',
3733
- heading: mouseWheelScrollSensitivity(),
4215
+ category: TextEditorTab,
3734
4216
  description: mouseWheelScrollSensitivityDescription(),
4217
+ heading: mouseWheelScrollSensitivity(),
4218
+ id: 'editor.mouseWheelScrollSensitivity',
3735
4219
  type: Number$1,
3736
- value: '1',
3737
- category: TextEditorTab
4220
+ value: '1'
3738
4221
  }, {
3739
- id: 'editor.mouseWheelZoom',
3740
- heading: mouseWheelZoom(),
4222
+ category: TextEditorTab,
3741
4223
  description: mouseWheelZoomDescription(),
4224
+ heading: mouseWheelZoom(),
4225
+ id: 'editor.mouseWheelZoom',
3742
4226
  type: Boolean$1,
3743
- value: 'false',
3744
- category: TextEditorTab
4227
+ value: 'false'
3745
4228
  }, {
3746
- id: 'editor.multiCursorMergeOverlapping',
3747
- heading: multiCursorMergeOverlapping(),
4229
+ category: TextEditorTab,
3748
4230
  description: multiCursorMergeOverlappingDescription(),
4231
+ heading: multiCursorMergeOverlapping(),
4232
+ id: 'editor.multiCursorMergeOverlapping',
3749
4233
  type: Boolean$1,
3750
- value: 'true',
3751
- category: TextEditorTab
4234
+ value: 'true'
3752
4235
  }, {
3753
- id: 'editor.overviewRulerBorder',
3754
- heading: overviewRulerBorder(),
4236
+ category: TextEditorTab,
3755
4237
  description: overviewRulerBorderDescription(),
4238
+ heading: overviewRulerBorder(),
4239
+ id: 'editor.overviewRulerBorder',
3756
4240
  type: Boolean$1,
3757
- value: 'true',
3758
- category: TextEditorTab
4241
+ value: 'true'
3759
4242
  }, {
3760
- id: 'editor.overviewRulerLanes',
3761
- heading: overviewRulerLanes(),
4243
+ category: TextEditorTab,
3762
4244
  description: overviewRulerLanesDescription(),
4245
+ heading: overviewRulerLanes(),
4246
+ id: 'editor.overviewRulerLanes',
3763
4247
  type: Number$1,
3764
- value: '3',
3765
- category: TextEditorTab
4248
+ value: '3'
3766
4249
  }, {
3767
- id: 'editor.peekWidgetDefaultFocus',
3768
- heading: peekWidgetDefaultFocus(),
4250
+ category: TextEditorTab,
3769
4251
  description: peekWidgetDefaultFocusDescription(),
4252
+ heading: peekWidgetDefaultFocus(),
4253
+ id: 'editor.peekWidgetDefaultFocus',
3770
4254
  type: String,
3771
- value: 'editor',
3772
- category: TextEditorTab
4255
+ value: 'editor'
3773
4256
  }, {
3774
- id: 'editor.quickSuggestionsDelay',
3775
- heading: quickSuggestionsDelay(),
4257
+ category: TextEditorTab,
3776
4258
  description: quickSuggestionsDelayDescription(),
4259
+ heading: quickSuggestionsDelay(),
4260
+ id: 'editor.quickSuggestionsDelay',
3777
4261
  type: Number$1,
3778
- value: '10',
3779
- category: TextEditorTab
4262
+ value: '10'
3780
4263
  }, {
3781
- id: 'editor.renderFinalNewline',
3782
- heading: renderFinalNewline(),
4264
+ category: TextEditorTab,
3783
4265
  description: renderFinalNewlineDescription(),
4266
+ heading: renderFinalNewline(),
4267
+ id: 'editor.renderFinalNewline',
3784
4268
  type: Boolean$1,
3785
- value: 'true',
3786
- category: TextEditorTab
4269
+ value: 'true'
3787
4270
  }, {
3788
- id: 'editor.renderValidationDecorations',
3789
- heading: renderValidationDecorations(),
4271
+ category: TextEditorTab,
3790
4272
  description: renderValidationDecorationsDescription(),
4273
+ heading: renderValidationDecorations(),
4274
+ id: 'editor.renderValidationDecorations',
3791
4275
  type: Boolean$1,
3792
- value: 'true',
3793
- category: TextEditorTab
4276
+ value: 'true'
3794
4277
  }, {
3795
- id: 'editor.revealHorizontalRightPadding',
3796
- heading: revealHorizontalRightPadding(),
4278
+ category: TextEditorTab,
3797
4279
  description: revealHorizontalRightPaddingDescription(),
4280
+ heading: revealHorizontalRightPadding(),
4281
+ id: 'editor.revealHorizontalRightPadding',
3798
4282
  type: Number$1,
3799
- value: '30',
3800
- category: TextEditorTab
4283
+ value: '30'
3801
4284
  }, {
3802
- id: 'editor.roundedSelection',
3803
- heading: roundedSelection(),
4285
+ category: TextEditorTab,
3804
4286
  description: roundedSelectionDescription(),
4287
+ heading: roundedSelection(),
4288
+ id: 'editor.roundedSelection',
3805
4289
  type: Boolean$1,
3806
- value: 'true',
3807
- category: TextEditorTab
4290
+ value: 'true'
3808
4291
  }, {
3809
- id: 'editor.rulers',
3810
- heading: rulers(),
4292
+ category: TextEditorTab,
3811
4293
  description: rulersDescription(),
4294
+ heading: rulers(),
4295
+ id: 'editor.rulers',
3812
4296
  type: String,
3813
- value: '[]',
3814
- category: TextEditorTab
4297
+ value: '[]'
3815
4298
  }, {
3816
- id: 'editor.scrollBeyondLastColumn',
3817
- heading: scrollBeyondLastColumn(),
4299
+ category: TextEditorTab,
3818
4300
  description: scrollBeyondLastColumnDescription(),
4301
+ heading: scrollBeyondLastColumn(),
4302
+ id: 'editor.scrollBeyondLastColumn',
3819
4303
  type: Number$1,
3820
- value: '5',
3821
- category: TextEditorTab
4304
+ value: '5'
3822
4305
  }, {
3823
- id: 'editor.scrollbar',
3824
- heading: scrollbar(),
4306
+ category: TextEditorTab,
3825
4307
  description: scrollbarDescription(),
4308
+ heading: scrollbar(),
4309
+ id: 'editor.scrollbar',
3826
4310
  type: String,
3827
- value: 'auto',
3828
- category: TextEditorTab
4311
+ value: 'auto'
3829
4312
  }, {
3830
- id: 'editor.scrollPredominantAxis',
3831
- heading: scrollPredominantAxis(),
4313
+ category: TextEditorTab,
3832
4314
  description: scrollPredominantAxisDescription(),
4315
+ heading: scrollPredominantAxis(),
4316
+ id: 'editor.scrollPredominantAxis',
3833
4317
  type: Boolean$1,
3834
- value: 'true',
3835
- category: TextEditorTab
4318
+ value: 'true'
3836
4319
  }, {
3837
- id: 'editor.selectionClipboard',
3838
- heading: selectionClipboard(),
4320
+ category: TextEditorTab,
3839
4321
  description: selectionClipboardDescription(),
4322
+ heading: selectionClipboard(),
4323
+ id: 'editor.selectionClipboard',
3840
4324
  type: Boolean$1,
3841
- value: 'true',
3842
- category: TextEditorTab
4325
+ value: 'true'
3843
4326
  }, {
3844
- id: 'editor.background',
3845
- heading: 'Editor background',
4327
+ category: TextEditorTab,
3846
4328
  description: 'Editor background color',
4329
+ heading: 'Editor background',
4330
+ id: 'editor.background',
3847
4331
  type: Color,
3848
- value: '#567567',
3849
- category: TextEditorTab
4332
+ value: '#567567'
3850
4333
  }, {
3851
- id: 'editor.showUnused',
3852
- heading: showUnused(),
4334
+ category: TextEditorTab,
3853
4335
  description: showUnusedDescription(),
4336
+ heading: showUnused(),
4337
+ id: 'editor.showUnused',
3854
4338
  type: Boolean$1,
3855
- value: 'true',
3856
- category: TextEditorTab
4339
+ value: 'true'
3857
4340
  }, {
3858
- id: 'editor.snippetSuggestions',
3859
- heading: snippetSuggestions(),
4341
+ category: TextEditorTab,
3860
4342
  description: snippetSuggestionsDescription(),
4343
+ heading: snippetSuggestions(),
4344
+ id: 'editor.snippetSuggestions',
3861
4345
  type: String,
3862
- value: 'bottom',
3863
- category: TextEditorTab
4346
+ value: 'bottom'
3864
4347
  }, {
3865
- id: 'editor.suggest',
3866
- heading: suggest(),
4348
+ category: TextEditorTab,
3867
4349
  description: suggestDescription(),
4350
+ heading: suggest(),
4351
+ id: 'editor.suggest',
3868
4352
  type: Boolean$1,
3869
- value: 'true',
3870
- category: TextEditorTab
4353
+ value: 'true'
3871
4354
  }, {
3872
- id: 'editor.suggestFontSize',
3873
- heading: suggestFontSize(),
4355
+ category: TextEditorTab,
3874
4356
  description: suggestFontSizeDescription(),
4357
+ heading: suggestFontSize(),
4358
+ id: 'editor.suggestFontSize',
3875
4359
  type: Number$1,
3876
- value: '0',
3877
- category: TextEditorTab
4360
+ value: '0'
3878
4361
  }, {
3879
- id: 'editor.suggestLineHeight',
3880
- heading: suggestLineHeight(),
4362
+ category: TextEditorTab,
3881
4363
  description: suggestLineHeightDescription(),
4364
+ heading: suggestLineHeight(),
4365
+ id: 'editor.suggestLineHeight',
3882
4366
  type: Number$1,
3883
- value: '0',
3884
- category: TextEditorTab
4367
+ value: '0'
3885
4368
  }, {
3886
- id: 'editor.suggestSelection',
3887
- heading: suggestSelection(),
4369
+ category: TextEditorTab,
3888
4370
  description: suggestSelectionDescription(),
4371
+ heading: suggestSelection(),
4372
+ id: 'editor.suggestSelection',
3889
4373
  type: String,
3890
- value: 'recentlyUsed',
3891
- category: TextEditorTab
4374
+ value: 'recentlyUsed'
3892
4375
  }, {
3893
- id: 'editor.useTabStops',
3894
- heading: useTabStops(),
4376
+ category: TextEditorTab,
3895
4377
  description: useTabStopsDescription(),
4378
+ heading: useTabStops(),
4379
+ id: 'editor.useTabStops',
3896
4380
  type: Boolean$1,
3897
- value: 'true',
3898
- category: TextEditorTab
4381
+ value: 'true'
3899
4382
  }, {
3900
- id: 'editor.wordSeparators',
3901
- heading: wordSeparators(),
4383
+ category: TextEditorTab,
3902
4384
  description: wordSeparatorsDescription(),
4385
+ heading: wordSeparators(),
4386
+ id: 'editor.wordSeparators',
3903
4387
  type: String,
3904
- value: '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?',
3905
- category: TextEditorTab
4388
+ value: '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?'
3906
4389
  }, {
3907
- id: 'editor.wrappingIndent',
3908
- heading: wrappingIndent(),
4390
+ category: TextEditorTab,
3909
4391
  description: wrappingIndentDescription(),
4392
+ heading: wrappingIndent(),
4393
+ id: 'editor.wrappingIndent',
3910
4394
  type: String,
3911
- value: 'same',
3912
- category: TextEditorTab
4395
+ value: 'same'
3913
4396
  }];
3914
4397
  };
3915
4398
 
3916
4399
  const getSettingItemsExtensions = () => {
3917
4400
  return [{
3918
- id: 'extensionsAutoUpdate',
3919
- heading: autoUpdateExtensions(),
4401
+ category: ExtensionsTab,
3920
4402
  description: autoUpdateExtensionsDescription(),
4403
+ heading: autoUpdateExtensions(),
4404
+ id: 'extensionsAutoUpdate',
3921
4405
  type: Boolean$1,
3922
- value: 'true',
3923
- category: ExtensionsTab
4406
+ value: 'true'
3924
4407
  }, {
3925
- id: 'extensionRecommendations',
3926
- heading: extensionRecommendations(),
4408
+ category: ExtensionsTab,
3927
4409
  description: extensionRecommendationsDescription(),
4410
+ heading: extensionRecommendations(),
4411
+ id: 'extensionRecommendations',
3928
4412
  type: Boolean$1,
3929
- value: 'true',
3930
- category: ExtensionsTab
4413
+ value: 'true'
3931
4414
  }];
3932
4415
  };
3933
4416
 
3934
4417
  const getSettingItemsFeatures = () => {
3935
4418
  return [{
3936
- id: 'autoSave',
3937
- heading: autoSave(),
4419
+ category: FeaturesTab,
3938
4420
  description: autoSaveDescription(),
4421
+ heading: autoSave(),
4422
+ id: 'autoSave',
3939
4423
  type: Boolean$1,
3940
- value: 'true',
3941
- category: FeaturesTab
4424
+ value: 'true'
3942
4425
  }, {
3943
- id: 'formatOnSave',
3944
- heading: formatOnSave(),
4426
+ category: FeaturesTab,
3945
4427
  description: formatOnSaveDescription(),
4428
+ heading: formatOnSave(),
4429
+ id: 'formatOnSave',
3946
4430
  type: Boolean$1,
3947
- value: 'false',
3948
- category: FeaturesTab
4431
+ value: 'false'
3949
4432
  }];
3950
4433
  };
3951
4434
 
3952
4435
  const getSettingItemsSecurity = () => {
3953
4436
  return [{
3954
- id: 'encryption',
3955
- heading: fileEncryption(),
4437
+ category: SecurityTab,
3956
4438
  description: fileEncryptionDescription(),
4439
+ heading: fileEncryption(),
4440
+ id: 'encryption',
3957
4441
  type: Boolean$1,
3958
- value: 'false',
3959
- category: SecurityTab
4442
+ value: 'false'
3960
4443
  }, {
3961
- id: 'twoFactor',
3962
- heading: twoFactorAuth(),
4444
+ category: SecurityTab,
3963
4445
  description: twoFactorAuthDescription(),
4446
+ heading: twoFactorAuth(),
4447
+ id: 'twoFactor',
3964
4448
  type: Boolean$1,
3965
- value: 'false',
3966
- category: SecurityTab
4449
+ value: 'false'
3967
4450
  }];
3968
4451
  };
3969
4452
 
3970
4453
  const getSettingItemsWindow = () => {
3971
4454
  return [{
3972
- id: 'windowTitle',
3973
- heading: windowTitle(),
4455
+ category: WindowTab,
3974
4456
  description: windowTitleDescription(),
4457
+ heading: windowTitle(),
4458
+ id: 'windowTitle',
3975
4459
  type: String,
3976
- value: 'Settings View',
3977
- category: WindowTab
4460
+ value: 'Settings View'
3978
4461
  }, {
3979
- id: 'windowSize',
3980
- heading: windowSize(),
4462
+ category: WindowTab,
3981
4463
  description: windowSizeDescription(),
4464
+ heading: windowSize(),
4465
+ id: 'windowSize',
3982
4466
  type: String,
3983
- value: '1024x768',
3984
- category: WindowTab
4467
+ value: '1024x768'
3985
4468
  }];
3986
4469
  };
3987
4470
 
3988
4471
  const getSettingItemsWorkbench = () => {
3989
4472
  return [{
3990
- id: 'theme',
3991
- heading: theme(),
4473
+ category: WorkbenchTab,
3992
4474
  description: themeDescription(),
4475
+ heading: theme(),
4476
+ id: 'theme',
3993
4477
  type: String,
3994
- value: 'Dark',
3995
- category: WorkbenchTab
4478
+ value: 'Dark'
3996
4479
  }, {
3997
- id: 'sidebarPosition',
3998
- heading: sidebarPosition(),
4480
+ category: WorkbenchTab,
3999
4481
  description: sidebarPositionDescription(),
4482
+ heading: sidebarPosition(),
4483
+ id: 'sidebarPosition',
4000
4484
  type: String,
4001
- value: 'Left',
4002
- category: WorkbenchTab
4485
+ value: 'Left'
4003
4486
  }];
4004
4487
  };
4005
4488
 
@@ -4100,13 +4583,13 @@ const getSavedTabId = savedState => {
4100
4583
  const restoreState = savedState => {
4101
4584
  if (!savedState) {
4102
4585
  return {
4103
- minLineY: 0,
4104
4586
  deltaY: 0,
4105
- tabId: '',
4106
- searchValue: '',
4107
- scrollOffset: 0,
4108
4587
  history: [],
4109
- historyIndex: -1
4588
+ historyIndex: -1,
4589
+ minLineY: 0,
4590
+ scrollOffset: 0,
4591
+ searchValue: '',
4592
+ tabId: ''
4110
4593
  };
4111
4594
  }
4112
4595
  const minLineY = getSavedMinLineY(savedState);
@@ -4117,23 +4600,23 @@ const restoreState = savedState => {
4117
4600
  const history = getSavedHistory(savedState);
4118
4601
  const historyIndex = getSavedHistoryIndex(savedState, history);
4119
4602
  return {
4120
- minLineY,
4121
4603
  deltaY,
4122
- tabId,
4123
- searchValue,
4124
- scrollOffset,
4125
4604
  history,
4126
- historyIndex
4605
+ historyIndex,
4606
+ minLineY,
4607
+ scrollOffset,
4608
+ searchValue,
4609
+ tabId
4127
4610
  };
4128
4611
  };
4129
4612
 
4130
4613
  const loadContent = async (state, savedState) => {
4131
4614
  const {
4132
- searchValue,
4133
- tabId,
4134
- scrollOffset,
4135
4615
  history,
4136
- historyIndex
4616
+ historyIndex,
4617
+ scrollOffset,
4618
+ searchValue,
4619
+ tabId
4137
4620
  } = restoreState(savedState);
4138
4621
  const tabs = getTabs();
4139
4622
  const newTabs = getUpdatedTabs(tabs, tabId);
@@ -4146,9 +4629,9 @@ const loadContent = async (state, savedState) => {
4146
4629
  itemHeight
4147
4630
  } = state;
4148
4631
  const {
4149
- visibleItems,
4632
+ maxLineY,
4150
4633
  minLineY,
4151
- maxLineY
4634
+ visibleItems
4152
4635
  } = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
4153
4636
  const {
4154
4637
  scrollBarMinHeight
@@ -4160,20 +4643,20 @@ const loadContent = async (state, savedState) => {
4160
4643
  return {
4161
4644
  ...state,
4162
4645
  filteredItems,
4163
- visibleItems,
4164
- minLineY,
4165
- maxLineY,
4646
+ history,
4647
+ historyIndex,
4166
4648
  inputSource: Script,
4167
4649
  items,
4650
+ maxLineY,
4651
+ minLineY,
4168
4652
  modifiedSettings,
4169
4653
  preferences,
4654
+ scrollBarThumbHeight: thumbHeight,
4655
+ scrollBarThumbTop: thumbTop,
4170
4656
  scrollOffset,
4171
4657
  searchValue,
4172
4658
  tabs: newTabs,
4173
- history,
4174
- historyIndex,
4175
- scrollBarThumbHeight: thumbHeight,
4176
- scrollBarThumbTop: thumbTop
4659
+ visibleItems
4177
4660
  };
4178
4661
  };
4179
4662
 
@@ -4231,9 +4714,9 @@ const getSettingsInputBadgeDom = (filteredSettingsCount, hasSearchValue) => {
4231
4714
  }
4232
4715
  const badgeText = matchingSettings(filteredSettingsCount);
4233
4716
  return [{
4234
- type: VirtualDomElements.Div,
4717
+ childCount: 1,
4235
4718
  className: Badge,
4236
- childCount: 1
4719
+ type: Div
4237
4720
  }, text(badgeText)];
4238
4721
  };
4239
4722
 
@@ -4257,36 +4740,36 @@ const getClearButtonClassName = hasSearchValue => {
4257
4740
  };
4258
4741
 
4259
4742
  const icon = {
4260
- type: VirtualDomElements.Div,
4743
+ childCount: 0,
4261
4744
  className: mergeClassNames(MaskIcon, MaskIconClearAll),
4262
- childCount: 0
4745
+ type: Div
4263
4746
  };
4264
4747
  const getSettingsInputButtonsDom = hasSearchValue => {
4265
4748
  return [{
4266
- type: VirtualDomElements.Button,
4267
- className: getClearButtonClassName(hasSearchValue),
4268
- childCount: 1,
4269
4749
  ariaLabel: clear(),
4270
- name: Clear$1,
4750
+ childCount: 1,
4751
+ className: getClearButtonClassName(hasSearchValue),
4271
4752
  disabled: !hasSearchValue,
4272
- onClick: HandleClickClear
4753
+ name: Clear$1,
4754
+ onClick: HandleClickClear,
4755
+ type: Button
4273
4756
  }, icon];
4274
4757
  };
4275
4758
 
4276
4759
  const getSettingsInputDom = () => {
4277
4760
  const placeholder = searchSettings();
4278
4761
  return [{
4279
- type: VirtualDomElements.Input,
4280
- className: mergeClassNames(InputBox, SettingsSearchInput, 'MultilineInputBox'),
4281
- placeholder,
4762
+ autocapitalize: 'off',
4282
4763
  autocomplete: 'off',
4283
4764
  autocorrect: 'off',
4284
- autocapitalize: 'off',
4285
- spellcheck: false,
4286
4765
  childCount: 0,
4766
+ className: mergeClassNames(InputBox, SettingsSearchInput, 'MultilineInputBox'),
4287
4767
  name: SettingsSearch,
4768
+ onFocus: HandleInputFocus,
4288
4769
  onInput: HandleInput,
4289
- onFocus: HandleInputFocus
4770
+ placeholder,
4771
+ spellcheck: false,
4772
+ type: Input
4290
4773
  }];
4291
4774
  };
4292
4775
 
@@ -4296,36 +4779,36 @@ const getChildCount$1 = hasSearchValue => {
4296
4779
  const getSettingsHeaderDom = (filteredSettingsCount, hasSearchValue) => {
4297
4780
  const childCount = getChildCount$1(hasSearchValue);
4298
4781
  return [{
4299
- type: VirtualDomElements.Div,
4782
+ childCount: 1,
4300
4783
  className: SettingsHeader,
4301
- childCount: 1
4784
+ type: Div
4302
4785
  }, {
4303
- type: VirtualDomElements.Div,
4786
+ childCount,
4304
4787
  className: mergeClassNames(SettingsInputWrapper, 'SearchField'),
4305
- childCount
4788
+ type: Div
4306
4789
  }, ...getSettingsInputDom(), ...getSettingsInputBadgeDom(filteredSettingsCount, hasSearchValue), ...getSettingsInputButtonsDom(hasSearchValue)];
4307
4790
  };
4308
4791
 
4309
4792
  const getContentHeadingDom = headerText => {
4310
4793
  return [{
4311
- type: VirtualDomElements.H1,
4794
+ childCount: 1,
4312
4795
  className: SettingsContentHeading,
4313
- childCount: 1
4796
+ type: H1
4314
4797
  }, text(headerText)];
4315
4798
  };
4316
4799
 
4317
4800
  const parentNode$1 = {
4318
- type: VirtualDomElements.Div,
4801
+ childCount: 1,
4319
4802
  className: mergeClassNames(SettingsScrollBar, SettingsScrollBarSmall),
4320
- childCount: 1
4803
+ type: Div
4321
4804
  };
4322
4805
  const getScrollBarDom = (thumbHeight, thumbTop) => {
4323
4806
  return [parentNode$1, {
4324
- type: VirtualDomElements.Div,
4325
- className: SettingsScrollBarThumb,
4326
4807
  childCount: 0,
4808
+ className: SettingsScrollBarThumb,
4327
4809
  height: `${thumbHeight}px`,
4328
- top: `${thumbTop}px`
4810
+ top: `${thumbTop}px`,
4811
+ type: Div
4329
4812
  }];
4330
4813
  };
4331
4814
 
@@ -4334,9 +4817,9 @@ const getErrorMessageDom = errorMessage => {
4334
4817
  return [];
4335
4818
  }
4336
4819
  return [{
4337
- type: VirtualDomElements.Div,
4820
+ childCount: 1,
4338
4821
  className: ErrorMessage,
4339
- childCount: 1
4822
+ type: Div
4340
4823
  }, text(errorMessage)];
4341
4824
  };
4342
4825
 
@@ -4345,9 +4828,9 @@ const getInputId = id => {
4345
4828
  };
4346
4829
 
4347
4830
  const parent = {
4348
- type: VirtualDomElements.H3,
4831
+ childCount: 1,
4349
4832
  className: SettingsItemHeading,
4350
- childCount: 1
4833
+ type: H3
4351
4834
  };
4352
4835
  const getItemHeadingDom = heading => {
4353
4836
  return [parent, text(heading)];
@@ -4355,77 +4838,77 @@ const getItemHeadingDom = heading => {
4355
4838
 
4356
4839
  const getItemLabelDom = (domId, label) => {
4357
4840
  return [{
4358
- type: VirtualDomElements.Label,
4359
- htmlFor: domId,
4360
4841
  childCount: 1,
4361
- className: Label
4842
+ className: Label,
4843
+ htmlFor: domId,
4844
+ type: Label$1
4362
4845
  }, text(label)];
4363
4846
  };
4364
4847
 
4365
4848
  const getItemCheckBoxVirtualDom = item => {
4366
4849
  const {
4367
- heading,
4368
4850
  description,
4369
- id,
4370
- modified,
4851
+ errorMessage,
4371
4852
  hasError,
4372
- errorMessage
4853
+ heading,
4854
+ id,
4855
+ modified
4373
4856
  } = item;
4374
4857
  const domId = getInputId(id);
4375
4858
  const checkBoxClassName = hasError ? `${CheckBox} ${InputBoxError}` : CheckBox;
4376
4859
  const errorChildCount = hasError ? 1 : 0;
4377
4860
  return [{
4378
- type: VirtualDomElements.Div,
4379
- className: SettingsItem,
4380
4861
  childCount: 2 + errorChildCount,
4381
- role: AriaRoles.Group,
4382
- 'data-modified': modified
4862
+ className: SettingsItem,
4863
+ 'data-modified': modified,
4864
+ role: Group,
4865
+ type: Div
4383
4866
  }, ...getItemHeadingDom(heading), {
4384
- type: VirtualDomElements.Div,
4867
+ childCount: 2,
4385
4868
  className: SettingsItemCheckBox,
4386
- childCount: 2
4869
+ type: Div
4387
4870
  }, {
4388
- type: VirtualDomElements.Input,
4389
- className: checkBoxClassName,
4390
4871
  childCount: 0,
4872
+ className: checkBoxClassName,
4391
4873
  id: domId,
4392
4874
  inputType: 'checkbox',
4393
4875
  name: id,
4394
- onChange: HandleSettingChecked
4876
+ onChange: HandleSettingChecked,
4877
+ type: Input
4395
4878
  }, ...getItemLabelDom(domId, description), ...getErrorMessageDom(errorMessage)];
4396
4879
  };
4397
4880
 
4398
4881
  const getItemColorVirtualDom = item => {
4399
4882
  const {
4400
- heading,
4401
4883
  description,
4402
- id,
4403
- modified,
4884
+ errorMessage,
4404
4885
  hasError,
4405
- errorMessage
4886
+ heading,
4887
+ id,
4888
+ modified
4406
4889
  } = item;
4407
4890
  const domId = getInputId(id);
4408
4891
  const colorInputClassName = hasError ? mergeClassNames('ColorInput', InputBoxError) : mergeClassNames('ColorInput');
4409
4892
  const errorChildCount = hasError ? 1 : 0;
4410
4893
  return [{
4411
- type: VirtualDomElements.Div,
4412
- className: SettingsItem,
4413
4894
  childCount: 3 + errorChildCount,
4414
- role: AriaRoles.Group,
4415
- 'data-modified': modified
4895
+ className: SettingsItem,
4896
+ 'data-modified': modified,
4897
+ role: Group,
4898
+ type: Div
4416
4899
  }, ...getItemHeadingDom(heading), {
4417
- type: VirtualDomElements.Div,
4900
+ childCount: 2,
4418
4901
  className: SettingsItemCheckBox,
4419
- childCount: 2
4902
+ type: Div
4420
4903
  }, {
4421
- type: VirtualDomElements.Input,
4422
- className: colorInputClassName,
4423
- inputType: 'color',
4424
- placeholder: colorValue(),
4425
4904
  childCount: 0,
4905
+ className: colorInputClassName,
4426
4906
  id: domId,
4907
+ inputType: 'color',
4427
4908
  name: id,
4428
- onInput: HandleSettingInput
4909
+ onInput: HandleSettingInput,
4910
+ placeholder: colorValue(),
4911
+ type: Input
4429
4912
  }, ...getItemLabelDom(domId, description), ...getErrorMessageDom(errorMessage)];
4430
4913
  };
4431
4914
 
@@ -4434,9 +4917,9 @@ const getSettingsModifiedIndicatorDom = isModified => {
4434
4917
  return [];
4435
4918
  }
4436
4919
  return [{
4437
- type: VirtualDomElements.Div,
4920
+ childCount: 0,
4438
4921
  className: ModifiedIndicator,
4439
- childCount: 0
4922
+ type: Div
4440
4923
  }];
4441
4924
  };
4442
4925
 
@@ -4454,31 +4937,31 @@ const getInputClassName = hasError => {
4454
4937
  };
4455
4938
  const getItemNumberVirtualDom = item => {
4456
4939
  const {
4457
- heading,
4458
4940
  description,
4459
- id,
4460
- modified,
4941
+ errorMessage,
4461
4942
  hasError,
4462
- errorMessage
4943
+ heading,
4944
+ id,
4945
+ modified
4463
4946
  } = item;
4464
4947
  const domId = getInputId(id);
4465
4948
  const inputClassName = getInputClassName(hasError);
4466
4949
  const childCount = getChildCount(modified, hasError);
4467
4950
  return [{
4468
- type: VirtualDomElements.Div,
4469
- className: SettingsItem,
4470
4951
  childCount,
4471
- role: AriaRoles.Group,
4472
- 'data-modified': modified
4952
+ className: SettingsItem,
4953
+ 'data-modified': modified,
4954
+ role: Group,
4955
+ type: Div
4473
4956
  }, ...getSettingsModifiedIndicatorDom(modified), ...getItemHeadingDom(heading), ...getItemLabelDom(domId, description), {
4474
- type: VirtualDomElements.Input,
4475
- className: inputClassName,
4476
- inputType: 'number',
4477
- placeholder: numberValue(),
4478
4957
  childCount: 0,
4958
+ className: inputClassName,
4479
4959
  id: domId,
4960
+ inputType: 'number',
4480
4961
  name: id,
4481
- onInput: HandleSettingInput
4962
+ onInput: HandleSettingInput,
4963
+ placeholder: numberValue(),
4964
+ type: Input
4482
4965
  }, ...getErrorMessageDom(errorMessage)];
4483
4966
  };
4484
4967
 
@@ -4488,118 +4971,118 @@ const getOptionDom = option => {
4488
4971
  label
4489
4972
  } = option;
4490
4973
  return [{
4491
- type: VirtualDomElements.Option,
4492
4974
  childCount: 1,
4975
+ type: Option,
4493
4976
  value: id
4494
4977
  }, text(label)];
4495
4978
  };
4496
4979
 
4497
4980
  const getItemSelectVirtualDom = item => {
4498
4981
  const {
4499
- heading,
4500
4982
  description,
4501
- id,
4502
- options,
4983
+ errorMessage,
4503
4984
  hasError,
4504
- errorMessage
4985
+ heading,
4986
+ id,
4987
+ options
4505
4988
  } = item;
4506
4989
  const domId = getInputId(id);
4507
4990
  const selectClassName = hasError ? `${Select} ${InputBoxError}` : Select;
4508
4991
  const errorChildCount = hasError ? 1 : 0;
4509
4992
  return [{
4510
- type: VirtualDomElements.Div,
4511
- className: SettingsItem,
4512
4993
  childCount: 3 + errorChildCount,
4513
- role: AriaRoles.Group
4994
+ className: SettingsItem,
4995
+ role: Group,
4996
+ type: Div
4514
4997
  }, ...getItemHeadingDom(heading), ...getItemLabelDom(domId, description), {
4515
- type: VirtualDomElements.Select,
4516
- className: selectClassName,
4517
4998
  childCount: options?.length || 0,
4999
+ className: selectClassName,
4518
5000
  id: domId,
4519
5001
  name: id,
4520
- onChange: HandleSettingSelect
5002
+ onChange: HandleSettingSelect,
5003
+ type: Select$1
4521
5004
  }, ...(options?.flatMap(getOptionDom) || []), ...getErrorMessageDom(errorMessage)];
4522
5005
  };
4523
5006
 
4524
5007
  const getItemStringVirtualDom = item => {
4525
5008
  const {
4526
- heading,
4527
5009
  description,
4528
- id,
5010
+ errorMessage,
4529
5011
  hasError,
4530
- errorMessage
5012
+ heading,
5013
+ id
4531
5014
  } = item;
4532
5015
  const domId = getInputId(id);
4533
5016
  const inputClassName = hasError ? `${InputBox} ${InputBoxError}` : InputBox;
4534
5017
  const errorChildCount = hasError ? 1 : 0;
4535
5018
  return [{
4536
- type: VirtualDomElements.Div,
4537
- className: SettingsItem,
4538
5019
  childCount: 3 + errorChildCount,
4539
- role: AriaRoles.Group
5020
+ className: SettingsItem,
5021
+ role: Group,
5022
+ type: Div
4540
5023
  }, ...getItemHeadingDom(heading), ...getItemLabelDom(domId, description), {
4541
- type: VirtualDomElements.Input,
4542
- className: inputClassName,
4543
- inputType: 'text',
4544
- placeholder: stringValue(),
4545
5024
  childCount: 0,
5025
+ className: inputClassName,
4546
5026
  id: domId,
5027
+ inputType: 'text',
4547
5028
  name: id,
4548
- onInput: HandleSettingInput
5029
+ onInput: HandleSettingInput,
5030
+ placeholder: stringValue(),
5031
+ type: Input
4549
5032
  }, ...getErrorMessageDom(errorMessage)];
4550
5033
  };
4551
5034
 
4552
5035
  const getItemUnknownVirtualDom = () => {
4553
5036
  return [{
4554
- type: VirtualDomElements.Div,
4555
- className: SettingsItem,
4556
5037
  childCount: 1,
4557
- role: AriaRoles.Group
5038
+ className: SettingsItem,
5039
+ role: Group,
5040
+ type: Div
4558
5041
  }, text(unknownSettingType())];
4559
5042
  };
4560
5043
 
4561
5044
  const getItemUrlVirtualDom = item => {
4562
5045
  const {
4563
- heading,
4564
5046
  description,
4565
- id,
4566
- modified,
5047
+ errorMessage,
4567
5048
  hasError,
4568
- errorMessage
5049
+ heading,
5050
+ id,
5051
+ modified
4569
5052
  } = item;
4570
5053
  const domId = getInputId(id);
4571
5054
  const inputClassName = hasError ? `${InputBox} ${InputBoxError}` : InputBox;
4572
5055
  const errorChildCount = hasError ? 1 : 0;
4573
5056
  return [{
4574
- type: VirtualDomElements.Div,
4575
- className: SettingsItem,
4576
5057
  childCount: 3 + errorChildCount,
4577
- role: AriaRoles.Group,
4578
- 'data-modified': modified
5058
+ className: SettingsItem,
5059
+ 'data-modified': modified,
5060
+ role: Group,
5061
+ type: Div
4579
5062
  }, ...getItemHeadingDom(heading), ...getItemLabelDom(domId, description), {
4580
- type: VirtualDomElements.Input,
4581
- className: inputClassName,
4582
- inputType: 'url',
4583
- placeholder: numberValue(),
4584
5063
  childCount: 0,
5064
+ className: inputClassName,
4585
5065
  id: domId,
5066
+ inputType: 'url',
4586
5067
  name: id,
4587
- onInput: HandleSettingInput
5068
+ onInput: HandleSettingInput,
5069
+ placeholder: numberValue(),
5070
+ type: Input
4588
5071
  }, ...getErrorMessageDom(errorMessage)];
4589
5072
  };
4590
5073
 
4591
5074
  const getItemRender = type => {
4592
5075
  switch (type) {
4593
- case Number$1:
4594
- return getItemNumberVirtualDom;
4595
5076
  case Boolean$1:
4596
5077
  return getItemCheckBoxVirtualDom;
4597
- case String:
4598
- return getItemStringVirtualDom;
4599
- case Enum:
4600
- return getItemSelectVirtualDom;
4601
5078
  case Color:
4602
5079
  return getItemColorVirtualDom;
5080
+ case Enum:
5081
+ return getItemSelectVirtualDom;
5082
+ case Number$1:
5083
+ return getItemNumberVirtualDom;
5084
+ case String:
5085
+ return getItemStringVirtualDom;
4603
5086
  case Url:
4604
5087
  return getItemUrlVirtualDom;
4605
5088
  default:
@@ -4614,13 +5097,13 @@ const getItemVirtualDom = item => {
4614
5097
 
4615
5098
  const getSettingsNoResultsDom = searchValue => {
4616
5099
  return [{
4617
- type: VirtualDomElements.Div,
5100
+ childCount: 1,
4618
5101
  className: SettingsItems,
4619
- childCount: 1
5102
+ type: Div
4620
5103
  }, {
4621
- type: VirtualDomElements.P,
5104
+ childCount: 1,
4622
5105
  className: SettingsNoResults,
4623
- childCount: 1
5106
+ type: P
4624
5107
  }, text(noSettingsMatching(searchValue))];
4625
5108
  };
4626
5109
 
@@ -4629,9 +5112,9 @@ const getSettingsItemsDom = (items, searchValue) => {
4629
5112
  return getSettingsNoResultsDom(searchValue);
4630
5113
  }
4631
5114
  return [{
4632
- type: VirtualDomElements.Div,
5115
+ childCount: items.length,
4633
5116
  className: SettingsItems,
4634
- childCount: items.length
5117
+ type: Div
4635
5118
  }, ...items.flatMap(getItemVirtualDom)];
4636
5119
  };
4637
5120
 
@@ -4639,14 +5122,14 @@ const getSettingsContentDom = (visibleItems, tabs, searchValue, thumbHeight, thu
4639
5122
  const selectedTab = tabs.find(tab => tab.selected);
4640
5123
  const headerText = selectedTab ? selectedTab.label : settingsContent();
4641
5124
  return [{
4642
- type: VirtualDomElements.Div,
4643
- className: SettingsContent,
4644
5125
  childCount: 2,
4645
- onWheel: HandleWheel
5126
+ className: SettingsContent,
5127
+ onWheel: HandleWheel,
5128
+ type: Div
4646
5129
  }, ...getContentHeadingDom(headerText), {
4647
- type: VirtualDomElements.Div,
5130
+ childCount: 2,
4648
5131
  className: SettingsItemWrapper,
4649
- childCount: 2
5132
+ type: Div
4650
5133
  }, ...getSettingsItemsDom(visibleItems, searchValue), ...getScrollBarDom(thumbHeight, thumbTop)];
4651
5134
  };
4652
5135
 
@@ -4657,55 +5140,55 @@ const getTabClassName = tab => {
4657
5140
  const getTabVirtualDom = tab => {
4658
5141
  const className = getTabClassName(tab);
4659
5142
  return [{
4660
- type: VirtualDomElements.Button,
4661
- className,
5143
+ ariaSelected: tab.selected,
4662
5144
  childCount: 1,
4663
- role: AriaRoles.Tab,
4664
- name: tab.id,
5145
+ className,
4665
5146
  id: tab.id,
4666
- ariaSelected: tab.selected
5147
+ name: tab.id,
5148
+ role: Tab$1,
5149
+ type: Button
4667
5150
  }, text(tab.label)];
4668
5151
  };
4669
5152
 
4670
5153
  const getSettingsTabsDom = tabs => {
4671
5154
  return [{
4672
- type: VirtualDomElements.Ul,
4673
- className: SettingsTabs,
4674
- role: AriaRoles.TabList,
4675
5155
  childCount: tabs.length,
4676
- onClick: HandleClickTab
5156
+ className: SettingsTabs,
5157
+ onClick: HandleClickTab,
5158
+ role: TabList,
5159
+ type: Ul
4677
5160
  }, ...tabs.flatMap(getTabVirtualDom)];
4678
5161
  };
4679
5162
 
4680
5163
  const getSettingsSideBarDom = tabs => {
4681
5164
  return [{
4682
- type: VirtualDomElements.Aside,
5165
+ childCount: 1,
4683
5166
  className: SettingsSideBar,
4684
- childCount: 1
5167
+ type: Aside
4685
5168
  }, ...getSettingsTabsDom(tabs)];
4686
5169
  };
4687
5170
 
4688
5171
  const getSettingsMainDom = (tabs, visibleItems, totalItemCount, searchValue, thumbHeight, thumbTop) => {
4689
5172
  return [{
4690
- type: VirtualDomElements.Div,
5173
+ childCount: 2,
4691
5174
  className: SettingsMain,
4692
- childCount: 2
5175
+ type: Div
4693
5176
  }, ...getSettingsSideBarDom(tabs), ...getSettingsContentDom(visibleItems, tabs, searchValue, thumbHeight, thumbTop)];
4694
5177
  };
4695
5178
 
4696
5179
  const parentNode = {
4697
- type: VirtualDomElements.Div,
4698
5180
  childCount: 2,
4699
- className: mergeClassNames(Viewlet, Settings)
5181
+ className: mergeClassNames(Viewlet, Settings),
5182
+ type: Div
4700
5183
  };
4701
5184
  const getSettingsDom = state => {
4702
5185
  const {
4703
- tabs,
4704
5186
  filteredItems,
4705
- visibleItems,
4706
- searchValue,
4707
5187
  scrollBarThumbHeight,
4708
- scrollBarThumbTop
5188
+ scrollBarThumbTop,
5189
+ searchValue,
5190
+ tabs,
5191
+ visibleItems
4709
5192
  } = state;
4710
5193
  const hasSearchValue = searchValue.trim().length > 0;
4711
5194
  const filteredItemsCount = filteredItems.length;
@@ -4755,18 +5238,18 @@ const renderValue = (oldState, newState) => {
4755
5238
 
4756
5239
  const getRenderer = diffType => {
4757
5240
  switch (diffType) {
5241
+ case RenderFocus:
5242
+ return renderFocus;
5243
+ case RenderFocusContext:
5244
+ return renderFocusContext;
4758
5245
  case RenderItems:
4759
5246
  return renderItems;
4760
- case RenderValue:
4761
- return renderValue;
4762
- case RenderSettingValues:
4763
- return renderSettingValues;
4764
5247
  case RenderScrollOffset:
4765
5248
  return renderScrollOffset;
4766
- case RenderFocusContext:
4767
- return renderFocusContext;
4768
- case RenderFocus:
4769
- return renderFocus;
5249
+ case RenderSettingValues:
5250
+ return renderSettingValues;
5251
+ case RenderValue:
5252
+ return renderValue;
4770
5253
  default:
4771
5254
  throw new Error('unknown renderer');
4772
5255
  }
@@ -4783,10 +5266,10 @@ const applyRender = (oldState, newState, diffResult) => {
4783
5266
 
4784
5267
  const render2 = (uid, diffResult) => {
4785
5268
  const {
4786
- oldState,
4787
- newState
5269
+ newState,
5270
+ oldState
4788
5271
  } = get$1(uid);
4789
- set$1(uid, newState, newState);
5272
+ set$3(uid, newState, newState);
4790
5273
  const commands = applyRender(oldState, newState, diffResult);
4791
5274
  return commands;
4792
5275
  };
@@ -4832,24 +5315,24 @@ const renderEventListeners = () => {
4832
5315
 
4833
5316
  const saveState = state => {
4834
5317
  const {
4835
- tabs,
4836
- searchValue,
4837
- scrollOffset,
4838
5318
  focus,
4839
5319
  history,
4840
- historyIndex
5320
+ historyIndex,
5321
+ scrollOffset,
5322
+ searchValue,
5323
+ tabs
4841
5324
  } = state;
4842
5325
  const selectedTab = getSelectedTabId(tabs);
4843
5326
  return {
4844
- minLineY: 0,
4845
- maxLineY: 0,
4846
5327
  deltaY: 0,
4847
- searchValue,
4848
- selectedTab,
4849
- scrollOffset,
4850
5328
  focus,
4851
5329
  history,
4852
- historyIndex
5330
+ historyIndex,
5331
+ maxLineY: 0,
5332
+ minLineY: 0,
5333
+ scrollOffset,
5334
+ searchValue,
5335
+ selectedTab
4853
5336
  };
4854
5337
  };
4855
5338
 
@@ -4858,9 +5341,9 @@ const useNextSearchValue = state => {
4858
5341
  history,
4859
5342
  historyIndex,
4860
5343
  items,
4861
- tabs,
4862
5344
  modifiedSettings,
4863
- preferences
5345
+ preferences,
5346
+ tabs
4864
5347
  } = state;
4865
5348
  if (history.length === 0 || historyIndex >= history.length - 1) {
4866
5349
  return state;
@@ -4870,10 +5353,10 @@ const useNextSearchValue = state => {
4870
5353
  const filteredItems = getFilteredItems(items, tabs, newSearchValue, modifiedSettings, preferences);
4871
5354
  return {
4872
5355
  ...state,
4873
- searchValue: newSearchValue,
4874
- historyIndex: newHistoryIndex,
4875
5356
  filteredItems,
4876
- inputSource: Script
5357
+ historyIndex: newHistoryIndex,
5358
+ inputSource: Script,
5359
+ searchValue: newSearchValue
4877
5360
  };
4878
5361
  };
4879
5362
 
@@ -4882,9 +5365,9 @@ const usePreviousSearchValue = state => {
4882
5365
  history,
4883
5366
  historyIndex,
4884
5367
  items,
4885
- tabs,
4886
5368
  modifiedSettings,
4887
- preferences
5369
+ preferences,
5370
+ tabs
4888
5371
  } = state;
4889
5372
  if (history.length === 0 || historyIndex <= 0) {
4890
5373
  return state;
@@ -4894,10 +5377,10 @@ const usePreviousSearchValue = state => {
4894
5377
  const filteredItems = getFilteredItems(items, tabs, newSearchValue, modifiedSettings, preferences);
4895
5378
  return {
4896
5379
  ...state,
4897
- searchValue: newSearchValue,
4898
- historyIndex: newHistoryIndex,
4899
5380
  filteredItems,
4900
- inputSource: Script
5381
+ historyIndex: newHistoryIndex,
5382
+ inputSource: Script,
5383
+ searchValue: newSearchValue
4901
5384
  };
4902
5385
  };
4903
5386
 
@@ -4907,17 +5390,18 @@ const commandMap = {
4907
5390
  'Settings.clearHistory': wrapCommand(clearHistory),
4908
5391
  'Settings.create': create$1,
4909
5392
  'Settings.diff2': diff2,
4910
- 'Settings.getName': getName,
4911
5393
  'Settings.getCommandIds': getCommandIds,
5394
+ 'Settings.getKeyBindings': getKeyBindings$1,
5395
+ 'Settings.getName': getName,
4912
5396
  'Settings.handleClickTab': wrapCommand(handleClickTab),
4913
- 'Settings.handleInputBlur': wrapCommand(handleInputBlur),
4914
5397
  'Settings.handleInput': wrapCommand(handleInput),
5398
+ 'Settings.handleInputBlur': wrapCommand(handleInputBlur),
5399
+ 'Settings.handleInputFocus': wrapCommand(handleInputFocus),
4915
5400
  'Settings.handleScroll': wrapCommand(handleScroll),
4916
- 'Settings.handleWheel': wrapCommand(handleWheel),
4917
5401
  'Settings.handleSettingChecked': wrapCommand(handleSettingChecked),
4918
5402
  'Settings.handleSettingInput': wrapCommand(handleSettingInput),
4919
- 'Settings.handleInputFocus': wrapCommand(handleInputFocus),
4920
5403
  'Settings.handleSettingSelect': wrapCommand(handleSettingSelect),
5404
+ 'Settings.handleWheel': wrapCommand(handleWheel),
4921
5405
  'Settings.loadContent': wrapCommand(loadContent),
4922
5406
  'Settings.render2': render2,
4923
5407
  'Settings.renderActions': renderActions,
@@ -4926,8 +5410,7 @@ const commandMap = {
4926
5410
  'Settings.saveState': wrapGetter(saveState),
4927
5411
  'Settings.terminate': terminate,
4928
5412
  'Settings.useNextSearchValue': wrapCommand(useNextSearchValue),
4929
- 'Settings.usePreviousSearchValue': wrapCommand(usePreviousSearchValue),
4930
- 'Settings.getKeyBindings': getKeyBindings$1
5413
+ 'Settings.usePreviousSearchValue': wrapCommand(usePreviousSearchValue)
4931
5414
  };
4932
5415
 
4933
5416
  const {