@lvce-editor/extension-search-view 6.1.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
|
};
|
|
@@ -1590,7 +1601,7 @@ const handleChange = async (state, update) => {
|
|
|
1590
1601
|
allExtensions,
|
|
1591
1602
|
deltaY: 0,
|
|
1592
1603
|
finalDeltaY: 0,
|
|
1593
|
-
focus: Input,
|
|
1604
|
+
focus: Input$1,
|
|
1594
1605
|
inputActions,
|
|
1595
1606
|
inputSource,
|
|
1596
1607
|
items,
|
|
@@ -1642,7 +1653,7 @@ const handleChange = async (state, update) => {
|
|
|
1642
1653
|
const clearSearchResults = state => {
|
|
1643
1654
|
return handleChange(state, {
|
|
1644
1655
|
...state,
|
|
1645
|
-
focus: Input,
|
|
1656
|
+
focus: Input$1,
|
|
1646
1657
|
inputSource: Script$1,
|
|
1647
1658
|
searchValue: ''
|
|
1648
1659
|
});
|
|
@@ -1765,6 +1776,7 @@ const create = (id, uri, x, y, width, height, platform, assetDir) => {
|
|
|
1765
1776
|
scrollBarY: 0,
|
|
1766
1777
|
searchValue: '',
|
|
1767
1778
|
size: 0,
|
|
1779
|
+
suggestOpen: false,
|
|
1768
1780
|
uid: id,
|
|
1769
1781
|
width,
|
|
1770
1782
|
x,
|
|
@@ -1985,12 +1997,12 @@ const getActions = () => {
|
|
|
1985
1997
|
command: '',
|
|
1986
1998
|
icon: Refresh,
|
|
1987
1999
|
id: refresh(),
|
|
1988
|
-
type: Button
|
|
2000
|
+
type: Button$1
|
|
1989
2001
|
}, {
|
|
1990
2002
|
command: '',
|
|
1991
2003
|
icon: Ellipsis,
|
|
1992
2004
|
id: viewsAndMoreActions(),
|
|
1993
|
-
type: Button
|
|
2005
|
+
type: Button$1
|
|
1994
2006
|
}];
|
|
1995
2007
|
};
|
|
1996
2008
|
|
|
@@ -2052,49 +2064,102 @@ const getKeyBindings = () => {
|
|
|
2052
2064
|
}];
|
|
2053
2065
|
};
|
|
2054
2066
|
|
|
2055
|
-
const
|
|
2067
|
+
const Separator = 1;
|
|
2068
|
+
const None$2 = 0;
|
|
2056
2069
|
|
|
2057
2070
|
const getMenuEntries = () => {
|
|
2058
2071
|
return [{
|
|
2059
2072
|
command: 'SearchExtensions.enable',
|
|
2060
|
-
flags: None$
|
|
2073
|
+
flags: None$2,
|
|
2061
2074
|
id: 'enable',
|
|
2062
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: ''
|
|
2063
2086
|
}, {
|
|
2064
2087
|
command: 'SearchExtensions.disable',
|
|
2065
|
-
flags: None$
|
|
2088
|
+
flags: None$2,
|
|
2066
2089
|
id: 'disable',
|
|
2067
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: ''
|
|
2068
2101
|
}, {
|
|
2069
2102
|
command: 'SearchExtensions.installAnotherVersion',
|
|
2070
|
-
flags: None$
|
|
2103
|
+
flags: None$2,
|
|
2071
2104
|
id: 'installAnotherVersion',
|
|
2072
2105
|
label: installAnotherVersion()
|
|
2073
2106
|
}, {
|
|
2074
2107
|
command: 'Extensions.copyExtensionInfo',
|
|
2075
|
-
flags: None$
|
|
2108
|
+
flags: None$2,
|
|
2076
2109
|
id: 'copy',
|
|
2077
2110
|
label: copy()
|
|
2078
2111
|
}, {
|
|
2079
2112
|
command: 'Extensions.copyExtensionId',
|
|
2080
|
-
flags: None$
|
|
2113
|
+
flags: None$2,
|
|
2081
2114
|
id: 'copyExtensionId',
|
|
2082
2115
|
label: copyExtensionId$1()
|
|
2083
2116
|
}];
|
|
2084
2117
|
};
|
|
2085
2118
|
|
|
2086
|
-
const
|
|
2087
|
-
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
|
+
}
|
|
2088
2153
|
};
|
|
2089
2154
|
|
|
2090
2155
|
const getMenuIds = () => {
|
|
2091
|
-
return [ManageExtension
|
|
2156
|
+
return [ManageExtension, ExtensionSearchFilter];
|
|
2092
2157
|
};
|
|
2093
2158
|
|
|
2094
2159
|
const handleBlur = state => {
|
|
2095
2160
|
return {
|
|
2096
2161
|
...state,
|
|
2097
|
-
focus: None$
|
|
2162
|
+
focus: None$3
|
|
2098
2163
|
};
|
|
2099
2164
|
};
|
|
2100
2165
|
|
|
@@ -2130,6 +2195,16 @@ const handleClick = async (state, index) => {
|
|
|
2130
2195
|
return newState;
|
|
2131
2196
|
};
|
|
2132
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
|
+
|
|
2133
2208
|
const mergeClassNames = (...classNames) => {
|
|
2134
2209
|
return classNames.filter(Boolean).join(' ');
|
|
2135
2210
|
};
|
|
@@ -2182,7 +2257,17 @@ const show2 = async (uid, menuId, x, y, args) => {
|
|
|
2182
2257
|
await showContextMenu2(uid, menuId, x, y, args);
|
|
2183
2258
|
};
|
|
2184
2259
|
|
|
2185
|
-
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
|
+
};
|
|
2186
2271
|
|
|
2187
2272
|
const handleContextMenu = async (state, button, eventX, eventY) => {
|
|
2188
2273
|
// TODO use focused index when when context menu button is -1 (keyboard)
|
|
@@ -2210,10 +2295,18 @@ const handleDisable = (state, id) => {
|
|
|
2210
2295
|
// TODO
|
|
2211
2296
|
};
|
|
2212
2297
|
|
|
2298
|
+
const handleDisableWorkspace = (state, id) => {
|
|
2299
|
+
return state;
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2213
2302
|
const handleEnable = (state, id) => {
|
|
2214
2303
|
return state;
|
|
2215
2304
|
};
|
|
2216
2305
|
|
|
2306
|
+
const handleEnableWorkspace = (state, id) => {
|
|
2307
|
+
return state;
|
|
2308
|
+
};
|
|
2309
|
+
|
|
2217
2310
|
const handleFocus = async state => {
|
|
2218
2311
|
return {
|
|
2219
2312
|
...state,
|
|
@@ -2630,7 +2723,7 @@ const Extensions$1 = 'extensions';
|
|
|
2630
2723
|
|
|
2631
2724
|
const getSelector = focus => {
|
|
2632
2725
|
switch (focus) {
|
|
2633
|
-
case Input:
|
|
2726
|
+
case Input$1:
|
|
2634
2727
|
return `[name="${Extensions$1}"]`;
|
|
2635
2728
|
case List$2:
|
|
2636
2729
|
return '.ListItems';
|
|
@@ -2654,7 +2747,7 @@ const renderFocusContext = newState => {
|
|
|
2654
2747
|
const {
|
|
2655
2748
|
uid
|
|
2656
2749
|
} = newState;
|
|
2657
|
-
if (newState.focus === Input) {
|
|
2750
|
+
if (newState.focus === Input$1) {
|
|
2658
2751
|
return ['Viewlet.setFocusContext', uid, FocusExtensionsInput];
|
|
2659
2752
|
}
|
|
2660
2753
|
if (newState.focus === List$2) {
|
|
@@ -2718,7 +2811,7 @@ const getSearchFieldButtonVirtualDom = button => {
|
|
|
2718
2811
|
onClick,
|
|
2719
2812
|
tabIndex: 0,
|
|
2720
2813
|
title,
|
|
2721
|
-
type: Button
|
|
2814
|
+
type: Button
|
|
2722
2815
|
}, {
|
|
2723
2816
|
childCount: 0,
|
|
2724
2817
|
className: mergeClassNames(MaskIcon, icon),
|
|
@@ -2745,7 +2838,7 @@ const getSearchFieldVirtualDom = (name, placeholder, onInput, insideButtons, out
|
|
|
2745
2838
|
onInput,
|
|
2746
2839
|
placeholder,
|
|
2747
2840
|
spellcheck: false,
|
|
2748
|
-
type: Input
|
|
2841
|
+
type: Input
|
|
2749
2842
|
}, {
|
|
2750
2843
|
childCount: insideButtons.length,
|
|
2751
2844
|
className: SearchFieldButtons,
|
|
@@ -2986,7 +3079,7 @@ const getExtensionsViewVirtualDom = state => {
|
|
|
2986
3079
|
ariaLive: 'polite',
|
|
2987
3080
|
childCount: 2,
|
|
2988
3081
|
className: mergeClassNames(Viewlet, Extensions),
|
|
2989
|
-
role: None$
|
|
3082
|
+
role: None$1,
|
|
2990
3083
|
type: Div
|
|
2991
3084
|
}, ...getExtensionHeaderVirtualDom(placeholder, inputActions), ...getContentVirtualDom(visibleExtensions, message, scrollBarHeight, scrollBarY, focusOutline)];
|
|
2992
3085
|
};
|
|
@@ -3081,13 +3174,13 @@ const getActionButtonVirtualDom = action => {
|
|
|
3081
3174
|
childCount: 1,
|
|
3082
3175
|
className: IconButton,
|
|
3083
3176
|
title: id,
|
|
3084
|
-
type: Button
|
|
3177
|
+
type: Button
|
|
3085
3178
|
}, getIconVirtualDom(icon)];
|
|
3086
3179
|
};
|
|
3087
3180
|
|
|
3088
3181
|
const getActionVirtualDom = action => {
|
|
3089
3182
|
switch (action.type) {
|
|
3090
|
-
case Button:
|
|
3183
|
+
case Button$1:
|
|
3091
3184
|
return getActionButtonVirtualDom(action);
|
|
3092
3185
|
default:
|
|
3093
3186
|
return [];
|
|
@@ -3119,7 +3212,7 @@ const renderActions = uid => {
|
|
|
3119
3212
|
const renderEventListeners = () => {
|
|
3120
3213
|
return [{
|
|
3121
3214
|
name: HandleContextMenu,
|
|
3122
|
-
params: ['handleContextMenu', Button$
|
|
3215
|
+
params: ['handleContextMenu', Button$2, ClientX, ClientY],
|
|
3123
3216
|
preventDefault: true
|
|
3124
3217
|
}, {
|
|
3125
3218
|
name: HandleHeaderContextMenu,
|
|
@@ -3127,7 +3220,7 @@ const renderEventListeners = () => {
|
|
|
3127
3220
|
preventDefault: true
|
|
3128
3221
|
}, {
|
|
3129
3222
|
name: HandlePointerDown,
|
|
3130
|
-
params: ['handleClickAt', Button$
|
|
3223
|
+
params: ['handleClickAt', Button$2, ClientX, ClientY],
|
|
3131
3224
|
preventDefault: true
|
|
3132
3225
|
}, {
|
|
3133
3226
|
name: HandleScrollBarPointerDown,
|
|
@@ -3224,7 +3317,10 @@ const selectIndex = (state, index) => {
|
|
|
3224
3317
|
};
|
|
3225
3318
|
|
|
3226
3319
|
const toggleSuggest = state => {
|
|
3227
|
-
return
|
|
3320
|
+
return {
|
|
3321
|
+
...state,
|
|
3322
|
+
suggestOpen: !state.suggestOpen
|
|
3323
|
+
};
|
|
3228
3324
|
};
|
|
3229
3325
|
|
|
3230
3326
|
const commandMap = {
|
|
@@ -3234,7 +3330,11 @@ const commandMap = {
|
|
|
3234
3330
|
'SearchExtensions.copyExtensionInfo': wrapCommand(copyExtensionInfo),
|
|
3235
3331
|
'SearchExtensions.create': create,
|
|
3236
3332
|
'SearchExtensions.diff2': diff2,
|
|
3333
|
+
'SearchExtensions.disable': wrapCommand(handleDisable),
|
|
3334
|
+
'SearchExtensions.disableWorkspace': wrapCommand(handleDisableWorkspace),
|
|
3237
3335
|
'SearchExtensions.dispose': dispose,
|
|
3336
|
+
'SearchExtensions.enable': wrapCommand(handleEnable),
|
|
3337
|
+
'SearchExtensions.enableWorkspace': wrapCommand(handleEnableWorkspace),
|
|
3238
3338
|
'SearchExtensions.focusFirst': wrapCommand(focusFirst),
|
|
3239
3339
|
'SearchExtensions.focusIndex': wrapCommand(focusIndex),
|
|
3240
3340
|
'SearchExtensions.focusLast': wrapCommand(focusLast),
|
|
@@ -3247,15 +3347,19 @@ const commandMap = {
|
|
|
3247
3347
|
'SearchExtensions.getKeyBindings': getKeyBindings,
|
|
3248
3348
|
'SearchExtensions.getMenuEntries': getMenuEntries,
|
|
3249
3349
|
'SearchExtensions.getMenuEntries2': wrapGetter(getMenuEntries2),
|
|
3350
|
+
'SearchExtensions.getMenuEntriesFilter': getMenuEntriesFilter,
|
|
3250
3351
|
'SearchExtensions.getMenuIds': getMenuIds,
|
|
3251
3352
|
'SearchExtensions.handleBlur': wrapCommand(handleBlur),
|
|
3252
3353
|
'SearchExtensions.handleClick': wrapCommand(handleClick),
|
|
3253
3354
|
'SearchExtensions.handleClickAt': wrapCommand(handleClickAt),
|
|
3254
3355
|
'SearchExtensions.handleClickCurrent': wrapCommand(handleClickCurrent),
|
|
3255
3356
|
'SearchExtensions.handleClickCurrentButKeepFocus': wrapCommand(handleClickCurrentButKeepFocus),
|
|
3357
|
+
'SearchExtensions.handleClickFilter': wrapCommand(handleClickFilter),
|
|
3256
3358
|
'SearchExtensions.handleContextMenu': wrapCommand(handleContextMenu),
|
|
3257
3359
|
'SearchExtensions.handleDisable': wrapCommand(handleDisable),
|
|
3360
|
+
'SearchExtensions.handleDisableWorkspace': wrapCommand(handleDisableWorkspace),
|
|
3258
3361
|
'SearchExtensions.handleEnable': wrapCommand(handleEnable),
|
|
3362
|
+
'SearchExtensions.handleEnableWorkspace': wrapCommand(handleEnableWorkspace),
|
|
3259
3363
|
'SearchExtensions.handleFocus': wrapCommand(handleFocus),
|
|
3260
3364
|
'SearchExtensions.handleHeaderContextMenu': wrapCommand(handleHeaderContextMenu),
|
|
3261
3365
|
'SearchExtensions.handleInput': wrapCommand(handleInput),
|