@lvce-editor/shared-process 0.70.3 → 0.70.4
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/package.json +3 -3
- package/src/parts/AutoUpdater/AutoUpdater.ipc.js +2 -3
- package/src/parts/AutoUpdaterWindowsNsis/AutoUpdaterWindowsNsis.ipc.js +2 -3
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/Crash/Crash.ipc.js +2 -3
- package/src/parts/Developer/Developer.ipc.js +6 -7
- package/src/parts/ElectronApplicationMenu/ElectronApplicationMenu.ipc.js +3 -3
- package/src/parts/ElectronApplicationMenu/ElectronApplicationMenu.js +6 -7
- package/src/parts/HeapSnapshot/HeapSnapshot.ipc.js +1 -2
- package/src/parts/HeapSnapshot/HeapSnapshot.js +1 -1
- package/src/parts/Os/Os.ipc.js +1 -2
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/Process/Process.ipc.js +7 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.5.1",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.70.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.70.4",
|
|
22
22
|
"@lvce-editor/ipc": "14.7.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "7.0.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
25
25
|
"@lvce-editor/pretty-error": "2.0.0",
|
|
26
|
-
"@lvce-editor/rpc-registry": "6.
|
|
26
|
+
"@lvce-editor/rpc-registry": "6.3.0",
|
|
27
27
|
"@lvce-editor/verror": "1.7.0",
|
|
28
28
|
"is-object": "^1.0.2",
|
|
29
29
|
"xdg-basedir": "^5.1.0"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as AutoUpdater from './AutoUpdater.js';
|
|
2
|
-
export const name = 'AutoUpdater';
|
|
3
2
|
export const Commands = {
|
|
4
|
-
getAutoUpdateType: AutoUpdater.getAutoUpdateType,
|
|
5
|
-
getLatestVersion: AutoUpdater.getLatestVersion,
|
|
3
|
+
'AutoUpdater.getAutoUpdateType': AutoUpdater.getAutoUpdateType,
|
|
4
|
+
'AutoUpdater.getLatestVersion': AutoUpdater.getLatestVersion,
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as AutoUpdaterWindowsNsis from './AutoUpdaterWindowsNsis.js';
|
|
2
|
-
export const name = 'AutoUpdaterWindowsNsis';
|
|
3
2
|
export const Commands = {
|
|
4
|
-
downloadUpdate: AutoUpdaterWindowsNsis.downloadUpdate,
|
|
5
|
-
installAndRestart: AutoUpdaterWindowsNsis.installAndRestart,
|
|
3
|
+
'AutoUpdaterWindowsNsis.downloadUpdate': AutoUpdaterWindowsNsis.downloadUpdate,
|
|
4
|
+
'AutoUpdaterWindowsNsis.installAndRestart': AutoUpdaterWindowsNsis.installAndRestart,
|
|
6
5
|
};
|
|
@@ -2,6 +2,6 @@ import { join } from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
export const getBuiltinExtensionsPath = () => {
|
|
4
4
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
|
|
5
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '8c1fe09', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Crash from './Crash.js';
|
|
2
|
-
export const name = 'Crash';
|
|
3
2
|
export const Commands = {
|
|
4
|
-
crashMainProcess: Crash.crashMainProcess,
|
|
5
|
-
crashSharedProcess: Crash.crashSharedProcess,
|
|
3
|
+
'Crash.crashMainProcess': Crash.crashMainProcess,
|
|
4
|
+
'Crash.crashSharedProcess': Crash.crashSharedProcess,
|
|
6
5
|
};
|
|
@@ -2,12 +2,11 @@ import * as CpuProfile from '../CpuProfile/CpuProfile.js';
|
|
|
2
2
|
import * as Crash from '../Crash/Crash.js';
|
|
3
3
|
import * as HeapSnapshot from '../HeapSnapshot/HeapSnapshot.js';
|
|
4
4
|
import * as Developer from './Developer.js';
|
|
5
|
-
export const name = 'Developer';
|
|
6
5
|
export const Commands = {
|
|
7
|
-
allocateMemory: Developer.allocateMemory,
|
|
8
|
-
crashSharedProcess: Crash.crashSharedProcess,
|
|
9
|
-
createHeapSnapshot: HeapSnapshot.createHeapSnapshot,
|
|
10
|
-
createProfile: CpuProfile.createProfile,
|
|
11
|
-
sharedProcessMemoryUsage: Developer.sharedProcessMemoryUsage,
|
|
12
|
-
sharedProcessStartupPerformance: Developer.sharedProcessStartupPerformance,
|
|
6
|
+
'Developer.allocateMemory': Developer.allocateMemory,
|
|
7
|
+
'Developer.crashSharedProcess': Crash.crashSharedProcess,
|
|
8
|
+
'Developer.createHeapSnapshot': HeapSnapshot.createHeapSnapshot,
|
|
9
|
+
'Developer.createProfile': CpuProfile.createProfile,
|
|
10
|
+
'Developer.sharedProcessMemoryUsage': Developer.sharedProcessMemoryUsage,
|
|
11
|
+
'Developer.sharedProcessStartupPerformance': Developer.sharedProcessStartupPerformance,
|
|
13
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ElectronApplicationMenu from './ElectronApplicationMenu.js';
|
|
2
|
-
export const name = 'ElectronApplicationMenu';
|
|
3
2
|
export const Commands = {
|
|
4
|
-
handleClick: ElectronApplicationMenu.handleClick,
|
|
5
|
-
setItems: ElectronApplicationMenu.setItems,
|
|
3
|
+
'ElectronApplicationMenu.handleClick': ElectronApplicationMenu.handleClick,
|
|
4
|
+
'ElectronApplicationMenu.setItems': ElectronApplicationMenu.setItems,
|
|
5
|
+
'TitleBar.handleElectronMenuClick': ElectronApplicationMenu.handleClick,
|
|
6
6
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Assert from '../Assert/Assert.js';
|
|
2
|
+
import * as JsonRpc from '../JsonRpc/JsonRpc.js';
|
|
2
3
|
import * as ParentIpc from '../MainProcess/MainProcess.js';
|
|
3
|
-
|
|
4
|
+
const state = {
|
|
4
5
|
ipcMap: Object.create(null),
|
|
5
6
|
};
|
|
6
7
|
export const setItems = (ipc, browserWindowId, items) => {
|
|
@@ -10,14 +11,12 @@ export const setItems = (ipc, browserWindowId, items) => {
|
|
|
10
11
|
state.ipcMap[browserWindowId] = ipc; // TODO memory leak
|
|
11
12
|
return ParentIpc.invoke('ElectronApplicationMenu.setItems', items);
|
|
12
13
|
};
|
|
13
|
-
export const handleClick = (browserWindowId, label) => {
|
|
14
|
+
export const handleClick = async (browserWindowId, label) => {
|
|
14
15
|
const ipc = state.ipcMap[browserWindowId];
|
|
15
16
|
if (!ipc) {
|
|
16
17
|
return;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
params: [label],
|
|
22
|
-
});
|
|
19
|
+
// TODO this might fail, e.g. when window closes before
|
|
20
|
+
// a response can be returned, creating a possible promise memory leak
|
|
21
|
+
await JsonRpc.invoke(ipc, 'TitleBar.handleElectronMenuClick', label);
|
|
23
22
|
};
|
|
@@ -3,6 +3,6 @@ import { getHeapSnapshot } from 'node:v8';
|
|
|
3
3
|
import { pipeline } from 'node:stream/promises';
|
|
4
4
|
export const createHeapSnapshot = async () => {
|
|
5
5
|
await pipeline(getHeapSnapshot(),
|
|
6
|
-
// TODO get tmp dir from env
|
|
6
|
+
// TODO get tmp dir from env or pass it as parameter
|
|
7
7
|
createWriteStream(`/tmp/vscode-${Date.now()}.heapsnapshot`));
|
|
8
8
|
};
|
package/src/parts/Os/Os.ipc.js
CHANGED
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.70.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2026-01-
|
|
44
|
+
export const version = '0.70.4';
|
|
45
|
+
export const commit = '8c1fe09';
|
|
46
|
+
export const date = '2026-01-06T09:18:56.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as Process from './Process.js';
|
|
2
|
-
export const name = 'Process';
|
|
3
2
|
export const Commands = {
|
|
4
|
-
crash: Process.crash,
|
|
5
|
-
crashAsync: Process.crashAsync,
|
|
6
|
-
getArch: Process.getArch,
|
|
7
|
-
getNodeVersion: Process.getNodeVersion,
|
|
8
|
-
getPid: Process.getPid,
|
|
9
|
-
getV8Version: Process.getV8Version,
|
|
10
|
-
kill: Process.kill,
|
|
3
|
+
'Process.crash': Process.crash,
|
|
4
|
+
'Process.crashAsync': Process.crashAsync,
|
|
5
|
+
'Process.getArch': Process.getArch,
|
|
6
|
+
'Process.getNodeVersion': Process.getNodeVersion,
|
|
7
|
+
'Process.getPid': Process.getPid,
|
|
8
|
+
'Process.getV8Version': Process.getV8Version,
|
|
9
|
+
'Process.kill': Process.kill,
|
|
11
10
|
};
|