@lvce-editor/extension-search-view 6.0.0 → 6.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.
|
@@ -231,8 +231,8 @@ const getModuleNotFoundError = stderr => {
|
|
|
231
231
|
const messageIndex = lines.findIndex(isModuleNotFoundMessage);
|
|
232
232
|
const message = lines[messageIndex];
|
|
233
233
|
return {
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
code: ERR_MODULE_NOT_FOUND,
|
|
235
|
+
message
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
const isModuleNotFoundError = stderr => {
|
|
@@ -255,14 +255,14 @@ const isUnhelpfulNativeModuleError = stderr => {
|
|
|
255
255
|
const getNativeModuleErrorMessage = stderr => {
|
|
256
256
|
const message = getMessageCodeBlock(stderr);
|
|
257
257
|
return {
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
code: E_INCOMPATIBLE_NATIVE_MODULE,
|
|
259
|
+
message: `Incompatible native node module: ${message}`
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
262
|
const getModuleSyntaxError = () => {
|
|
263
263
|
return {
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
code: E_MODULES_NOT_SUPPORTED_IN_ELECTRON,
|
|
265
|
+
message: `ES Modules are not supported in electron`
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
const getHelpfulChildProcessError = (stdout, stderr) => {
|
|
@@ -281,8 +281,8 @@ const getHelpfulChildProcessError = (stdout, stderr) => {
|
|
|
281
281
|
rest
|
|
282
282
|
} = getDetails(lines);
|
|
283
283
|
return {
|
|
284
|
-
message: actualMessage,
|
|
285
284
|
code: '',
|
|
285
|
+
message: actualMessage,
|
|
286
286
|
stack: rest
|
|
287
287
|
};
|
|
288
288
|
};
|
|
@@ -292,8 +292,8 @@ class IpcError extends VError {
|
|
|
292
292
|
if (stdout || stderr) {
|
|
293
293
|
// @ts-ignore
|
|
294
294
|
const {
|
|
295
|
-
message,
|
|
296
295
|
code,
|
|
296
|
+
message,
|
|
297
297
|
stack
|
|
298
298
|
} = getHelpfulChildProcessError(stdout, stderr);
|
|
299
299
|
const cause = new Error(message);
|
|
@@ -354,8 +354,8 @@ const wrap$f = global => {
|
|
|
354
354
|
};
|
|
355
355
|
const waitForFirstMessage = async port => {
|
|
356
356
|
const {
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
promise,
|
|
358
|
+
resolve
|
|
359
359
|
} = Promise.withResolvers();
|
|
360
360
|
port.addEventListener('message', resolve, {
|
|
361
361
|
once: true
|
|
@@ -375,8 +375,8 @@ const listen$6 = async () => {
|
|
|
375
375
|
const type = firstMessage.params[0];
|
|
376
376
|
if (type === 'message-port') {
|
|
377
377
|
parentIpc.send({
|
|
378
|
-
jsonrpc: '2.0',
|
|
379
378
|
id: firstMessage.id,
|
|
379
|
+
jsonrpc: '2.0',
|
|
380
380
|
result: null
|
|
381
381
|
});
|
|
382
382
|
parentIpc.dispose();
|
|
@@ -433,8 +433,8 @@ const removeListener = (emitter, type, callback) => {
|
|
|
433
433
|
};
|
|
434
434
|
const getFirstEvent = (eventEmitter, eventMap) => {
|
|
435
435
|
const {
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
promise,
|
|
437
|
+
resolve
|
|
438
438
|
} = Promise.withResolvers();
|
|
439
439
|
const listenerMap = Object.create(null);
|
|
440
440
|
const cleanup = value => {
|
|
@@ -446,8 +446,8 @@ const getFirstEvent = (eventEmitter, eventMap) => {
|
|
|
446
446
|
for (const [event, type] of Object.entries(eventMap)) {
|
|
447
447
|
const listener = event => {
|
|
448
448
|
cleanup({
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
event,
|
|
450
|
+
type
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
453
|
addListener(eventEmitter, event, listener);
|
|
@@ -457,8 +457,8 @@ const getFirstEvent = (eventEmitter, eventMap) => {
|
|
|
457
457
|
};
|
|
458
458
|
const Message$1 = 3;
|
|
459
459
|
const create$5$1 = async ({
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
isMessagePortOpen,
|
|
461
|
+
messagePort
|
|
462
462
|
}) => {
|
|
463
463
|
if (!isMessagePort(messagePort)) {
|
|
464
464
|
throw new IpcError('port must be of type MessagePort');
|
|
@@ -471,8 +471,8 @@ const create$5$1 = async ({
|
|
|
471
471
|
});
|
|
472
472
|
messagePort.start();
|
|
473
473
|
const {
|
|
474
|
-
|
|
475
|
-
|
|
474
|
+
event,
|
|
475
|
+
type
|
|
476
476
|
} = await eventPromise;
|
|
477
477
|
if (type !== Message$1) {
|
|
478
478
|
throw new IpcError('Failed to wait for ipc message');
|
|
@@ -1033,15 +1033,7 @@ const createMockRpc = ({
|
|
|
1033
1033
|
return mockRpc;
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
const Button$2 = 1;
|
|
1039
|
-
const Div = 4;
|
|
1040
|
-
const Input$1 = 6;
|
|
1041
|
-
const Text = 12;
|
|
1042
|
-
const Img = 17;
|
|
1043
|
-
|
|
1044
|
-
const Button$1 = 'event.button';
|
|
1036
|
+
const Button$2 = 'event.button';
|
|
1045
1037
|
const ClientX = 'event.clientX';
|
|
1046
1038
|
const ClientY = 'event.clientY';
|
|
1047
1039
|
const DeltaMode = 'event.deltaMode';
|
|
@@ -1050,13 +1042,12 @@ const TargetValue = 'event.target.value';
|
|
|
1050
1042
|
|
|
1051
1043
|
const Script$1 = 2;
|
|
1052
1044
|
|
|
1053
|
-
const ManageExtension
|
|
1054
|
-
|
|
1055
|
-
const LeftClick = 0;
|
|
1045
|
+
const ManageExtension = 8;
|
|
1046
|
+
const ExtensionSearchFilter = 95;
|
|
1056
1047
|
|
|
1057
1048
|
const ExtensionHostWorker = 44;
|
|
1058
|
-
const RendererWorker = 1;
|
|
1059
1049
|
const ExtensionManagementWorker = 9006;
|
|
1050
|
+
const RendererWorker = 1;
|
|
1060
1051
|
|
|
1061
1052
|
const FocusSelector = 'Viewlet.focusSelector';
|
|
1062
1053
|
|
|
@@ -1247,8 +1238,8 @@ const terminate = () => {
|
|
|
1247
1238
|
globalThis.close();
|
|
1248
1239
|
};
|
|
1249
1240
|
|
|
1250
|
-
const None$
|
|
1251
|
-
const Input = 1;
|
|
1241
|
+
const None$3 = 0;
|
|
1242
|
+
const Input$1 = 1;
|
|
1252
1243
|
const List$2 = 2;
|
|
1253
1244
|
|
|
1254
1245
|
const handleError = async (error, notify = true, prefix = '') => {
|
|
@@ -1274,10 +1265,13 @@ const Refresh$1 = 'Refresh';
|
|
|
1274
1265
|
const ClearExtensionSearchResults = 'Clear extension search results';
|
|
1275
1266
|
const Enable = 'Enable';
|
|
1276
1267
|
const Disable = 'Disable';
|
|
1268
|
+
const EnableWorkspace = 'Enable Workspace';
|
|
1269
|
+
const DisableWorkspace = 'Disable Workspace';
|
|
1277
1270
|
const InstallAnotherVersion = 'Install Another Version';
|
|
1278
1271
|
const SearchExtensionsInMarketplace = 'Search Extensions in Marketplace';
|
|
1279
1272
|
const ViewsAndMoreActions = 'Views and more Actions...';
|
|
1280
1273
|
const Extensions$2 = 'Extensions';
|
|
1274
|
+
const Installed$1 = 'Installed';
|
|
1281
1275
|
const Copy = 'Copy';
|
|
1282
1276
|
const CopyExtensionId = 'Copy Extension Id';
|
|
1283
1277
|
const Name = 'Name';
|
|
@@ -1286,6 +1280,8 @@ const Description = 'Description';
|
|
|
1286
1280
|
const Version = 'Version';
|
|
1287
1281
|
const Publisher = 'Publisher';
|
|
1288
1282
|
const MarketplaceLink = 'Marketplace Link';
|
|
1283
|
+
const Category$1 = 'Category';
|
|
1284
|
+
const Disabled$1 = 'Disabled';
|
|
1289
1285
|
|
|
1290
1286
|
const noExtensionsFound = () => {
|
|
1291
1287
|
return i18nString(NoExtensionsFound);
|
|
@@ -1326,6 +1322,12 @@ const enable = () => {
|
|
|
1326
1322
|
const disable = () => {
|
|
1327
1323
|
return i18nString(Disable);
|
|
1328
1324
|
};
|
|
1325
|
+
const enableWorkspace = () => {
|
|
1326
|
+
return i18nString(EnableWorkspace);
|
|
1327
|
+
};
|
|
1328
|
+
const disableWorkspace = () => {
|
|
1329
|
+
return i18nString(DisableWorkspace);
|
|
1330
|
+
};
|
|
1329
1331
|
const installAnotherVersion = () => {
|
|
1330
1332
|
return i18nString(InstallAnotherVersion);
|
|
1331
1333
|
};
|
|
@@ -1341,6 +1343,15 @@ const searchExtensionsInMarketPlace = () => {
|
|
|
1341
1343
|
const viewsAndMoreActions = () => {
|
|
1342
1344
|
return i18nString(ViewsAndMoreActions);
|
|
1343
1345
|
};
|
|
1346
|
+
const installed = () => {
|
|
1347
|
+
return i18nString(Installed$1);
|
|
1348
|
+
};
|
|
1349
|
+
const category = () => {
|
|
1350
|
+
return i18nString(Category$1);
|
|
1351
|
+
};
|
|
1352
|
+
const disabled = () => {
|
|
1353
|
+
return i18nString(Disabled$1);
|
|
1354
|
+
};
|
|
1344
1355
|
|
|
1345
1356
|
const getFinalDeltaY = (height, itemHeight, itemsLength) => {
|
|
1346
1357
|
const contentHeight = itemsLength * itemHeight;
|
|
@@ -1348,7 +1359,7 @@ const getFinalDeltaY = (height, itemHeight, itemsLength) => {
|
|
|
1348
1359
|
return finalDeltaY;
|
|
1349
1360
|
};
|
|
1350
1361
|
|
|
1351
|
-
const Button = 1;
|
|
1362
|
+
const Button$1 = 1;
|
|
1352
1363
|
|
|
1353
1364
|
const HandleClearSearchResults = 1;
|
|
1354
1365
|
const HandleClickFilter = 2;
|
|
@@ -1378,13 +1389,13 @@ const getInputActions = hasValue => {
|
|
|
1378
1389
|
icon: `MaskIcon${ClearAll}`,
|
|
1379
1390
|
onClick: HandleClearSearchResults,
|
|
1380
1391
|
title: clearExtensionSearchResults(),
|
|
1381
|
-
type: Button
|
|
1392
|
+
type: Button$1
|
|
1382
1393
|
}, {
|
|
1383
1394
|
enabled: true,
|
|
1384
1395
|
icon: `MaskIcon${Filter}`,
|
|
1385
1396
|
onClick: HandleClickFilter,
|
|
1386
1397
|
title: filter(),
|
|
1387
|
-
type: Button
|
|
1398
|
+
type: Button$1
|
|
1388
1399
|
}];
|
|
1389
1400
|
return actions;
|
|
1390
1401
|
};
|
|
@@ -1530,16 +1541,12 @@ const matchesParsedValue = (extension, parsedValue) => {
|
|
|
1530
1541
|
return false;
|
|
1531
1542
|
};
|
|
1532
1543
|
|
|
1533
|
-
const toSorted = (array, compare) => {
|
|
1534
|
-
return array.toSorted(compare);
|
|
1535
|
-
};
|
|
1536
|
-
|
|
1537
1544
|
const compareExtension = (extensionA, extensionB) => {
|
|
1538
1545
|
return extensionA.name.localeCompare(extensionB.name) || extensionA.id.localeCompare(extensionB.id);
|
|
1539
1546
|
};
|
|
1540
1547
|
|
|
1541
1548
|
const sortExtensions = extensions => {
|
|
1542
|
-
return toSorted(
|
|
1549
|
+
return extensions.toSorted(compareExtension);
|
|
1543
1550
|
};
|
|
1544
1551
|
|
|
1545
1552
|
const getExtensions = async (extensions, parsedValue) => {
|
|
@@ -1594,7 +1601,7 @@ const handleChange = async (state, update) => {
|
|
|
1594
1601
|
allExtensions,
|
|
1595
1602
|
deltaY: 0,
|
|
1596
1603
|
finalDeltaY: 0,
|
|
1597
|
-
focus: Input,
|
|
1604
|
+
focus: Input$1,
|
|
1598
1605
|
inputActions,
|
|
1599
1606
|
inputSource,
|
|
1600
1607
|
items,
|
|
@@ -1646,7 +1653,7 @@ const handleChange = async (state, update) => {
|
|
|
1646
1653
|
const clearSearchResults = state => {
|
|
1647
1654
|
return handleChange(state, {
|
|
1648
1655
|
...state,
|
|
1649
|
-
focus: Input,
|
|
1656
|
+
focus: Input$1,
|
|
1650
1657
|
inputSource: Script$1,
|
|
1651
1658
|
searchValue: ''
|
|
1652
1659
|
});
|
|
@@ -1769,6 +1776,7 @@ const create = (id, uri, x, y, width, height, platform, assetDir) => {
|
|
|
1769
1776
|
scrollBarY: 0,
|
|
1770
1777
|
searchValue: '',
|
|
1771
1778
|
size: 0,
|
|
1779
|
+
suggestOpen: false,
|
|
1772
1780
|
uid: id,
|
|
1773
1781
|
width,
|
|
1774
1782
|
x,
|
|
@@ -1989,12 +1997,12 @@ const getActions = () => {
|
|
|
1989
1997
|
command: '',
|
|
1990
1998
|
icon: Refresh,
|
|
1991
1999
|
id: refresh(),
|
|
1992
|
-
type: Button
|
|
2000
|
+
type: Button$1
|
|
1993
2001
|
}, {
|
|
1994
2002
|
command: '',
|
|
1995
2003
|
icon: Ellipsis,
|
|
1996
2004
|
id: viewsAndMoreActions(),
|
|
1997
|
-
type: Button
|
|
2005
|
+
type: Button$1
|
|
1998
2006
|
}];
|
|
1999
2007
|
};
|
|
2000
2008
|
|
|
@@ -2056,49 +2064,102 @@ const getKeyBindings = () => {
|
|
|
2056
2064
|
}];
|
|
2057
2065
|
};
|
|
2058
2066
|
|
|
2059
|
-
const
|
|
2067
|
+
const Separator = 1;
|
|
2068
|
+
const None$2 = 0;
|
|
2060
2069
|
|
|
2061
2070
|
const getMenuEntries = () => {
|
|
2062
2071
|
return [{
|
|
2063
2072
|
command: 'SearchExtensions.enable',
|
|
2064
|
-
flags: None$
|
|
2073
|
+
flags: None$2,
|
|
2065
2074
|
id: 'enable',
|
|
2066
2075
|
label: enable()
|
|
2076
|
+
}, {
|
|
2077
|
+
command: 'SearchExtensions.enableWorkspace',
|
|
2078
|
+
flags: None$2,
|
|
2079
|
+
id: 'enableWorkspace',
|
|
2080
|
+
label: enableWorkspace()
|
|
2081
|
+
}, {
|
|
2082
|
+
command: '',
|
|
2083
|
+
flags: Separator,
|
|
2084
|
+
id: 'separator1',
|
|
2085
|
+
label: ''
|
|
2067
2086
|
}, {
|
|
2068
2087
|
command: 'SearchExtensions.disable',
|
|
2069
|
-
flags: None$
|
|
2088
|
+
flags: None$2,
|
|
2070
2089
|
id: 'disable',
|
|
2071
2090
|
label: disable()
|
|
2091
|
+
}, {
|
|
2092
|
+
command: 'SearchExtensions.disableWorkspace',
|
|
2093
|
+
flags: None$2,
|
|
2094
|
+
id: 'disableWorkspace',
|
|
2095
|
+
label: disableWorkspace()
|
|
2096
|
+
}, {
|
|
2097
|
+
command: '',
|
|
2098
|
+
flags: Separator,
|
|
2099
|
+
id: 'separator2',
|
|
2100
|
+
label: ''
|
|
2072
2101
|
}, {
|
|
2073
2102
|
command: 'SearchExtensions.installAnotherVersion',
|
|
2074
|
-
flags: None$
|
|
2103
|
+
flags: None$2,
|
|
2075
2104
|
id: 'installAnotherVersion',
|
|
2076
2105
|
label: installAnotherVersion()
|
|
2077
2106
|
}, {
|
|
2078
2107
|
command: 'Extensions.copyExtensionInfo',
|
|
2079
|
-
flags: None$
|
|
2108
|
+
flags: None$2,
|
|
2080
2109
|
id: 'copy',
|
|
2081
2110
|
label: copy()
|
|
2082
2111
|
}, {
|
|
2083
2112
|
command: 'Extensions.copyExtensionId',
|
|
2084
|
-
flags: None$
|
|
2113
|
+
flags: None$2,
|
|
2085
2114
|
id: 'copyExtensionId',
|
|
2086
2115
|
label: copyExtensionId$1()
|
|
2087
2116
|
}];
|
|
2088
2117
|
};
|
|
2089
2118
|
|
|
2090
|
-
const
|
|
2091
|
-
return
|
|
2119
|
+
const getMenuEntriesFilter = () => {
|
|
2120
|
+
return [{
|
|
2121
|
+
command: 'SearchExtensions.filterByCategory',
|
|
2122
|
+
flags: None$2,
|
|
2123
|
+
id: 'filterByCategory',
|
|
2124
|
+
label: category()
|
|
2125
|
+
}, {
|
|
2126
|
+
command: 'SearchExtensions.filterById',
|
|
2127
|
+
flags: None$2,
|
|
2128
|
+
id: 'filterById',
|
|
2129
|
+
label: id()
|
|
2130
|
+
}, {
|
|
2131
|
+
command: 'SearchExtensions.filterByInstalled',
|
|
2132
|
+
flags: None$2,
|
|
2133
|
+
id: 'filterByInstalled',
|
|
2134
|
+
label: installed()
|
|
2135
|
+
}, {
|
|
2136
|
+
command: 'SearchExtensions.filterByDisabled',
|
|
2137
|
+
flags: None$2,
|
|
2138
|
+
id: 'filterByDisabled',
|
|
2139
|
+
label: disabled()
|
|
2140
|
+
}];
|
|
2141
|
+
};
|
|
2142
|
+
|
|
2143
|
+
const getMenuEntries2 = (state, props) => {
|
|
2144
|
+
const {
|
|
2145
|
+
menuId
|
|
2146
|
+
} = props;
|
|
2147
|
+
switch (menuId) {
|
|
2148
|
+
case ExtensionSearchFilter:
|
|
2149
|
+
return getMenuEntriesFilter();
|
|
2150
|
+
default:
|
|
2151
|
+
return getMenuEntries();
|
|
2152
|
+
}
|
|
2092
2153
|
};
|
|
2093
2154
|
|
|
2094
2155
|
const getMenuIds = () => {
|
|
2095
|
-
return [ManageExtension
|
|
2156
|
+
return [ManageExtension, ExtensionSearchFilter];
|
|
2096
2157
|
};
|
|
2097
2158
|
|
|
2098
2159
|
const handleBlur = state => {
|
|
2099
2160
|
return {
|
|
2100
2161
|
...state,
|
|
2101
|
-
focus: None$
|
|
2162
|
+
focus: None$3
|
|
2102
2163
|
};
|
|
2103
2164
|
};
|
|
2104
2165
|
|
|
@@ -2134,6 +2195,16 @@ const handleClick = async (state, index) => {
|
|
|
2134
2195
|
return newState;
|
|
2135
2196
|
};
|
|
2136
2197
|
|
|
2198
|
+
const None$1 = 'none';
|
|
2199
|
+
|
|
2200
|
+
const Button = 1;
|
|
2201
|
+
const Div = 4;
|
|
2202
|
+
const Input = 6;
|
|
2203
|
+
const Text = 12;
|
|
2204
|
+
const Img = 17;
|
|
2205
|
+
|
|
2206
|
+
const LeftClick = 0;
|
|
2207
|
+
|
|
2137
2208
|
const mergeClassNames = (...classNames) => {
|
|
2138
2209
|
return classNames.filter(Boolean).join(' ');
|
|
2139
2210
|
};
|
|
@@ -2186,7 +2257,17 @@ const show2 = async (uid, menuId, x, y, args) => {
|
|
|
2186
2257
|
await showContextMenu2(uid, menuId, x, y, args);
|
|
2187
2258
|
};
|
|
2188
2259
|
|
|
2189
|
-
const
|
|
2260
|
+
const handleClickFilter = async state => {
|
|
2261
|
+
const {
|
|
2262
|
+
uid,
|
|
2263
|
+
x,
|
|
2264
|
+
y
|
|
2265
|
+
} = state;
|
|
2266
|
+
await show2(uid, ExtensionSearchFilter, x, y, {
|
|
2267
|
+
menuId: ExtensionSearchFilter
|
|
2268
|
+
});
|
|
2269
|
+
return state;
|
|
2270
|
+
};
|
|
2190
2271
|
|
|
2191
2272
|
const handleContextMenu = async (state, button, eventX, eventY) => {
|
|
2192
2273
|
// TODO use focused index when when context menu button is -1 (keyboard)
|
|
@@ -2214,10 +2295,18 @@ const handleDisable = (state, id) => {
|
|
|
2214
2295
|
// TODO
|
|
2215
2296
|
};
|
|
2216
2297
|
|
|
2298
|
+
const handleDisableWorkspace = (state, id) => {
|
|
2299
|
+
return state;
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2217
2302
|
const handleEnable = (state, id) => {
|
|
2218
2303
|
return state;
|
|
2219
2304
|
};
|
|
2220
2305
|
|
|
2306
|
+
const handleEnableWorkspace = (state, id) => {
|
|
2307
|
+
return state;
|
|
2308
|
+
};
|
|
2309
|
+
|
|
2221
2310
|
const handleFocus = async state => {
|
|
2222
2311
|
return {
|
|
2223
2312
|
...state,
|
|
@@ -2634,7 +2723,7 @@ const Extensions$1 = 'extensions';
|
|
|
2634
2723
|
|
|
2635
2724
|
const getSelector = focus => {
|
|
2636
2725
|
switch (focus) {
|
|
2637
|
-
case Input:
|
|
2726
|
+
case Input$1:
|
|
2638
2727
|
return `[name="${Extensions$1}"]`;
|
|
2639
2728
|
case List$2:
|
|
2640
2729
|
return '.ListItems';
|
|
@@ -2658,7 +2747,7 @@ const renderFocusContext = newState => {
|
|
|
2658
2747
|
const {
|
|
2659
2748
|
uid
|
|
2660
2749
|
} = newState;
|
|
2661
|
-
if (newState.focus === Input) {
|
|
2750
|
+
if (newState.focus === Input$1) {
|
|
2662
2751
|
return ['Viewlet.setFocusContext', uid, FocusExtensionsInput];
|
|
2663
2752
|
}
|
|
2664
2753
|
if (newState.focus === List$2) {
|
|
@@ -2722,7 +2811,7 @@ const getSearchFieldButtonVirtualDom = button => {
|
|
|
2722
2811
|
onClick,
|
|
2723
2812
|
tabIndex: 0,
|
|
2724
2813
|
title,
|
|
2725
|
-
type: Button
|
|
2814
|
+
type: Button
|
|
2726
2815
|
}, {
|
|
2727
2816
|
childCount: 0,
|
|
2728
2817
|
className: mergeClassNames(MaskIcon, icon),
|
|
@@ -2749,7 +2838,7 @@ const getSearchFieldVirtualDom = (name, placeholder, onInput, insideButtons, out
|
|
|
2749
2838
|
onInput,
|
|
2750
2839
|
placeholder,
|
|
2751
2840
|
spellcheck: false,
|
|
2752
|
-
type: Input
|
|
2841
|
+
type: Input
|
|
2753
2842
|
}, {
|
|
2754
2843
|
childCount: insideButtons.length,
|
|
2755
2844
|
className: SearchFieldButtons,
|
|
@@ -2990,7 +3079,7 @@ const getExtensionsViewVirtualDom = state => {
|
|
|
2990
3079
|
ariaLive: 'polite',
|
|
2991
3080
|
childCount: 2,
|
|
2992
3081
|
className: mergeClassNames(Viewlet, Extensions),
|
|
2993
|
-
role: None$
|
|
3082
|
+
role: None$1,
|
|
2994
3083
|
type: Div
|
|
2995
3084
|
}, ...getExtensionHeaderVirtualDom(placeholder, inputActions), ...getContentVirtualDom(visibleExtensions, message, scrollBarHeight, scrollBarY, focusOutline)];
|
|
2996
3085
|
};
|
|
@@ -3085,13 +3174,13 @@ const getActionButtonVirtualDom = action => {
|
|
|
3085
3174
|
childCount: 1,
|
|
3086
3175
|
className: IconButton,
|
|
3087
3176
|
title: id,
|
|
3088
|
-
type: Button
|
|
3177
|
+
type: Button
|
|
3089
3178
|
}, getIconVirtualDom(icon)];
|
|
3090
3179
|
};
|
|
3091
3180
|
|
|
3092
3181
|
const getActionVirtualDom = action => {
|
|
3093
3182
|
switch (action.type) {
|
|
3094
|
-
case Button:
|
|
3183
|
+
case Button$1:
|
|
3095
3184
|
return getActionButtonVirtualDom(action);
|
|
3096
3185
|
default:
|
|
3097
3186
|
return [];
|
|
@@ -3123,7 +3212,7 @@ const renderActions = uid => {
|
|
|
3123
3212
|
const renderEventListeners = () => {
|
|
3124
3213
|
return [{
|
|
3125
3214
|
name: HandleContextMenu,
|
|
3126
|
-
params: ['handleContextMenu', Button$
|
|
3215
|
+
params: ['handleContextMenu', Button$2, ClientX, ClientY],
|
|
3127
3216
|
preventDefault: true
|
|
3128
3217
|
}, {
|
|
3129
3218
|
name: HandleHeaderContextMenu,
|
|
@@ -3131,7 +3220,7 @@ const renderEventListeners = () => {
|
|
|
3131
3220
|
preventDefault: true
|
|
3132
3221
|
}, {
|
|
3133
3222
|
name: HandlePointerDown,
|
|
3134
|
-
params: ['handleClickAt', Button$
|
|
3223
|
+
params: ['handleClickAt', Button$2, ClientX, ClientY],
|
|
3135
3224
|
preventDefault: true
|
|
3136
3225
|
}, {
|
|
3137
3226
|
name: HandleScrollBarPointerDown,
|
|
@@ -3228,7 +3317,10 @@ const selectIndex = (state, index) => {
|
|
|
3228
3317
|
};
|
|
3229
3318
|
|
|
3230
3319
|
const toggleSuggest = state => {
|
|
3231
|
-
return
|
|
3320
|
+
return {
|
|
3321
|
+
...state,
|
|
3322
|
+
suggestOpen: !state.suggestOpen
|
|
3323
|
+
};
|
|
3232
3324
|
};
|
|
3233
3325
|
|
|
3234
3326
|
const commandMap = {
|
|
@@ -3238,7 +3330,11 @@ const commandMap = {
|
|
|
3238
3330
|
'SearchExtensions.copyExtensionInfo': wrapCommand(copyExtensionInfo),
|
|
3239
3331
|
'SearchExtensions.create': create,
|
|
3240
3332
|
'SearchExtensions.diff2': diff2,
|
|
3333
|
+
'SearchExtensions.disable': wrapCommand(handleDisable),
|
|
3334
|
+
'SearchExtensions.disableWorkspace': wrapCommand(handleDisableWorkspace),
|
|
3241
3335
|
'SearchExtensions.dispose': dispose,
|
|
3336
|
+
'SearchExtensions.enable': wrapCommand(handleEnable),
|
|
3337
|
+
'SearchExtensions.enableWorkspace': wrapCommand(handleEnableWorkspace),
|
|
3242
3338
|
'SearchExtensions.focusFirst': wrapCommand(focusFirst),
|
|
3243
3339
|
'SearchExtensions.focusIndex': wrapCommand(focusIndex),
|
|
3244
3340
|
'SearchExtensions.focusLast': wrapCommand(focusLast),
|
|
@@ -3251,15 +3347,19 @@ const commandMap = {
|
|
|
3251
3347
|
'SearchExtensions.getKeyBindings': getKeyBindings,
|
|
3252
3348
|
'SearchExtensions.getMenuEntries': getMenuEntries,
|
|
3253
3349
|
'SearchExtensions.getMenuEntries2': wrapGetter(getMenuEntries2),
|
|
3350
|
+
'SearchExtensions.getMenuEntriesFilter': getMenuEntriesFilter,
|
|
3254
3351
|
'SearchExtensions.getMenuIds': getMenuIds,
|
|
3255
3352
|
'SearchExtensions.handleBlur': wrapCommand(handleBlur),
|
|
3256
3353
|
'SearchExtensions.handleClick': wrapCommand(handleClick),
|
|
3257
3354
|
'SearchExtensions.handleClickAt': wrapCommand(handleClickAt),
|
|
3258
3355
|
'SearchExtensions.handleClickCurrent': wrapCommand(handleClickCurrent),
|
|
3259
3356
|
'SearchExtensions.handleClickCurrentButKeepFocus': wrapCommand(handleClickCurrentButKeepFocus),
|
|
3357
|
+
'SearchExtensions.handleClickFilter': wrapCommand(handleClickFilter),
|
|
3260
3358
|
'SearchExtensions.handleContextMenu': wrapCommand(handleContextMenu),
|
|
3261
3359
|
'SearchExtensions.handleDisable': wrapCommand(handleDisable),
|
|
3360
|
+
'SearchExtensions.handleDisableWorkspace': wrapCommand(handleDisableWorkspace),
|
|
3262
3361
|
'SearchExtensions.handleEnable': wrapCommand(handleEnable),
|
|
3362
|
+
'SearchExtensions.handleEnableWorkspace': wrapCommand(handleEnableWorkspace),
|
|
3263
3363
|
'SearchExtensions.handleFocus': wrapCommand(handleFocus),
|
|
3264
3364
|
'SearchExtensions.handleHeaderContextMenu': wrapCommand(handleHeaderContextMenu),
|
|
3265
3365
|
'SearchExtensions.handleInput': wrapCommand(handleInput),
|