@lvce-editor/text-search-worker 7.2.1 → 7.4.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.
- package/dist/textSearchWorkerMain.js +218 -177
- package/package.json +1 -1
|
@@ -661,7 +661,10 @@ const constructError = (message, type, name) => {
|
|
|
661
661
|
if (ErrorConstructor === Error) {
|
|
662
662
|
const error = new Error(message);
|
|
663
663
|
if (name && name !== 'VError') {
|
|
664
|
-
error
|
|
664
|
+
Object.defineProperty(error, 'name', {
|
|
665
|
+
configurable: true,
|
|
666
|
+
value: name
|
|
667
|
+
});
|
|
665
668
|
}
|
|
666
669
|
return error;
|
|
667
670
|
}
|
|
@@ -678,8 +681,10 @@ const getCurrentStack = () => {
|
|
|
678
681
|
const currentStack = joinLines(splitLines(new Error().stack || '').slice(stackLinesToSkip));
|
|
679
682
|
return currentStack;
|
|
680
683
|
};
|
|
681
|
-
const getNewLineIndex = (string, startIndex
|
|
682
|
-
|
|
684
|
+
const getNewLineIndex = (string, startIndex) => {
|
|
685
|
+
{
|
|
686
|
+
return string.indexOf(NewLine);
|
|
687
|
+
}
|
|
683
688
|
};
|
|
684
689
|
const getParentStack = error => {
|
|
685
690
|
let parentStack = error.stack || error.data || error.message || '';
|
|
@@ -690,55 +695,91 @@ const getParentStack = error => {
|
|
|
690
695
|
};
|
|
691
696
|
const MethodNotFound = -32601;
|
|
692
697
|
const Custom = -32001;
|
|
698
|
+
const setStack = (error, stack) => {
|
|
699
|
+
const descriptor = Object.getOwnPropertyDescriptor(error, 'stack');
|
|
700
|
+
if (descriptor) {
|
|
701
|
+
if (!descriptor.configurable && !descriptor.writable) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
if (!descriptor.configurable && descriptor.writable) {
|
|
705
|
+
error.stack = stack;
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
Object.defineProperty(error, 'stack', {
|
|
710
|
+
configurable: true,
|
|
711
|
+
value: stack,
|
|
712
|
+
writable: true
|
|
713
|
+
});
|
|
714
|
+
};
|
|
715
|
+
const restoreExistingError = (error, currentStack) => {
|
|
716
|
+
if (typeof error.stack === 'string') {
|
|
717
|
+
setStack(error, `${error.stack}${NewLine}${currentStack}`);
|
|
718
|
+
}
|
|
719
|
+
return error;
|
|
720
|
+
};
|
|
721
|
+
const restoreMethodNotFoundError = (error, currentStack) => {
|
|
722
|
+
const restoredError = new JsonRpcError(error.message);
|
|
723
|
+
const parentStack = getParentStack(error);
|
|
724
|
+
setStack(restoredError, `${parentStack}${NewLine}${currentStack}`);
|
|
725
|
+
return restoredError;
|
|
726
|
+
};
|
|
727
|
+
const restoreStackFromData = (restoredError, error, currentStack) => {
|
|
728
|
+
if (error.data.stack && error.data.type && error.message) {
|
|
729
|
+
setStack(restoredError, `${error.data.type}: ${error.message}${NewLine}${error.data.stack}${NewLine}${currentStack}`);
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
if (error.data.stack) {
|
|
733
|
+
setStack(restoredError, error.data.stack);
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
const applyDataProperties = (restoredError, error) => {
|
|
737
|
+
restoreStackFromData(restoredError, error, getCurrentStack());
|
|
738
|
+
if (error.data.codeFrame) {
|
|
739
|
+
// @ts-ignore
|
|
740
|
+
restoredError.codeFrame = error.data.codeFrame;
|
|
741
|
+
}
|
|
742
|
+
if (error.data.code) {
|
|
743
|
+
// @ts-ignore
|
|
744
|
+
restoredError.code = error.data.code;
|
|
745
|
+
}
|
|
746
|
+
if (error.data.type) {
|
|
747
|
+
// @ts-ignore
|
|
748
|
+
restoredError.name = error.data.type;
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
const applyDirectProperties = (restoredError, error) => {
|
|
752
|
+
if (error.stack) {
|
|
753
|
+
const lowerStack = restoredError.stack || '';
|
|
754
|
+
const indexNewLine = getNewLineIndex(lowerStack);
|
|
755
|
+
const parentStack = getParentStack(error);
|
|
756
|
+
// @ts-ignore
|
|
757
|
+
setStack(restoredError, `${parentStack}${lowerStack.slice(indexNewLine)}`);
|
|
758
|
+
}
|
|
759
|
+
if (error.codeFrame) {
|
|
760
|
+
// @ts-ignore
|
|
761
|
+
restoredError.codeFrame = error.codeFrame;
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
const restoreMessageError = (error, _currentStack) => {
|
|
765
|
+
const restoredError = constructError(error.message, error.type, error.name);
|
|
766
|
+
if (error.data) {
|
|
767
|
+
applyDataProperties(restoredError, error);
|
|
768
|
+
} else {
|
|
769
|
+
applyDirectProperties(restoredError, error);
|
|
770
|
+
}
|
|
771
|
+
return restoredError;
|
|
772
|
+
};
|
|
693
773
|
const restoreJsonRpcError = error => {
|
|
694
774
|
const currentStack = getCurrentStack();
|
|
695
775
|
if (error && error instanceof Error) {
|
|
696
|
-
|
|
697
|
-
error.stack = error.stack + NewLine + currentStack;
|
|
698
|
-
}
|
|
699
|
-
return error;
|
|
776
|
+
return restoreExistingError(error, currentStack);
|
|
700
777
|
}
|
|
701
778
|
if (error && error.code && error.code === MethodNotFound) {
|
|
702
|
-
|
|
703
|
-
const parentStack = getParentStack(error);
|
|
704
|
-
restoredError.stack = parentStack + NewLine + currentStack;
|
|
705
|
-
return restoredError;
|
|
779
|
+
return restoreMethodNotFoundError(error, currentStack);
|
|
706
780
|
}
|
|
707
781
|
if (error && error.message) {
|
|
708
|
-
|
|
709
|
-
if (error.data) {
|
|
710
|
-
if (error.data.stack && error.data.type && error.message) {
|
|
711
|
-
restoredError.stack = error.data.type + ': ' + error.message + NewLine + error.data.stack + NewLine + currentStack;
|
|
712
|
-
} else if (error.data.stack) {
|
|
713
|
-
restoredError.stack = error.data.stack;
|
|
714
|
-
}
|
|
715
|
-
if (error.data.codeFrame) {
|
|
716
|
-
// @ts-ignore
|
|
717
|
-
restoredError.codeFrame = error.data.codeFrame;
|
|
718
|
-
}
|
|
719
|
-
if (error.data.code) {
|
|
720
|
-
// @ts-ignore
|
|
721
|
-
restoredError.code = error.data.code;
|
|
722
|
-
}
|
|
723
|
-
if (error.data.type) {
|
|
724
|
-
// @ts-ignore
|
|
725
|
-
restoredError.name = error.data.type;
|
|
726
|
-
}
|
|
727
|
-
} else {
|
|
728
|
-
if (error.stack) {
|
|
729
|
-
const lowerStack = restoredError.stack || '';
|
|
730
|
-
// @ts-ignore
|
|
731
|
-
const indexNewLine = getNewLineIndex(lowerStack);
|
|
732
|
-
const parentStack = getParentStack(error);
|
|
733
|
-
// @ts-ignore
|
|
734
|
-
restoredError.stack = parentStack + lowerStack.slice(indexNewLine);
|
|
735
|
-
}
|
|
736
|
-
if (error.codeFrame) {
|
|
737
|
-
// @ts-ignore
|
|
738
|
-
restoredError.codeFrame = error.codeFrame;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
return restoredError;
|
|
782
|
+
return restoreMessageError(error);
|
|
742
783
|
}
|
|
743
784
|
if (typeof error === 'string') {
|
|
744
785
|
return new Error(`JsonRpc Error: ${error}`);
|
|
@@ -1260,141 +1301,10 @@ const create$3 = rpcId => {
|
|
|
1260
1301
|
};
|
|
1261
1302
|
};
|
|
1262
1303
|
|
|
1263
|
-
const Alert = 'alert';
|
|
1264
|
-
const Button$3 = 'button';
|
|
1265
|
-
const CheckBox = 'checkbox';
|
|
1266
|
-
const None$2 = 'none';
|
|
1267
|
-
const ScrollBar$1 = 'scrollbar';
|
|
1268
|
-
const Status = 'status';
|
|
1269
|
-
const ToolBar = 'toolbar';
|
|
1270
|
-
const Tree$1 = 'tree';
|
|
1271
|
-
const TreeItem$1 = 'treeitem';
|
|
1272
|
-
|
|
1273
|
-
const Actions = 'Actions';
|
|
1274
|
-
const Badge = 'Badge';
|
|
1275
|
-
const Chevron = 'Chevron';
|
|
1276
|
-
const CloseMaskIcon = 'MaskIcon MaskIconClose';
|
|
1277
|
-
const Empty$1 = '';
|
|
1278
|
-
const FileIcon = 'FileIcon';
|
|
1279
|
-
const FocusOutline = 'FocusOutline';
|
|
1280
|
-
const Grow = 'Grow';
|
|
1281
|
-
const Highlight = 'Highlight';
|
|
1282
|
-
const HighlightDeleted = 'HighlightDeleted';
|
|
1283
|
-
const HighlightInserted = 'HighlightInserted';
|
|
1284
|
-
const IconButton = 'IconButton';
|
|
1285
|
-
const IconButtonDisabled = 'IconButtonDisabled';
|
|
1286
|
-
const Label = 'Label';
|
|
1287
|
-
const List$1 = 'List';
|
|
1288
|
-
const MaskIcon = 'MaskIcon';
|
|
1289
|
-
const MaskIconBook = 'MaskIconBook';
|
|
1290
|
-
const MaskIconCaseSensitive = 'MaskIconCaseSensitive';
|
|
1291
|
-
const MaskIconChevronDown = 'MaskIconChevronDown';
|
|
1292
|
-
const MaskIconChevronRight = 'MaskIconChevronRight';
|
|
1293
|
-
const MaskIconEllipsis = 'MaskIconEllipsis';
|
|
1294
|
-
const MaskIconExclude = 'MaskIconExclude';
|
|
1295
|
-
const MaskIconPreserveCase = 'MaskIconPreserveCase';
|
|
1296
|
-
const MaskIconRegex = 'MaskIconRegex';
|
|
1297
|
-
const MaskIconReplaceAll = 'MaskIconReplaceAll';
|
|
1298
|
-
const MaskIconWholeWord = 'MaskIconWholeWord';
|
|
1299
|
-
const MultilineInputBox = 'MultilineInputBox';
|
|
1300
|
-
const ScrollBar = 'ScrollBar';
|
|
1301
|
-
const ScrollBarThumb = 'ScrollBarThumb';
|
|
1302
|
-
const ScrollBarVertical = 'ScrollBarVertical';
|
|
1303
|
-
const Search$2 = 'Search';
|
|
1304
|
-
const SearchField = 'SearchField';
|
|
1305
|
-
const SearchFieldButton = 'SearchFieldButton';
|
|
1306
|
-
const SearchFieldButtonChecked = 'SearchFieldButtonChecked';
|
|
1307
|
-
const SearchFieldButtonDisabled = 'SearchFieldButtonDisabled';
|
|
1308
|
-
const SearchFieldButtons = 'SearchFieldButtons';
|
|
1309
|
-
const SearchFieldContainer = 'SearchFieldContainer';
|
|
1310
|
-
const SearchFieldError = 'SearchFieldError';
|
|
1311
|
-
const SearchHeader = 'SearchHeader';
|
|
1312
|
-
const SearchHeaderDetails = 'SearchHeaderDetails';
|
|
1313
|
-
const SearchHeaderDetailsExpanded = 'SearchHeaderDetailsExpanded';
|
|
1314
|
-
const SearchHeaderDetailsExpandedTop = 'SearchHeaderDetailsExpandedTop';
|
|
1315
|
-
const SearchHeaderDetailsHeading = 'SearchHeaderDetailsHeading';
|
|
1316
|
-
const SearchHeaderTop = 'SearchHeaderTop';
|
|
1317
|
-
const SearchHeaderTopRight = 'SearchHeaderTopRight';
|
|
1318
|
-
const SearchInputError = 'SearchInputError';
|
|
1319
|
-
const SearchRemove = 'SearchRemove';
|
|
1320
|
-
const SearchToggleButton = 'SearchToggleButton';
|
|
1321
|
-
const SearchToggleButtonExpanded = 'SearchToggleButtonExpanded';
|
|
1322
|
-
const SourceControlBadge = 'SourceControlBadge';
|
|
1323
|
-
const ToggleDetails = 'ToggleDetails';
|
|
1324
|
-
const Tree = 'Tree';
|
|
1325
|
-
const TreeItem = 'TreeItem';
|
|
1326
|
-
const TreeItemActive = 'TreeItemActive';
|
|
1327
|
-
const TreeItems$1 = 'TreeItems';
|
|
1328
|
-
const Viewlet = 'Viewlet';
|
|
1329
|
-
const ViewletSearchMessage = 'ViewletSearchMessage';
|
|
1330
|
-
const ViewletSearchMessageIndented = 'ViewletSearchMessageIndented';
|
|
1331
|
-
|
|
1332
|
-
const File$2 = 7;
|
|
1333
|
-
|
|
1334
|
-
const Button$2 = 1;
|
|
1335
|
-
const Div = 4;
|
|
1336
|
-
const Span = 8;
|
|
1337
|
-
const Text = 12;
|
|
1338
|
-
const Img = 17;
|
|
1339
|
-
const Ins = 20;
|
|
1340
|
-
const Del = 21;
|
|
1341
|
-
const H4 = 24;
|
|
1342
|
-
const TextArea = 62;
|
|
1343
|
-
const Reference = 100;
|
|
1344
|
-
|
|
1345
|
-
const Button$1 = 'event.button';
|
|
1346
|
-
const ClientX = 'event.clientX';
|
|
1347
|
-
const ClientY = 'event.clientY';
|
|
1348
|
-
const DeltaMode = 'event.deltaMode';
|
|
1349
|
-
const DeltaY = 'event.deltaY';
|
|
1350
|
-
const TargetName = 'event.target.name';
|
|
1351
|
-
const TargetSelectionEnd = 'event.target.selectionEnd';
|
|
1352
|
-
const TargetSelectionStart = 'event.target.selectionStart';
|
|
1353
|
-
const TargetValue = 'event.target.value';
|
|
1354
|
-
|
|
1355
|
-
const Script$1 = 2;
|
|
1356
|
-
|
|
1357
|
-
const Search$1 = 18;
|
|
1358
|
-
const InputContextMenu = 91;
|
|
1359
|
-
|
|
1360
|
-
const Separator = 1;
|
|
1361
|
-
const None$1 = 0;
|
|
1362
|
-
|
|
1363
|
-
const LeftClick = 0;
|
|
1364
|
-
|
|
1365
|
-
const Electron = 2;
|
|
1366
|
-
const Remote = 3;
|
|
1367
|
-
|
|
1368
1304
|
const IconThemeWorker = 7009;
|
|
1369
1305
|
const RendererWorker = 1;
|
|
1370
1306
|
const SearchProcess = 77;
|
|
1371
1307
|
|
|
1372
|
-
const File$1 = 1;
|
|
1373
|
-
const Match$1 = 2;
|
|
1374
|
-
|
|
1375
|
-
const FocusElementByName = 'Viewlet.focusElementByName';
|
|
1376
|
-
const SetCss = 'Viewlet.setCss';
|
|
1377
|
-
const SetFocusContext = 'Viewlet.setFocusContext';
|
|
1378
|
-
const SetValueByName = 'Viewlet.setValueByName';
|
|
1379
|
-
const SetPatches = 'Viewlet.setPatches';
|
|
1380
|
-
|
|
1381
|
-
const Empty = 0;
|
|
1382
|
-
const FocusIgnoreFiles = 1012;
|
|
1383
|
-
const FocusSearch = 1013;
|
|
1384
|
-
const FocusSearchExcludeInput = 1008;
|
|
1385
|
-
const FocusSearchIncludeInput = 1007;
|
|
1386
|
-
const FocusSearchInput = 21;
|
|
1387
|
-
const FocusSearchMatchCase = 32;
|
|
1388
|
-
const FocusSearchOpenEditors = 1011;
|
|
1389
|
-
const FocusSearchPreserveCase = 36;
|
|
1390
|
-
const FocusSearchRegex = 33;
|
|
1391
|
-
const FocusSearchReplaceAll = 35;
|
|
1392
|
-
const FocusSearchReplaceInput = 31;
|
|
1393
|
-
const FocusSearchResults = 22;
|
|
1394
|
-
const FocusSearchWholeWord = 34;
|
|
1395
|
-
const FocusToggleDetails = 1010;
|
|
1396
|
-
const FocusToggleReplace = 1020;
|
|
1397
|
-
|
|
1398
1308
|
const {
|
|
1399
1309
|
invoke: invoke$2,
|
|
1400
1310
|
set: set$3
|
|
@@ -1561,6 +1471,137 @@ const terminate = () => {
|
|
|
1561
1471
|
globalThis.close();
|
|
1562
1472
|
};
|
|
1563
1473
|
|
|
1474
|
+
const Alert = 'alert';
|
|
1475
|
+
const Button$3 = 'button';
|
|
1476
|
+
const CheckBox = 'checkbox';
|
|
1477
|
+
const None$2 = 'none';
|
|
1478
|
+
const ScrollBar$1 = 'scrollbar';
|
|
1479
|
+
const Status = 'status';
|
|
1480
|
+
const ToolBar = 'toolbar';
|
|
1481
|
+
const Tree$1 = 'tree';
|
|
1482
|
+
const TreeItem$1 = 'treeitem';
|
|
1483
|
+
|
|
1484
|
+
const Actions = 'Actions';
|
|
1485
|
+
const Badge = 'Badge';
|
|
1486
|
+
const Chevron = 'Chevron';
|
|
1487
|
+
const CloseMaskIcon = 'MaskIcon MaskIconClose';
|
|
1488
|
+
const Empty$1 = '';
|
|
1489
|
+
const FileIcon = 'FileIcon';
|
|
1490
|
+
const FocusOutline = 'FocusOutline';
|
|
1491
|
+
const Grow = 'Grow';
|
|
1492
|
+
const Highlight = 'Highlight';
|
|
1493
|
+
const HighlightDeleted = 'HighlightDeleted';
|
|
1494
|
+
const HighlightInserted = 'HighlightInserted';
|
|
1495
|
+
const IconButton = 'IconButton';
|
|
1496
|
+
const IconButtonDisabled = 'IconButtonDisabled';
|
|
1497
|
+
const Label = 'Label';
|
|
1498
|
+
const List$1 = 'List';
|
|
1499
|
+
const MaskIcon = 'MaskIcon';
|
|
1500
|
+
const MaskIconBook = 'MaskIconBook';
|
|
1501
|
+
const MaskIconCaseSensitive = 'MaskIconCaseSensitive';
|
|
1502
|
+
const MaskIconChevronDown = 'MaskIconChevronDown';
|
|
1503
|
+
const MaskIconChevronRight = 'MaskIconChevronRight';
|
|
1504
|
+
const MaskIconEllipsis = 'MaskIconEllipsis';
|
|
1505
|
+
const MaskIconExclude = 'MaskIconExclude';
|
|
1506
|
+
const MaskIconPreserveCase = 'MaskIconPreserveCase';
|
|
1507
|
+
const MaskIconRegex = 'MaskIconRegex';
|
|
1508
|
+
const MaskIconReplaceAll = 'MaskIconReplaceAll';
|
|
1509
|
+
const MaskIconWholeWord = 'MaskIconWholeWord';
|
|
1510
|
+
const MultilineInputBox = 'MultilineInputBox';
|
|
1511
|
+
const ScrollBar = 'ScrollBar';
|
|
1512
|
+
const ScrollBarThumb = 'ScrollBarThumb';
|
|
1513
|
+
const ScrollBarVertical = 'ScrollBarVertical';
|
|
1514
|
+
const Search$2 = 'Search';
|
|
1515
|
+
const SearchField = 'SearchField';
|
|
1516
|
+
const SearchFieldButton = 'SearchFieldButton';
|
|
1517
|
+
const SearchFieldButtonChecked = 'SearchFieldButtonChecked';
|
|
1518
|
+
const SearchFieldButtonDisabled = 'SearchFieldButtonDisabled';
|
|
1519
|
+
const SearchFieldButtons = 'SearchFieldButtons';
|
|
1520
|
+
const SearchFieldContainer = 'SearchFieldContainer';
|
|
1521
|
+
const SearchFieldError = 'SearchFieldError';
|
|
1522
|
+
const SearchHeader = 'SearchHeader';
|
|
1523
|
+
const SearchHeaderDetails = 'SearchHeaderDetails';
|
|
1524
|
+
const SearchHeaderDetailsExpanded = 'SearchHeaderDetailsExpanded';
|
|
1525
|
+
const SearchHeaderDetailsExpandedTop = 'SearchHeaderDetailsExpandedTop';
|
|
1526
|
+
const SearchHeaderDetailsHeading = 'SearchHeaderDetailsHeading';
|
|
1527
|
+
const SearchHeaderTop = 'SearchHeaderTop';
|
|
1528
|
+
const SearchHeaderTopRight = 'SearchHeaderTopRight';
|
|
1529
|
+
const SearchInputError = 'SearchInputError';
|
|
1530
|
+
const SearchRemove = 'SearchRemove';
|
|
1531
|
+
const SearchToggleButton = 'SearchToggleButton';
|
|
1532
|
+
const SearchToggleButtonExpanded = 'SearchToggleButtonExpanded';
|
|
1533
|
+
const SourceControlBadge = 'SourceControlBadge';
|
|
1534
|
+
const ToggleDetails = 'ToggleDetails';
|
|
1535
|
+
const Tree = 'Tree';
|
|
1536
|
+
const TreeItem = 'TreeItem';
|
|
1537
|
+
const TreeItemActive = 'TreeItemActive';
|
|
1538
|
+
const TreeItems$1 = 'TreeItems';
|
|
1539
|
+
const Viewlet = 'Viewlet';
|
|
1540
|
+
const ViewletSearchMessage = 'ViewletSearchMessage';
|
|
1541
|
+
const ViewletSearchMessageIndented = 'ViewletSearchMessageIndented';
|
|
1542
|
+
|
|
1543
|
+
const File$2 = 7;
|
|
1544
|
+
|
|
1545
|
+
const Button$2 = 1;
|
|
1546
|
+
const Div = 4;
|
|
1547
|
+
const Span = 8;
|
|
1548
|
+
const Text = 12;
|
|
1549
|
+
const Img = 17;
|
|
1550
|
+
const Ins = 20;
|
|
1551
|
+
const Del = 21;
|
|
1552
|
+
const H4 = 24;
|
|
1553
|
+
const TextArea = 62;
|
|
1554
|
+
const Reference = 100;
|
|
1555
|
+
|
|
1556
|
+
const Button$1 = 'event.button';
|
|
1557
|
+
const ClientX = 'event.clientX';
|
|
1558
|
+
const ClientY = 'event.clientY';
|
|
1559
|
+
const DeltaMode = 'event.deltaMode';
|
|
1560
|
+
const DeltaY = 'event.deltaY';
|
|
1561
|
+
const TargetName = 'event.target.name';
|
|
1562
|
+
const TargetSelectionEnd = 'event.target.selectionEnd';
|
|
1563
|
+
const TargetSelectionStart = 'event.target.selectionStart';
|
|
1564
|
+
const TargetValue = 'event.target.value';
|
|
1565
|
+
|
|
1566
|
+
const Script$1 = 2;
|
|
1567
|
+
|
|
1568
|
+
const Search$1 = 18;
|
|
1569
|
+
const InputContextMenu = 91;
|
|
1570
|
+
|
|
1571
|
+
const Separator = 1;
|
|
1572
|
+
const None$1 = 0;
|
|
1573
|
+
|
|
1574
|
+
const LeftClick = 0;
|
|
1575
|
+
|
|
1576
|
+
const Electron = 2;
|
|
1577
|
+
const Remote = 3;
|
|
1578
|
+
|
|
1579
|
+
const File$1 = 1;
|
|
1580
|
+
const Match$1 = 2;
|
|
1581
|
+
|
|
1582
|
+
const FocusElementByName = 'Viewlet.focusElementByName';
|
|
1583
|
+
const SetCss = 'Viewlet.setCss';
|
|
1584
|
+
const SetFocusContext = 'Viewlet.setFocusContext';
|
|
1585
|
+
const SetValueByName = 'Viewlet.setValueByName';
|
|
1586
|
+
const SetPatches = 'Viewlet.setPatches';
|
|
1587
|
+
|
|
1588
|
+
const Empty = 0;
|
|
1589
|
+
const FocusIgnoreFiles = 1012;
|
|
1590
|
+
const FocusSearch = 1013;
|
|
1591
|
+
const FocusSearchExcludeInput = 1008;
|
|
1592
|
+
const FocusSearchIncludeInput = 1007;
|
|
1593
|
+
const FocusSearchInput = 21;
|
|
1594
|
+
const FocusSearchMatchCase = 32;
|
|
1595
|
+
const FocusSearchOpenEditors = 1011;
|
|
1596
|
+
const FocusSearchPreserveCase = 36;
|
|
1597
|
+
const FocusSearchRegex = 33;
|
|
1598
|
+
const FocusSearchReplaceAll = 35;
|
|
1599
|
+
const FocusSearchReplaceInput = 31;
|
|
1600
|
+
const FocusSearchResults = 22;
|
|
1601
|
+
const FocusSearchWholeWord = 34;
|
|
1602
|
+
const FocusToggleDetails = 1010;
|
|
1603
|
+
const FocusToggleReplace = 1020;
|
|
1604
|
+
|
|
1564
1605
|
const mergeClassNames = (...classNames) => {
|
|
1565
1606
|
return classNames.filter(Boolean).join(' ');
|
|
1566
1607
|
};
|
|
@@ -4533,7 +4574,7 @@ const send = async port => {
|
|
|
4533
4574
|
};
|
|
4534
4575
|
const launchIconThemeWorker = async () => {
|
|
4535
4576
|
// TODO connect to icon theme worker
|
|
4536
|
-
const rpc = await create$
|
|
4577
|
+
const rpc = await create$8({
|
|
4537
4578
|
commandMap: {},
|
|
4538
4579
|
send
|
|
4539
4580
|
});
|