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