@lvce-editor/activity-bar-worker 7.23.0 → 7.25.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.
@@ -1858,6 +1858,34 @@ const listen$1 = async (module, options) => {
1858
1858
  return ipc;
1859
1859
  };
1860
1860
 
1861
+ const createSharedLazyRpc = factory => {
1862
+ let rpcPromise;
1863
+ const getOrCreate = () => {
1864
+ if (!rpcPromise) {
1865
+ rpcPromise = factory();
1866
+ }
1867
+ return rpcPromise;
1868
+ };
1869
+ return {
1870
+ async dispose() {
1871
+ const rpc = await getOrCreate();
1872
+ await rpc.dispose();
1873
+ },
1874
+ async invoke(method, ...params) {
1875
+ const rpc = await getOrCreate();
1876
+ return rpc.invoke(method, ...params);
1877
+ },
1878
+ async invokeAndTransfer(method, ...params) {
1879
+ const rpc = await getOrCreate();
1880
+ return rpc.invokeAndTransfer(method, ...params);
1881
+ },
1882
+ async send(method, ...params) {
1883
+ const rpc = await getOrCreate();
1884
+ rpc.send(method, ...params);
1885
+ }
1886
+ };
1887
+ };
1888
+
1861
1889
  const create$4 = async ({
1862
1890
  commandMap,
1863
1891
  isMessagePortOpen = true,
@@ -1893,34 +1921,6 @@ const create$3 = async ({
1893
1921
  });
1894
1922
  };
1895
1923
 
1896
- const createSharedLazyRpc = factory => {
1897
- let rpcPromise;
1898
- const getOrCreate = () => {
1899
- if (!rpcPromise) {
1900
- rpcPromise = factory();
1901
- }
1902
- return rpcPromise;
1903
- };
1904
- return {
1905
- async dispose() {
1906
- const rpc = await getOrCreate();
1907
- await rpc.dispose();
1908
- },
1909
- async invoke(method, ...params) {
1910
- const rpc = await getOrCreate();
1911
- return rpc.invoke(method, ...params);
1912
- },
1913
- async invokeAndTransfer(method, ...params) {
1914
- const rpc = await getOrCreate();
1915
- return rpc.invokeAndTransfer(method, ...params);
1916
- },
1917
- async send(method, ...params) {
1918
- const rpc = await getOrCreate();
1919
- rpc.send(method, ...params);
1920
- }
1921
- };
1922
- };
1923
-
1924
1924
  const create$2 = async ({
1925
1925
  commandMap,
1926
1926
  isMessagePortOpen,
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "category": "workbench",
4
+ "description": "Show the account item in the activity bar",
5
+ "heading": "Account",
6
+ "id": "activityBar.accountEnabled",
7
+ "type": 3,
8
+ "value": true
9
+ }
10
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/activity-bar-worker",
3
- "version": "7.23.0",
3
+ "version": "7.25.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",