@lvce-editor/extension-host-worker 8.15.0 → 8.16.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/extensionHostWorkerMain.js +70 -112
- package/package.json +1 -1
|
@@ -579,7 +579,7 @@ const registerMethod = ({
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
};
|
|
582
|
-
const create$
|
|
582
|
+
const create$k = ({
|
|
583
583
|
additionalMethodNames = [],
|
|
584
584
|
executeKey = '',
|
|
585
585
|
name,
|
|
@@ -632,7 +632,7 @@ const String$1 = 'string';
|
|
|
632
632
|
|
|
633
633
|
const {
|
|
634
634
|
executeBraceCompletionProvider,
|
|
635
|
-
registerBraceCompletionProvider} = create$
|
|
635
|
+
registerBraceCompletionProvider} = create$k({
|
|
636
636
|
name: 'BraceCompletion',
|
|
637
637
|
resultShape: {
|
|
638
638
|
type: Boolean$1
|
|
@@ -642,7 +642,7 @@ const {
|
|
|
642
642
|
const {
|
|
643
643
|
executeClosingTagProvider,
|
|
644
644
|
registerClosingTagProvider
|
|
645
|
-
} = create$
|
|
645
|
+
} = create$k({
|
|
646
646
|
name: 'ClosingTag',
|
|
647
647
|
resultShape: {
|
|
648
648
|
allowUndefined: true,
|
|
@@ -654,7 +654,7 @@ const {
|
|
|
654
654
|
const {
|
|
655
655
|
executeCodeActionProvider,
|
|
656
656
|
registerCodeActionProvider
|
|
657
|
-
} = create$
|
|
657
|
+
} = create$k({
|
|
658
658
|
name: 'CodeAction',
|
|
659
659
|
resultShape: {
|
|
660
660
|
items: {
|
|
@@ -736,7 +736,7 @@ const executeCommand$1 = async (id, ...args) => {
|
|
|
736
736
|
const {
|
|
737
737
|
executeCommentProvider,
|
|
738
738
|
registerCommentProvider
|
|
739
|
-
} = create$
|
|
739
|
+
} = create$k({
|
|
740
740
|
name: 'Comment',
|
|
741
741
|
resultShape() {
|
|
742
742
|
return '';
|
|
@@ -747,7 +747,7 @@ const {
|
|
|
747
747
|
executeCompletionProvider,
|
|
748
748
|
executeresolveCompletionItemProvider,
|
|
749
749
|
registerCompletionProvider
|
|
750
|
-
} = create$
|
|
750
|
+
} = create$k({
|
|
751
751
|
additionalMethodNames: [
|
|
752
752
|
// @ts-ignore
|
|
753
753
|
{
|
|
@@ -1247,7 +1247,7 @@ const waitForWebSocketToBeOpen = webSocket => {
|
|
|
1247
1247
|
open: Open
|
|
1248
1248
|
});
|
|
1249
1249
|
};
|
|
1250
|
-
const create$
|
|
1250
|
+
const create$j = async ({
|
|
1251
1251
|
webSocket
|
|
1252
1252
|
}) => {
|
|
1253
1253
|
const firstWebSocketEvent = await waitForWebSocketToBeOpen(webSocket);
|
|
@@ -1284,7 +1284,7 @@ const wrap$1 = webSocket => {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
const IpcParentWithWebSocket$1$1 = {
|
|
1286
1286
|
__proto__: null,
|
|
1287
|
-
create: create$
|
|
1287
|
+
create: create$j,
|
|
1288
1288
|
wrap: wrap$1
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
@@ -1523,7 +1523,7 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
|
|
|
1523
1523
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
1524
1524
|
return create$1$1(id, errorProperty);
|
|
1525
1525
|
};
|
|
1526
|
-
const create$
|
|
1526
|
+
const create$i = (message, result) => {
|
|
1527
1527
|
return {
|
|
1528
1528
|
id: message.id,
|
|
1529
1529
|
jsonrpc: Two$1,
|
|
@@ -1532,7 +1532,7 @@ const create$j = (message, result) => {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
const getSuccessResponse = (message, result) => {
|
|
1534
1534
|
const resultProperty = result ?? null;
|
|
1535
|
-
return create$
|
|
1535
|
+
return create$i(message, resultProperty);
|
|
1536
1536
|
};
|
|
1537
1537
|
const getErrorResponseSimple = (id, error) => {
|
|
1538
1538
|
return {
|
|
@@ -1626,7 +1626,7 @@ const handleJsonRpcMessage = async (...args) => {
|
|
|
1626
1626
|
|
|
1627
1627
|
const Two = '2.0';
|
|
1628
1628
|
|
|
1629
|
-
const create$
|
|
1629
|
+
const create$h = (method, params) => {
|
|
1630
1630
|
return {
|
|
1631
1631
|
jsonrpc: Two,
|
|
1632
1632
|
method,
|
|
@@ -1634,7 +1634,7 @@ const create$i = (method, params) => {
|
|
|
1634
1634
|
};
|
|
1635
1635
|
};
|
|
1636
1636
|
|
|
1637
|
-
const create$
|
|
1637
|
+
const create$g = (id, method, params) => {
|
|
1638
1638
|
const message = {
|
|
1639
1639
|
id,
|
|
1640
1640
|
jsonrpc: Two,
|
|
@@ -1644,13 +1644,13 @@ const create$h = (id, method, params) => {
|
|
|
1644
1644
|
return message;
|
|
1645
1645
|
};
|
|
1646
1646
|
|
|
1647
|
-
let id$
|
|
1648
|
-
const create$
|
|
1649
|
-
return ++id$
|
|
1647
|
+
let id$1 = 0;
|
|
1648
|
+
const create$f = () => {
|
|
1649
|
+
return ++id$1;
|
|
1650
1650
|
};
|
|
1651
1651
|
|
|
1652
1652
|
const registerPromise = map => {
|
|
1653
|
-
const id = create$
|
|
1653
|
+
const id = create$f();
|
|
1654
1654
|
const {
|
|
1655
1655
|
promise,
|
|
1656
1656
|
resolve
|
|
@@ -1667,7 +1667,7 @@ const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer)
|
|
|
1667
1667
|
id,
|
|
1668
1668
|
promise
|
|
1669
1669
|
} = registerPromise(callbacks);
|
|
1670
|
-
const message = create$
|
|
1670
|
+
const message = create$g(id, method, params);
|
|
1671
1671
|
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
1672
1672
|
ipc.sendAndTransfer(message);
|
|
1673
1673
|
} else {
|
|
@@ -1703,7 +1703,7 @@ const createRpc$1 = ipc => {
|
|
|
1703
1703
|
* @deprecated
|
|
1704
1704
|
*/
|
|
1705
1705
|
send(method, ...params) {
|
|
1706
|
-
const message = create$
|
|
1706
|
+
const message = create$h(method, params);
|
|
1707
1707
|
ipc.send(message);
|
|
1708
1708
|
}
|
|
1709
1709
|
};
|
|
@@ -1743,7 +1743,7 @@ const listen$1 = async (module, options) => {
|
|
|
1743
1743
|
return ipc;
|
|
1744
1744
|
};
|
|
1745
1745
|
|
|
1746
|
-
const create$
|
|
1746
|
+
const create$e = async ({
|
|
1747
1747
|
commandMap,
|
|
1748
1748
|
isMessagePortOpen = true,
|
|
1749
1749
|
messagePort
|
|
@@ -1761,7 +1761,7 @@ const create$f = async ({
|
|
|
1761
1761
|
return rpc;
|
|
1762
1762
|
};
|
|
1763
1763
|
|
|
1764
|
-
const create$
|
|
1764
|
+
const create$d = async ({
|
|
1765
1765
|
commandMap,
|
|
1766
1766
|
isMessagePortOpen,
|
|
1767
1767
|
send
|
|
@@ -1771,7 +1771,7 @@ const create$e = async ({
|
|
|
1771
1771
|
port2
|
|
1772
1772
|
} = new MessageChannel();
|
|
1773
1773
|
await send(port1);
|
|
1774
|
-
return create$
|
|
1774
|
+
return create$e({
|
|
1775
1775
|
commandMap,
|
|
1776
1776
|
isMessagePortOpen,
|
|
1777
1777
|
messagePort: port2
|
|
@@ -1806,13 +1806,13 @@ const createSharedLazyRpc = factory => {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
};
|
|
1808
1808
|
|
|
1809
|
-
const create$
|
|
1809
|
+
const create$c = async ({
|
|
1810
1810
|
commandMap,
|
|
1811
1811
|
isMessagePortOpen,
|
|
1812
1812
|
send
|
|
1813
1813
|
}) => {
|
|
1814
1814
|
return createSharedLazyRpc(() => {
|
|
1815
|
-
return create$
|
|
1815
|
+
return create$d({
|
|
1816
1816
|
commandMap,
|
|
1817
1817
|
isMessagePortOpen,
|
|
1818
1818
|
send
|
|
@@ -1820,7 +1820,7 @@ const create$d = async ({
|
|
|
1820
1820
|
});
|
|
1821
1821
|
};
|
|
1822
1822
|
|
|
1823
|
-
const create$
|
|
1823
|
+
const create$b = async ({
|
|
1824
1824
|
commandMap,
|
|
1825
1825
|
webSocket
|
|
1826
1826
|
}) => {
|
|
@@ -1835,7 +1835,7 @@ const create$c = async ({
|
|
|
1835
1835
|
return rpc;
|
|
1836
1836
|
};
|
|
1837
1837
|
|
|
1838
|
-
const create$
|
|
1838
|
+
const create$a = async ({
|
|
1839
1839
|
commandMap,
|
|
1840
1840
|
messagePort
|
|
1841
1841
|
}) => {
|
|
@@ -1849,7 +1849,7 @@ const create$b = async ({
|
|
|
1849
1849
|
return rpc;
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
-
const create$
|
|
1852
|
+
const create$9 = async ({
|
|
1853
1853
|
commandMap,
|
|
1854
1854
|
isMessagePortOpen,
|
|
1855
1855
|
messagePort
|
|
@@ -1866,17 +1866,17 @@ const create$a = async ({
|
|
|
1866
1866
|
return rpc;
|
|
1867
1867
|
};
|
|
1868
1868
|
|
|
1869
|
-
const create$
|
|
1869
|
+
const create$8 = async ({
|
|
1870
1870
|
commandMap,
|
|
1871
1871
|
messagePort
|
|
1872
1872
|
}) => {
|
|
1873
|
-
return create$
|
|
1873
|
+
return create$e({
|
|
1874
1874
|
commandMap,
|
|
1875
1875
|
messagePort
|
|
1876
1876
|
});
|
|
1877
1877
|
};
|
|
1878
1878
|
|
|
1879
|
-
const create$
|
|
1879
|
+
const create$7 = async ({
|
|
1880
1880
|
commandMap
|
|
1881
1881
|
}) => {
|
|
1882
1882
|
// TODO create a commandMap per rpc instance
|
|
@@ -1919,7 +1919,7 @@ const remove$4 = id => {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
|
|
1921
1921
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
1922
|
-
const create$
|
|
1922
|
+
const create$6 = rpcId => {
|
|
1923
1923
|
return {
|
|
1924
1924
|
async dispose() {
|
|
1925
1925
|
const rpc = get$a(rpcId);
|
|
@@ -1960,7 +1960,7 @@ const ExtensionManagementWorker = 9006;
|
|
|
1960
1960
|
const RendererWorker$1 = 1;
|
|
1961
1961
|
|
|
1962
1962
|
const {
|
|
1963
|
-
invoke: invoke$6} = create$
|
|
1963
|
+
invoke: invoke$6} = create$6(DebugWorker$1);
|
|
1964
1964
|
|
|
1965
1965
|
const DebugWorker = {
|
|
1966
1966
|
__proto__: null,
|
|
@@ -1971,20 +1971,20 @@ const {
|
|
|
1971
1971
|
invoke: invoke$5,
|
|
1972
1972
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1973
1973
|
set: set$c
|
|
1974
|
-
} = create$
|
|
1974
|
+
} = create$6(ExtensionManagementWorker);
|
|
1975
1975
|
|
|
1976
1976
|
const {
|
|
1977
1977
|
set: set$b
|
|
1978
|
-
} = create$
|
|
1978
|
+
} = create$6(7013);
|
|
1979
1979
|
|
|
1980
1980
|
const {
|
|
1981
1981
|
invoke: invoke$4,
|
|
1982
1982
|
set: set$a
|
|
1983
|
-
} = create$
|
|
1983
|
+
} = create$6(10_000);
|
|
1984
1984
|
|
|
1985
1985
|
const {
|
|
1986
1986
|
invoke: invoke$3,
|
|
1987
|
-
invokeAndTransfer: invokeAndTransfer$2} = create$
|
|
1987
|
+
invokeAndTransfer: invokeAndTransfer$2} = create$6(RendererWorker$1);
|
|
1988
1988
|
const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
|
|
1989
1989
|
const command = 'QuickPick.handleMessagePort';
|
|
1990
1990
|
await invokeAndTransfer$2('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
|
|
@@ -2192,7 +2192,7 @@ const setPauseOnExceptions = async (protocol, value) => {
|
|
|
2192
2192
|
|
|
2193
2193
|
const {
|
|
2194
2194
|
executeDefinitionProvider,
|
|
2195
|
-
registerDefinitionProvider} = create$
|
|
2195
|
+
registerDefinitionProvider} = create$k({
|
|
2196
2196
|
name: 'Definition',
|
|
2197
2197
|
resultShape: {
|
|
2198
2198
|
allowUndefined: true,
|
|
@@ -2214,7 +2214,7 @@ const {
|
|
|
2214
2214
|
const {
|
|
2215
2215
|
executeDiagnosticProvider,
|
|
2216
2216
|
registerDiagnosticProvider
|
|
2217
|
-
} = create$
|
|
2217
|
+
} = create$k({
|
|
2218
2218
|
name: 'Diagnostic',
|
|
2219
2219
|
resultShape: {
|
|
2220
2220
|
items: {
|
|
@@ -2364,7 +2364,7 @@ const getPathSeparator = protocol => {
|
|
|
2364
2364
|
|
|
2365
2365
|
const {
|
|
2366
2366
|
executeFormattingProvider,
|
|
2367
|
-
registerFormattingProvider} = create$
|
|
2367
|
+
registerFormattingProvider} = create$k({
|
|
2368
2368
|
executeKey: 'format',
|
|
2369
2369
|
name: 'Formatting',
|
|
2370
2370
|
resultShape: {
|
|
@@ -2425,7 +2425,7 @@ const getPosition = (textDocument, offset) => {
|
|
|
2425
2425
|
|
|
2426
2426
|
const {
|
|
2427
2427
|
executeHoverProvider,
|
|
2428
|
-
registerHoverProvider} = create$
|
|
2428
|
+
registerHoverProvider} = create$k({
|
|
2429
2429
|
name: 'Hover',
|
|
2430
2430
|
resultShape: {
|
|
2431
2431
|
allowUndefined: true,
|
|
@@ -2436,7 +2436,7 @@ const {
|
|
|
2436
2436
|
|
|
2437
2437
|
const {
|
|
2438
2438
|
executeImplementationProvider,
|
|
2439
|
-
registerImplementationProvider} = create$
|
|
2439
|
+
registerImplementationProvider} = create$k({
|
|
2440
2440
|
name: 'Implementation',
|
|
2441
2441
|
resultShape: {
|
|
2442
2442
|
items: {
|
|
@@ -2476,7 +2476,7 @@ const sendPort = async ({
|
|
|
2476
2476
|
url
|
|
2477
2477
|
});
|
|
2478
2478
|
};
|
|
2479
|
-
const create$
|
|
2479
|
+
const create$5 = async ({
|
|
2480
2480
|
commandMap,
|
|
2481
2481
|
name,
|
|
2482
2482
|
url
|
|
@@ -2487,7 +2487,7 @@ const create$6 = async ({
|
|
|
2487
2487
|
port1,
|
|
2488
2488
|
port2
|
|
2489
2489
|
} = getPortTuple();
|
|
2490
|
-
const rpcPromise = create$
|
|
2490
|
+
const rpcPromise = create$9({
|
|
2491
2491
|
commandMap,
|
|
2492
2492
|
isMessagePortOpen: true,
|
|
2493
2493
|
messagePort: port2
|
|
@@ -2505,7 +2505,7 @@ const create$6 = async ({
|
|
|
2505
2505
|
|
|
2506
2506
|
const IpcParentWithModuleWorkerAndWorkaroundForChromeDevtoolsBug = {
|
|
2507
2507
|
__proto__: null,
|
|
2508
|
-
create: create$
|
|
2508
|
+
create: create$5
|
|
2509
2509
|
};
|
|
2510
2510
|
|
|
2511
2511
|
const sendMessagePortToElectron = async (port, initialCommand) => {
|
|
@@ -2520,13 +2520,13 @@ const getPort = async type => {
|
|
|
2520
2520
|
await sendMessagePortToElectron(port1, 'HandleMessagePortForExtensionHostHelperProcess.handleMessagePortForExtensionHostHelperProcess');
|
|
2521
2521
|
return port2;
|
|
2522
2522
|
};
|
|
2523
|
-
const create$
|
|
2523
|
+
const create$4 = async ({
|
|
2524
2524
|
type
|
|
2525
2525
|
}) => {
|
|
2526
2526
|
const port = await getPort();
|
|
2527
2527
|
// TODO rpc module should start port
|
|
2528
2528
|
port.start();
|
|
2529
|
-
const rpc = await create$
|
|
2529
|
+
const rpc = await create$9({
|
|
2530
2530
|
commandMap: {},
|
|
2531
2531
|
isMessagePortOpen: true,
|
|
2532
2532
|
messagePort: port
|
|
@@ -2536,7 +2536,7 @@ const create$5 = async ({
|
|
|
2536
2536
|
|
|
2537
2537
|
const IpcParentWithElectronMessagePort = {
|
|
2538
2538
|
__proto__: null,
|
|
2539
|
-
create: create$
|
|
2539
|
+
create: create$4
|
|
2540
2540
|
};
|
|
2541
2541
|
|
|
2542
2542
|
const getWebSocketProtocol = () => {
|
|
@@ -2548,13 +2548,13 @@ const getWebSocketUrl = (type, host) => {
|
|
|
2548
2548
|
return `${wsProtocol}//${host}/websocket/${type}`;
|
|
2549
2549
|
};
|
|
2550
2550
|
|
|
2551
|
-
const create$
|
|
2551
|
+
const create$3 = async ({
|
|
2552
2552
|
type
|
|
2553
2553
|
}) => {
|
|
2554
2554
|
string(type);
|
|
2555
2555
|
const wsUrl = getWebSocketUrl(type, location.host);
|
|
2556
2556
|
const webSocket = new WebSocket(wsUrl);
|
|
2557
|
-
const rpc = await create$
|
|
2557
|
+
const rpc = await create$b({
|
|
2558
2558
|
commandMap: {},
|
|
2559
2559
|
webSocket
|
|
2560
2560
|
});
|
|
@@ -2563,7 +2563,7 @@ const create$4 = async ({
|
|
|
2563
2563
|
|
|
2564
2564
|
const IpcParentWithWebSocket = {
|
|
2565
2565
|
__proto__: null,
|
|
2566
|
-
create: create$
|
|
2566
|
+
create: create$3
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
2569
|
const Electron = 'electron';
|
|
@@ -2600,7 +2600,7 @@ const getModule$1 = platform => {
|
|
|
2600
2600
|
return IpcParentWithElectronMessagePort;
|
|
2601
2601
|
}
|
|
2602
2602
|
};
|
|
2603
|
-
const create$
|
|
2603
|
+
const create$2 = async ({
|
|
2604
2604
|
raw,
|
|
2605
2605
|
type
|
|
2606
2606
|
}) => {
|
|
@@ -2613,7 +2613,7 @@ const create$3 = async ({
|
|
|
2613
2613
|
|
|
2614
2614
|
const IpcParentWithNode = {
|
|
2615
2615
|
__proto__: null,
|
|
2616
|
-
create: create$
|
|
2616
|
+
create: create$2
|
|
2617
2617
|
};
|
|
2618
2618
|
|
|
2619
2619
|
const getModule = method => {
|
|
@@ -2629,7 +2629,7 @@ const getModule = method => {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
};
|
|
2631
2631
|
|
|
2632
|
-
const create$
|
|
2632
|
+
const create$1 = async ({
|
|
2633
2633
|
method,
|
|
2634
2634
|
...options
|
|
2635
2635
|
}) => {
|
|
@@ -2654,7 +2654,7 @@ const createNodeRpc = async ({
|
|
|
2654
2654
|
try {
|
|
2655
2655
|
string(path);
|
|
2656
2656
|
fn(execute);
|
|
2657
|
-
const rpc = await create$
|
|
2657
|
+
const rpc = await create$1({
|
|
2658
2658
|
commandMap: {},
|
|
2659
2659
|
method: ElectronMessagePort,
|
|
2660
2660
|
name,
|
|
@@ -2672,7 +2672,7 @@ const send = async port => {
|
|
|
2672
2672
|
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, initialCommand);
|
|
2673
2673
|
};
|
|
2674
2674
|
const launchFileSystemProcess = async () => {
|
|
2675
|
-
const rpc = await create$
|
|
2675
|
+
const rpc = await create$d({
|
|
2676
2676
|
commandMap: {},
|
|
2677
2677
|
send
|
|
2678
2678
|
});
|
|
@@ -2754,11 +2754,6 @@ const confirm = message => {
|
|
|
2754
2754
|
return result;
|
|
2755
2755
|
};
|
|
2756
2756
|
|
|
2757
|
-
let id$1 = 0;
|
|
2758
|
-
const create$1 = () => {
|
|
2759
|
-
return ++id$1;
|
|
2760
|
-
};
|
|
2761
|
-
|
|
2762
2757
|
const validateQuickPickItem = item => {
|
|
2763
2758
|
if (!item || typeof item !== 'object') {
|
|
2764
2759
|
throw new TypeError('quick pick item must be an object');
|
|
@@ -2788,47 +2783,12 @@ const showQuickPick = async ({
|
|
|
2788
2783
|
placeholder
|
|
2789
2784
|
});
|
|
2790
2785
|
};
|
|
2791
|
-
const quickInputs = Object.create(null);
|
|
2792
|
-
const renderQuickInput = async (id, searchValue) => {
|
|
2793
|
-
const render = quickInputs[id];
|
|
2794
|
-
if (!render) {
|
|
2795
|
-
return [];
|
|
2796
|
-
}
|
|
2797
|
-
return render(searchValue);
|
|
2798
|
-
};
|
|
2799
|
-
const showQuickInput = async ({
|
|
2800
|
-
ignoreFocusOut,
|
|
2801
|
-
initialValue,
|
|
2802
|
-
render
|
|
2803
|
-
}) => {
|
|
2804
|
-
const id = create$1();
|
|
2805
|
-
quickInputs[id] = render;
|
|
2806
|
-
const initialItems = await render('');
|
|
2807
|
-
// TODO create direct connection to file search worker
|
|
2808
|
-
const {
|
|
2809
|
-
canceled,
|
|
2810
|
-
inputValue
|
|
2811
|
-
} = await invoke$4('QuickPick.showQuickInput', {
|
|
2812
|
-
id,
|
|
2813
|
-
ignoreFocusOut,
|
|
2814
|
-
initialItems,
|
|
2815
|
-
initialValue
|
|
2816
|
-
});
|
|
2817
|
-
try {
|
|
2818
|
-
return {
|
|
2819
|
-
canceled,
|
|
2820
|
-
inputValue
|
|
2821
|
-
};
|
|
2822
|
-
} finally {
|
|
2823
|
-
delete quickInputs[id];
|
|
2824
|
-
}
|
|
2825
|
-
};
|
|
2826
2786
|
|
|
2827
2787
|
const {
|
|
2828
2788
|
executefileReferenceProvider,
|
|
2829
2789
|
executeReferenceProvider,
|
|
2830
2790
|
getProvider: getProvider$2,
|
|
2831
|
-
registerReferenceProvider} = create$
|
|
2791
|
+
registerReferenceProvider} = create$k({
|
|
2832
2792
|
additionalMethodNames: [
|
|
2833
2793
|
// @ts-ignore
|
|
2834
2794
|
{
|
|
@@ -2890,7 +2850,7 @@ const validateResult = renameResult => {
|
|
|
2890
2850
|
const {
|
|
2891
2851
|
executeprepareRenameProvider,
|
|
2892
2852
|
executeRenameProvider,
|
|
2893
|
-
registerRenameProvider} = create$
|
|
2853
|
+
registerRenameProvider} = create$k({
|
|
2894
2854
|
additionalMethodNames: [
|
|
2895
2855
|
// @ts-ignore
|
|
2896
2856
|
{
|
|
@@ -2932,7 +2892,7 @@ const createLegacyRpc = async ({
|
|
|
2932
2892
|
if (contentSecurityPolicy) {
|
|
2933
2893
|
await set$8(url, contentSecurityPolicy);
|
|
2934
2894
|
}
|
|
2935
|
-
const rpc = await create$
|
|
2895
|
+
const rpc = await create$1({
|
|
2936
2896
|
commandMap,
|
|
2937
2897
|
method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug$1,
|
|
2938
2898
|
name,
|
|
@@ -2972,7 +2932,7 @@ const createRpcWithId$1 = async (id, commandMap, execute) => {
|
|
|
2972
2932
|
if (!info) {
|
|
2973
2933
|
throw new Error(`rpc with id ${id} not found`);
|
|
2974
2934
|
}
|
|
2975
|
-
const rpc = await create$
|
|
2935
|
+
const rpc = await create$1({
|
|
2976
2936
|
commandMap,
|
|
2977
2937
|
isMessagePortOpen: true,
|
|
2978
2938
|
method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug$1,
|
|
@@ -3047,7 +3007,7 @@ const createRpc = ({
|
|
|
3047
3007
|
|
|
3048
3008
|
const {
|
|
3049
3009
|
executeSelectionProvider,
|
|
3050
|
-
registerSelectionProvider} = create$
|
|
3010
|
+
registerSelectionProvider} = create$k({
|
|
3051
3011
|
name: 'Selection',
|
|
3052
3012
|
resultShape: {
|
|
3053
3013
|
allowUndefined: true,
|
|
@@ -3443,7 +3403,7 @@ const registerStatuBarItemProvider = provider => {
|
|
|
3443
3403
|
|
|
3444
3404
|
const {
|
|
3445
3405
|
executeTabCompletionProvider,
|
|
3446
|
-
registerTabCompletionProvider} = create$
|
|
3406
|
+
registerTabCompletionProvider} = create$k({
|
|
3447
3407
|
name: 'TabCompletion',
|
|
3448
3408
|
resultShape: {
|
|
3449
3409
|
allowUndefined: true,
|
|
@@ -3482,7 +3442,7 @@ const executeTextSearchProvider = async (scheme, query) => {
|
|
|
3482
3442
|
|
|
3483
3443
|
const {
|
|
3484
3444
|
executeTypeDefinitionProvider,
|
|
3485
|
-
registerTypeDefinitionProvider} = create$
|
|
3445
|
+
registerTypeDefinitionProvider} = create$k({
|
|
3486
3446
|
name: 'TypeDefinition',
|
|
3487
3447
|
resultShape: {
|
|
3488
3448
|
allowUndefined: true,
|
|
@@ -3533,7 +3493,7 @@ const createWebView = async (providerId, port, uri, uid, origin, webView) => {
|
|
|
3533
3493
|
// TODO cancel promise when webview is disposed before sending message
|
|
3534
3494
|
// TODO handle case when webview doesn't send ready message
|
|
3535
3495
|
|
|
3536
|
-
const rpc = await create$
|
|
3496
|
+
const rpc = await create$9({
|
|
3537
3497
|
commandMap: provider.commands || {},
|
|
3538
3498
|
isMessagePortOpen: false,
|
|
3539
3499
|
messagePort: port
|
|
@@ -3586,7 +3546,7 @@ const createWorker = async ({
|
|
|
3586
3546
|
string(method);
|
|
3587
3547
|
string(url);
|
|
3588
3548
|
string(name);
|
|
3589
|
-
const rpc = create$
|
|
3549
|
+
const rpc = create$1({
|
|
3590
3550
|
method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug$1,
|
|
3591
3551
|
name,
|
|
3592
3552
|
url
|
|
@@ -3729,7 +3689,6 @@ const api = {
|
|
|
3729
3689
|
// Dialog
|
|
3730
3690
|
showInformationMessage: showInformationMessage,
|
|
3731
3691
|
// QuickPick
|
|
3732
|
-
showQuickInput: showQuickInput,
|
|
3733
3692
|
showQuickPick: showQuickPick,
|
|
3734
3693
|
stat: statExternal,
|
|
3735
3694
|
TextSearchResultType,
|
|
@@ -3823,7 +3782,7 @@ const setup = ({
|
|
|
3823
3782
|
};
|
|
3824
3783
|
|
|
3825
3784
|
const launchExtensionManagementWorker = async () => {
|
|
3826
|
-
const rpc = await create$
|
|
3785
|
+
const rpc = await create$c({
|
|
3827
3786
|
commandMap: {},
|
|
3828
3787
|
async send(port) {
|
|
3829
3788
|
await sendMessagePortToExtensionManagementWorker(port, 0);
|
|
@@ -3833,7 +3792,7 @@ const launchExtensionManagementWorker = async () => {
|
|
|
3833
3792
|
};
|
|
3834
3793
|
|
|
3835
3794
|
const launchFileSearchWorker = async () => {
|
|
3836
|
-
const rpc = await create$
|
|
3795
|
+
const rpc = await create$c({
|
|
3837
3796
|
commandMap: {},
|
|
3838
3797
|
async send(port) {
|
|
3839
3798
|
await sendMessagePortToFileSearchWorker(port, 0);
|
|
@@ -5059,7 +5018,7 @@ const hydrate$1 = async () => {
|
|
|
5059
5018
|
};
|
|
5060
5019
|
|
|
5061
5020
|
const launchIframeWorker = async () => {
|
|
5062
|
-
const rpc = await create$
|
|
5021
|
+
const rpc = await create$d({
|
|
5063
5022
|
commandMap: {},
|
|
5064
5023
|
async send(port) {
|
|
5065
5024
|
await sendMessagePortToIframeWorker(port, 0);
|
|
@@ -5684,7 +5643,7 @@ const handleBeforeUnload = () => {
|
|
|
5684
5643
|
};
|
|
5685
5644
|
|
|
5686
5645
|
const handleMessagePort2 = async (port, rpcId) => {
|
|
5687
|
-
const rpc = await create$
|
|
5646
|
+
const rpc = await create$8({
|
|
5688
5647
|
commandMap: {},
|
|
5689
5648
|
messagePort: port
|
|
5690
5649
|
});
|
|
@@ -5694,7 +5653,7 @@ const handleMessagePort2 = async (port, rpcId) => {
|
|
|
5694
5653
|
};
|
|
5695
5654
|
|
|
5696
5655
|
const handleMessagePort = async (port, rpcId) => {
|
|
5697
|
-
const rpc = await create$
|
|
5656
|
+
const rpc = await create$a({
|
|
5698
5657
|
commandMap: {},
|
|
5699
5658
|
messagePort: port
|
|
5700
5659
|
});
|
|
@@ -6395,7 +6354,6 @@ const commandMap = {
|
|
|
6395
6354
|
'ExtensionHostDebug.stepInto': stepInto,
|
|
6396
6355
|
'ExtensionHostDebug.stepOut': stepOut,
|
|
6397
6356
|
'ExtensionHostDebug.stepOver': stepOver,
|
|
6398
|
-
'ExtensionHostQuickPick.renderQuickInput': renderQuickInput,
|
|
6399
6357
|
'ExtensionHostRename.executeprepareRenameProvider': executeprepareRenameProvider,
|
|
6400
6358
|
'ExtensionHostRename.executeRenameProvider': executeRenameProvider,
|
|
6401
6359
|
'ExtensionHostSourceControl.getIconDefinitions': getIconDefinitions,
|
|
@@ -6463,7 +6421,7 @@ const commandMap = {
|
|
|
6463
6421
|
};
|
|
6464
6422
|
|
|
6465
6423
|
const launchQuickPickWorker = async () => {
|
|
6466
|
-
const rpc = await create$
|
|
6424
|
+
const rpc = await create$c({
|
|
6467
6425
|
commandMap: commandMap,
|
|
6468
6426
|
async send(port) {
|
|
6469
6427
|
await sendMessagePortToQuickPickWorker(port, 0);
|
|
@@ -6473,7 +6431,7 @@ const launchQuickPickWorker = async () => {
|
|
|
6473
6431
|
};
|
|
6474
6432
|
|
|
6475
6433
|
const launchRendererWorker = async () => {
|
|
6476
|
-
const rpc = await create$
|
|
6434
|
+
const rpc = await create$7({
|
|
6477
6435
|
commandMap: commandMap
|
|
6478
6436
|
});
|
|
6479
6437
|
set$d(RendererWorker, rpc);
|