@lvce-editor/settings-view 2.7.0 → 2.9.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/settingsViewWorkerMain.js +188 -120
- package/package.json +2 -2
|
@@ -412,56 +412,14 @@ const IpcChildWithModuleWorkerAndMessagePort$1 = {
|
|
|
412
412
|
wrap: wrap$e
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
-
const Two = '2.0';
|
|
416
|
-
const create$4 = (method, params) => {
|
|
417
|
-
return {
|
|
418
|
-
jsonrpc: Two,
|
|
419
|
-
method,
|
|
420
|
-
params
|
|
421
|
-
};
|
|
422
|
-
};
|
|
415
|
+
const Two$1 = '2.0';
|
|
423
416
|
const callbacks = Object.create(null);
|
|
424
|
-
const set$4 = (id, fn) => {
|
|
425
|
-
callbacks[id] = fn;
|
|
426
|
-
};
|
|
427
417
|
const get$2 = id => {
|
|
428
418
|
return callbacks[id];
|
|
429
419
|
};
|
|
430
|
-
const remove = id => {
|
|
420
|
+
const remove$1 = id => {
|
|
431
421
|
delete callbacks[id];
|
|
432
422
|
};
|
|
433
|
-
let id = 0;
|
|
434
|
-
const create$3$1 = () => {
|
|
435
|
-
return ++id;
|
|
436
|
-
};
|
|
437
|
-
const registerPromise = () => {
|
|
438
|
-
const id = create$3$1();
|
|
439
|
-
const {
|
|
440
|
-
resolve,
|
|
441
|
-
promise
|
|
442
|
-
} = Promise.withResolvers();
|
|
443
|
-
set$4(id, resolve);
|
|
444
|
-
return {
|
|
445
|
-
id,
|
|
446
|
-
promise
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
const create$2$1 = (method, params) => {
|
|
450
|
-
const {
|
|
451
|
-
id,
|
|
452
|
-
promise
|
|
453
|
-
} = registerPromise();
|
|
454
|
-
const message = {
|
|
455
|
-
jsonrpc: Two,
|
|
456
|
-
method,
|
|
457
|
-
params,
|
|
458
|
-
id
|
|
459
|
-
};
|
|
460
|
-
return {
|
|
461
|
-
message,
|
|
462
|
-
promise
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
423
|
class JsonRpcError extends Error {
|
|
466
424
|
constructor(message) {
|
|
467
425
|
super(message);
|
|
@@ -612,7 +570,7 @@ const resolve = (id, response) => {
|
|
|
612
570
|
return;
|
|
613
571
|
}
|
|
614
572
|
fn(response);
|
|
615
|
-
remove(id);
|
|
573
|
+
remove$1(id);
|
|
616
574
|
};
|
|
617
575
|
const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
|
|
618
576
|
const getErrorType = prettyError => {
|
|
@@ -655,9 +613,9 @@ const getErrorProperty = (error, prettyError) => {
|
|
|
655
613
|
}
|
|
656
614
|
};
|
|
657
615
|
};
|
|
658
|
-
const create$1$
|
|
616
|
+
const create$1$2 = (id, error) => {
|
|
659
617
|
return {
|
|
660
|
-
jsonrpc: Two,
|
|
618
|
+
jsonrpc: Two$1,
|
|
661
619
|
id,
|
|
662
620
|
error
|
|
663
621
|
};
|
|
@@ -666,22 +624,22 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
|
|
|
666
624
|
const prettyError = preparePrettyError(error);
|
|
667
625
|
logError(error, prettyError);
|
|
668
626
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
669
|
-
return create$1$
|
|
627
|
+
return create$1$2(id, errorProperty);
|
|
670
628
|
};
|
|
671
|
-
const create$
|
|
629
|
+
const create$3 = (message, result) => {
|
|
672
630
|
return {
|
|
673
|
-
jsonrpc: Two,
|
|
631
|
+
jsonrpc: Two$1,
|
|
674
632
|
id: message.id,
|
|
675
633
|
result: result ?? null
|
|
676
634
|
};
|
|
677
635
|
};
|
|
678
636
|
const getSuccessResponse = (message, result) => {
|
|
679
637
|
const resultProperty = result ?? null;
|
|
680
|
-
return create$
|
|
638
|
+
return create$3(message, resultProperty);
|
|
681
639
|
};
|
|
682
640
|
const getErrorResponseSimple = (id, error) => {
|
|
683
641
|
return {
|
|
684
|
-
jsonrpc: Two,
|
|
642
|
+
jsonrpc: Two$1,
|
|
685
643
|
id,
|
|
686
644
|
error: {
|
|
687
645
|
code: Custom,
|
|
@@ -768,29 +726,6 @@ const handleJsonRpcMessage = async (...args) => {
|
|
|
768
726
|
}
|
|
769
727
|
throw new JsonRpcError('unexpected message');
|
|
770
728
|
};
|
|
771
|
-
const invokeHelper = async (ipc, method, params, useSendAndTransfer) => {
|
|
772
|
-
const {
|
|
773
|
-
message,
|
|
774
|
-
promise
|
|
775
|
-
} = create$2$1(method, params);
|
|
776
|
-
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
777
|
-
ipc.sendAndTransfer(message);
|
|
778
|
-
} else {
|
|
779
|
-
ipc.send(message);
|
|
780
|
-
}
|
|
781
|
-
const responseMessage = await promise;
|
|
782
|
-
return unwrapJsonRpcResult(responseMessage);
|
|
783
|
-
};
|
|
784
|
-
const send = (transport, method, ...params) => {
|
|
785
|
-
const message = create$4(method, params);
|
|
786
|
-
transport.send(message);
|
|
787
|
-
};
|
|
788
|
-
const invoke$1 = (ipc, method, ...params) => {
|
|
789
|
-
return invokeHelper(ipc, method, params, false);
|
|
790
|
-
};
|
|
791
|
-
const invokeAndTransfer$1 = (ipc, method, ...params) => {
|
|
792
|
-
return invokeHelper(ipc, method, params, true);
|
|
793
|
-
};
|
|
794
729
|
|
|
795
730
|
class CommandNotFoundError extends Error {
|
|
796
731
|
constructor(command) {
|
|
@@ -813,24 +748,87 @@ const execute = (command, ...args) => {
|
|
|
813
748
|
return fn(...args);
|
|
814
749
|
};
|
|
815
750
|
|
|
751
|
+
const Two = '2.0';
|
|
752
|
+
const create$s = (method, params) => {
|
|
753
|
+
return {
|
|
754
|
+
jsonrpc: Two,
|
|
755
|
+
method,
|
|
756
|
+
params
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
const create$r = (id, method, params) => {
|
|
760
|
+
const message = {
|
|
761
|
+
id,
|
|
762
|
+
jsonrpc: Two,
|
|
763
|
+
method,
|
|
764
|
+
params
|
|
765
|
+
};
|
|
766
|
+
return message;
|
|
767
|
+
};
|
|
768
|
+
let id = 0;
|
|
769
|
+
const create$q = () => {
|
|
770
|
+
return ++id;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
/* eslint-disable n/no-unsupported-features/es-syntax */
|
|
774
|
+
|
|
775
|
+
const registerPromise = map => {
|
|
776
|
+
const id = create$q();
|
|
777
|
+
const {
|
|
778
|
+
promise,
|
|
779
|
+
resolve
|
|
780
|
+
} = Promise.withResolvers();
|
|
781
|
+
map[id] = resolve;
|
|
782
|
+
return {
|
|
783
|
+
id,
|
|
784
|
+
promise
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
// @ts-ignore
|
|
789
|
+
const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer) => {
|
|
790
|
+
const {
|
|
791
|
+
id,
|
|
792
|
+
promise
|
|
793
|
+
} = registerPromise(callbacks);
|
|
794
|
+
const message = create$r(id, method, params);
|
|
795
|
+
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
796
|
+
ipc.sendAndTransfer(message);
|
|
797
|
+
} else {
|
|
798
|
+
ipc.send(message);
|
|
799
|
+
}
|
|
800
|
+
const responseMessage = await promise;
|
|
801
|
+
return unwrapJsonRpcResult(responseMessage);
|
|
802
|
+
};
|
|
816
803
|
const createRpc = ipc => {
|
|
804
|
+
const callbacks = Object.create(null);
|
|
805
|
+
ipc._resolve = (id, response) => {
|
|
806
|
+
const fn = callbacks[id];
|
|
807
|
+
if (!fn) {
|
|
808
|
+
console.warn(`callback ${id} may already be disposed`);
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
fn(response);
|
|
812
|
+
delete callbacks[id];
|
|
813
|
+
};
|
|
817
814
|
const rpc = {
|
|
815
|
+
async dispose() {
|
|
816
|
+
await ipc?.dispose();
|
|
817
|
+
},
|
|
818
|
+
invoke(method, ...params) {
|
|
819
|
+
return invokeHelper(callbacks, ipc, method, params, false);
|
|
820
|
+
},
|
|
821
|
+
invokeAndTransfer(method, ...params) {
|
|
822
|
+
return invokeHelper(callbacks, ipc, method, params, true);
|
|
823
|
+
},
|
|
818
824
|
// @ts-ignore
|
|
819
825
|
ipc,
|
|
820
826
|
/**
|
|
821
827
|
* @deprecated
|
|
822
828
|
*/
|
|
823
829
|
send(method, ...params) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
invoke(method, ...params) {
|
|
827
|
-
return invoke$1(ipc, method, ...params);
|
|
828
|
-
},
|
|
829
|
-
invokeAndTransfer(method, ...params) {
|
|
830
|
-
return invokeAndTransfer$1(ipc, method, ...params);
|
|
831
|
-
},
|
|
832
|
-
async dispose() {
|
|
833
|
-
await ipc?.dispose();
|
|
830
|
+
const message = create$s(method, params);
|
|
831
|
+
ipc.send(message);
|
|
834
832
|
}
|
|
835
833
|
};
|
|
836
834
|
return rpc;
|
|
@@ -847,7 +845,7 @@ const logError = () => {
|
|
|
847
845
|
const handleMessage = event => {
|
|
848
846
|
const actualRequiresSocket = event?.target?.requiresSocket || requiresSocket;
|
|
849
847
|
const actualExecute = event?.target?.execute || execute;
|
|
850
|
-
return handleJsonRpcMessage(event.target, event.data, actualExecute,
|
|
848
|
+
return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
|
|
851
849
|
};
|
|
852
850
|
const handleIpc = ipc => {
|
|
853
851
|
if ('addEventListener' in ipc) {
|
|
@@ -865,7 +863,7 @@ const listen$1 = async (module, options) => {
|
|
|
865
863
|
const ipc = module.wrap(rawIpc);
|
|
866
864
|
return ipc;
|
|
867
865
|
};
|
|
868
|
-
const create$
|
|
866
|
+
const create$1$1 = async ({
|
|
869
867
|
commandMap
|
|
870
868
|
}) => {
|
|
871
869
|
// TODO create a commandMap per rpc instance
|
|
@@ -877,7 +875,7 @@ const create$3 = async ({
|
|
|
877
875
|
};
|
|
878
876
|
const WebWorkerRpcClient = {
|
|
879
877
|
__proto__: null,
|
|
880
|
-
create: create$
|
|
878
|
+
create: create$1$1
|
|
881
879
|
};
|
|
882
880
|
const createMockRpc = ({
|
|
883
881
|
commandMap
|
|
@@ -892,9 +890,9 @@ const createMockRpc = ({
|
|
|
892
890
|
return command(...params);
|
|
893
891
|
};
|
|
894
892
|
const mockRpc = {
|
|
893
|
+
invocations,
|
|
895
894
|
invoke,
|
|
896
|
-
invokeAndTransfer: invoke
|
|
897
|
-
invocations
|
|
895
|
+
invokeAndTransfer: invoke
|
|
898
896
|
};
|
|
899
897
|
return mockRpc;
|
|
900
898
|
};
|
|
@@ -1697,18 +1695,35 @@ const Select$1 = 63;
|
|
|
1697
1695
|
const Option = 64;
|
|
1698
1696
|
const Label$1 = 66;
|
|
1699
1697
|
|
|
1698
|
+
const ClientX = 'event.clientX';
|
|
1699
|
+
const ClientY = 'event.clientY';
|
|
1700
|
+
const DeltaY = 'event.deltaY';
|
|
1701
|
+
const TargetName = 'event.target.name';
|
|
1702
|
+
const TargetValue = 'event.target.value';
|
|
1703
|
+
|
|
1700
1704
|
const UpArrow = 14;
|
|
1701
1705
|
const DownArrow = 16;
|
|
1702
1706
|
|
|
1707
|
+
const Script = 2;
|
|
1708
|
+
|
|
1709
|
+
const SettingsFilter = 94;
|
|
1710
|
+
|
|
1711
|
+
const None$1 = 0;
|
|
1712
|
+
|
|
1713
|
+
const DebugWorker = 55;
|
|
1714
|
+
const RendererWorker$1 = 1;
|
|
1715
|
+
|
|
1716
|
+
const SetCss = 'Viewlet.setCss';
|
|
1717
|
+
|
|
1703
1718
|
const mergeClassNames = (...classNames) => {
|
|
1704
1719
|
return classNames.filter(Boolean).join(' ');
|
|
1705
1720
|
};
|
|
1706
1721
|
|
|
1707
1722
|
const text = data => {
|
|
1708
1723
|
return {
|
|
1709
|
-
|
|
1724
|
+
childCount: 0,
|
|
1710
1725
|
text: data,
|
|
1711
|
-
|
|
1726
|
+
type: Text
|
|
1712
1727
|
};
|
|
1713
1728
|
};
|
|
1714
1729
|
|
|
@@ -1742,6 +1757,8 @@ const AutoUpdateExtensions = 'Auto Update Extensions';
|
|
|
1742
1757
|
const AutoUpdateExtensionsDescription = 'Automatically update extensions';
|
|
1743
1758
|
const AutoUpdates = 'Auto Updates';
|
|
1744
1759
|
const AutoUpdatesDescription = 'Automatically check for updates';
|
|
1760
|
+
const LinkProtection = 'Link Protection';
|
|
1761
|
+
const LinkProtectionEnabledDescription = 'Whether ot not link protection is enabled';
|
|
1745
1762
|
const Clear$1 = 'Clear';
|
|
1746
1763
|
const ExtensionRecommendations = 'Extension Recommendations';
|
|
1747
1764
|
const ExtensionRecommendationsDescription = 'Show extension recommendations';
|
|
@@ -1766,7 +1783,9 @@ const ThemeDescription = 'The color theme of the workbench';
|
|
|
1766
1783
|
const TwoFactorAuth = 'Two Factor Auth';
|
|
1767
1784
|
const TwoFactorAuthDescription = 'Enable two factor authentication';
|
|
1768
1785
|
const WindowSize = 'Window Size';
|
|
1786
|
+
const WindowTitleBarStyle = 'Window Title Bar Style';
|
|
1769
1787
|
const WindowSizeDescription = 'The default window size';
|
|
1788
|
+
const WindowTitleBarStyleDescription = 'The title bar style of the window';
|
|
1770
1789
|
const WindowTitle = 'Window Title';
|
|
1771
1790
|
const WindowTitleDescription = 'The title shown in the window';
|
|
1772
1791
|
const NoSettingsMatching = 'No settings matching "{PH1}" found';
|
|
@@ -2036,6 +2055,12 @@ const autoUpdates = () => {
|
|
|
2036
2055
|
const autoUpdatesDescription = () => {
|
|
2037
2056
|
return i18nString(AutoUpdatesDescription);
|
|
2038
2057
|
};
|
|
2058
|
+
const linkProtection = () => {
|
|
2059
|
+
return i18nString(LinkProtection);
|
|
2060
|
+
};
|
|
2061
|
+
const linkProtectionEnabledDescription = () => {
|
|
2062
|
+
return i18nString(LinkProtectionEnabledDescription);
|
|
2063
|
+
};
|
|
2039
2064
|
const clear = () => {
|
|
2040
2065
|
return i18nString(Clear$1);
|
|
2041
2066
|
};
|
|
@@ -2114,9 +2139,15 @@ const twoFactorAuthDescription = () => {
|
|
|
2114
2139
|
const windowSize = () => {
|
|
2115
2140
|
return i18nString(WindowSize);
|
|
2116
2141
|
};
|
|
2142
|
+
const windowTitleBarStyle = () => {
|
|
2143
|
+
return i18nString(WindowTitleBarStyle);
|
|
2144
|
+
};
|
|
2117
2145
|
const windowSizeDescription = () => {
|
|
2118
2146
|
return i18nString(WindowSizeDescription);
|
|
2119
2147
|
};
|
|
2148
|
+
const windowTitleBarStyleDescription = () => {
|
|
2149
|
+
return i18nString(WindowTitleBarStyleDescription);
|
|
2150
|
+
};
|
|
2120
2151
|
const windowTitle = () => {
|
|
2121
2152
|
return i18nString(WindowTitle);
|
|
2122
2153
|
};
|
|
@@ -2860,62 +2891,57 @@ const tag = () => {
|
|
|
2860
2891
|
const getMenuEntries = () => {
|
|
2861
2892
|
return [{
|
|
2862
2893
|
command: 'Settings.filter.advanced',
|
|
2894
|
+
flags: None$1,
|
|
2863
2895
|
id: 'filter-advanced',
|
|
2864
2896
|
label: advanced()
|
|
2865
2897
|
}, {
|
|
2866
2898
|
command: 'Settings.filter.experimental',
|
|
2899
|
+
flags: None$1,
|
|
2867
2900
|
id: 'filter-experimental',
|
|
2868
2901
|
label: experimental()
|
|
2869
2902
|
}, {
|
|
2870
2903
|
command: 'Settings.filter.extensionId',
|
|
2904
|
+
flags: None$1,
|
|
2871
2905
|
id: 'filter-extensionId',
|
|
2872
2906
|
label: extensionId()
|
|
2873
2907
|
}, {
|
|
2874
2908
|
command: 'Settings.filter.feature',
|
|
2909
|
+
flags: None$1,
|
|
2875
2910
|
id: 'filter-feature',
|
|
2876
2911
|
label: feature()
|
|
2877
2912
|
}, {
|
|
2878
2913
|
command: 'Settings.filter.language',
|
|
2914
|
+
flags: None$1,
|
|
2879
2915
|
id: 'filter-language',
|
|
2880
2916
|
label: language()
|
|
2881
2917
|
}, {
|
|
2882
2918
|
command: 'Settings.filter.modified',
|
|
2919
|
+
flags: None$1,
|
|
2883
2920
|
id: 'filter-modified',
|
|
2884
2921
|
label: modified()
|
|
2885
2922
|
}, {
|
|
2886
2923
|
command: 'Settings.filter.preview',
|
|
2924
|
+
flags: None$1,
|
|
2887
2925
|
id: 'filter-preview',
|
|
2888
2926
|
label: preview()
|
|
2889
2927
|
}, {
|
|
2890
2928
|
command: 'Settings.filter.settingId',
|
|
2929
|
+
flags: None$1,
|
|
2891
2930
|
id: 'filter-settingId',
|
|
2892
2931
|
label: settingId()
|
|
2893
2932
|
}, {
|
|
2894
2933
|
command: 'Settings.filter.stable',
|
|
2934
|
+
flags: None$1,
|
|
2895
2935
|
id: 'filter-stable',
|
|
2896
2936
|
label: stable()
|
|
2897
2937
|
}, {
|
|
2898
2938
|
command: 'Settings.filter.tag',
|
|
2939
|
+
flags: None$1,
|
|
2899
2940
|
id: 'filter-tag',
|
|
2900
2941
|
label: tag()
|
|
2901
2942
|
}];
|
|
2902
2943
|
};
|
|
2903
2944
|
|
|
2904
|
-
const ClientX = 'event.clientX';
|
|
2905
|
-
const ClientY = 'event.clientY';
|
|
2906
|
-
const DeltaY = 'event.deltaY';
|
|
2907
|
-
const TargetName = 'event.target.name';
|
|
2908
|
-
const TargetValue = 'event.target.value';
|
|
2909
|
-
|
|
2910
|
-
const Script = 2;
|
|
2911
|
-
|
|
2912
|
-
const SettingsFilter = 94;
|
|
2913
|
-
|
|
2914
|
-
const DebugWorker = 55;
|
|
2915
|
-
const RendererWorker$1 = 1;
|
|
2916
|
-
|
|
2917
|
-
const SetCss = 'Viewlet.setCss';
|
|
2918
|
-
|
|
2919
2945
|
const getMenuIds = () => {
|
|
2920
2946
|
return [SettingsFilter];
|
|
2921
2947
|
};
|
|
@@ -2932,7 +2958,11 @@ const set$2 = (id, rpc) => {
|
|
|
2932
2958
|
const get = id => {
|
|
2933
2959
|
return rpcs[id];
|
|
2934
2960
|
};
|
|
2961
|
+
const remove = id => {
|
|
2962
|
+
delete rpcs[id];
|
|
2963
|
+
};
|
|
2935
2964
|
|
|
2965
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2936
2966
|
const create = rpcId => {
|
|
2937
2967
|
return {
|
|
2938
2968
|
async dispose() {
|
|
@@ -2951,6 +2981,18 @@ const create = rpcId => {
|
|
|
2951
2981
|
// @ts-ignore
|
|
2952
2982
|
return rpc.invokeAndTransfer(method, ...params);
|
|
2953
2983
|
},
|
|
2984
|
+
registerMockRpc(commandMap) {
|
|
2985
|
+
const mockRpc = createMockRpc({
|
|
2986
|
+
commandMap
|
|
2987
|
+
});
|
|
2988
|
+
set$2(rpcId, mockRpc);
|
|
2989
|
+
// @ts-ignore
|
|
2990
|
+
mockRpc[Symbol.dispose] = () => {
|
|
2991
|
+
remove(rpcId);
|
|
2992
|
+
};
|
|
2993
|
+
// @ts-ignore
|
|
2994
|
+
return mockRpc;
|
|
2995
|
+
},
|
|
2954
2996
|
set(rpc) {
|
|
2955
2997
|
set$2(rpcId, rpc);
|
|
2956
2998
|
}
|
|
@@ -2961,6 +3003,7 @@ const {
|
|
|
2961
3003
|
dispose,
|
|
2962
3004
|
invoke,
|
|
2963
3005
|
invokeAndTransfer,
|
|
3006
|
+
registerMockRpc,
|
|
2964
3007
|
set: set$1
|
|
2965
3008
|
} = create(RendererWorker$1);
|
|
2966
3009
|
const searchFileHtml = async uri => {
|
|
@@ -3084,6 +3127,10 @@ const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
|
|
|
3084
3127
|
const command = 'HandleMessagePort.handleMessagePort2';
|
|
3085
3128
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
|
|
3086
3129
|
};
|
|
3130
|
+
const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
|
|
3131
|
+
const command = 'QuickPick.handleMessagePort';
|
|
3132
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
|
|
3133
|
+
};
|
|
3087
3134
|
const sendMessagePortToSearchProcess = async port => {
|
|
3088
3135
|
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
3089
3136
|
};
|
|
@@ -3286,12 +3333,8 @@ const getLogsDir = async () => {
|
|
|
3286
3333
|
const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
3287
3334
|
return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
3288
3335
|
};
|
|
3289
|
-
const
|
|
3290
|
-
|
|
3291
|
-
commandMap
|
|
3292
|
-
});
|
|
3293
|
-
set$1(mockRpc);
|
|
3294
|
-
return mockRpc;
|
|
3336
|
+
const refreshOutput = async () => {
|
|
3337
|
+
await invoke('Output.refresh');
|
|
3295
3338
|
};
|
|
3296
3339
|
|
|
3297
3340
|
const RendererWorker = {
|
|
@@ -3348,6 +3391,7 @@ const RendererWorker = {
|
|
|
3348
3391
|
openWidget,
|
|
3349
3392
|
readClipBoardText,
|
|
3350
3393
|
readFile,
|
|
3394
|
+
refreshOutput,
|
|
3351
3395
|
registerMockRpc,
|
|
3352
3396
|
registerWebViewInterceptor,
|
|
3353
3397
|
renderMarkdown,
|
|
@@ -3359,6 +3403,7 @@ const RendererWorker = {
|
|
|
3359
3403
|
sendMessagePortToErrorWorker,
|
|
3360
3404
|
sendMessagePortToExtensionHostWorker,
|
|
3361
3405
|
sendMessagePortToExtensionManagementWorker,
|
|
3406
|
+
sendMessagePortToFileSearchWorker,
|
|
3362
3407
|
sendMessagePortToFileSystemProcess,
|
|
3363
3408
|
sendMessagePortToFileSystemWorker,
|
|
3364
3409
|
sendMessagePortToIconThemeWorker,
|
|
@@ -3788,6 +3833,13 @@ const getSettingItemsApplications = () => {
|
|
|
3788
3833
|
id: 'updates',
|
|
3789
3834
|
type: Boolean$1,
|
|
3790
3835
|
value: 'true'
|
|
3836
|
+
}, {
|
|
3837
|
+
category: ApplicationsTab,
|
|
3838
|
+
description: linkProtectionEnabledDescription(),
|
|
3839
|
+
heading: linkProtection(),
|
|
3840
|
+
id: 'application.linkProtectionEnabled',
|
|
3841
|
+
type: Boolean$1,
|
|
3842
|
+
value: 'true'
|
|
3791
3843
|
}];
|
|
3792
3844
|
};
|
|
3793
3845
|
|
|
@@ -4725,6 +4777,20 @@ const getSettingItemsWindow = () => {
|
|
|
4725
4777
|
id: 'windowSize',
|
|
4726
4778
|
type: String,
|
|
4727
4779
|
value: '1024x768'
|
|
4780
|
+
}, {
|
|
4781
|
+
category: WindowTab,
|
|
4782
|
+
description: windowTitleBarStyleDescription(),
|
|
4783
|
+
heading: windowTitleBarStyle(),
|
|
4784
|
+
id: 'window.titleBarStyle',
|
|
4785
|
+
options: [{
|
|
4786
|
+
id: 'native',
|
|
4787
|
+
label: 'native'
|
|
4788
|
+
}, {
|
|
4789
|
+
id: 'custom',
|
|
4790
|
+
label: 'custom'
|
|
4791
|
+
}],
|
|
4792
|
+
type: Enum,
|
|
4793
|
+
value: 'custom' // TODO get it from settings
|
|
4728
4794
|
}];
|
|
4729
4795
|
};
|
|
4730
4796
|
|
|
@@ -4976,12 +5042,13 @@ const {
|
|
|
4976
5042
|
} = ClassNames;
|
|
4977
5043
|
const CheckBox = 'CheckBox';
|
|
4978
5044
|
const ErrorMessage = 'ErrorMessage';
|
|
5045
|
+
const InputBadge = 'InputBadge';
|
|
4979
5046
|
const InputBox = 'InputBox';
|
|
4980
5047
|
const InputBoxError = 'InputBoxError';
|
|
4981
|
-
const InputBadge = 'InputBadge';
|
|
4982
5048
|
const Label = 'Label';
|
|
4983
5049
|
const MaskIcon = 'MaskIcon';
|
|
4984
5050
|
const MaskIconClearAll = 'MaskIconClearAll';
|
|
5051
|
+
const MaskIconFilter = 'MaskIconFilter';
|
|
4985
5052
|
const ModifiedIndicator = 'ModifiedIndicator';
|
|
4986
5053
|
const Resizer = 'Resizer';
|
|
4987
5054
|
const ResizerHighlight = 'ResizerHighlight';
|
|
@@ -5062,7 +5129,7 @@ const getClearButtonDom = hasSearchValue => {
|
|
|
5062
5129
|
|
|
5063
5130
|
const filterIcon = {
|
|
5064
5131
|
childCount: 0,
|
|
5065
|
-
className: MaskIcon,
|
|
5132
|
+
className: mergeClassNames(MaskIcon, MaskIconFilter),
|
|
5066
5133
|
type: Div
|
|
5067
5134
|
};
|
|
5068
5135
|
const getFilterButtonDom = () => {
|
|
@@ -5128,12 +5195,13 @@ const getResizerVirtualDom = () => {
|
|
|
5128
5195
|
}];
|
|
5129
5196
|
};
|
|
5130
5197
|
|
|
5198
|
+
const parentNode$2 = {
|
|
5199
|
+
childCount: 1,
|
|
5200
|
+
className: SettingsContentHeading,
|
|
5201
|
+
type: H1
|
|
5202
|
+
};
|
|
5131
5203
|
const getContentHeadingDom = headerText => {
|
|
5132
|
-
return [
|
|
5133
|
-
childCount: 1,
|
|
5134
|
-
className: SettingsContentHeading,
|
|
5135
|
-
type: H1
|
|
5136
|
-
}, text(headerText)];
|
|
5204
|
+
return [parentNode$2, text(headerText)];
|
|
5137
5205
|
};
|
|
5138
5206
|
|
|
5139
5207
|
const parentNode$1 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/settings-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Explorer Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/settingsViewWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^2.
|
|
14
|
+
"@lvce-editor/constants": "^2.8.0"
|
|
15
15
|
}
|
|
16
16
|
}
|