@lvce-editor/process-explorer-worker 3.2.0 → 3.3.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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2467,8 +2467,9 @@ const getFocusedIndex = (oldFocusedIndex, visibleProcesses) => {
2467
2467
  const refresh = async state => {
2468
2468
  try {
2469
2469
  await initializeProcessExplorer(state.platform);
2470
- const rootPid = state.rootPid || (await invoke('ProcessId.getMainProcessId'));
2471
- const processes = await invoke('ListProcessesWithMemoryUsage.listProcessesWithMemoryUsage', rootPid);
2470
+ const includeElectronData = state.platform === Electron;
2471
+ const rootPid = state.rootPid || (await invoke('ProcessId.getMainProcessId', includeElectronData));
2472
+ const processes = await invoke('ListProcessesWithMemoryUsage.listProcessesWithMemoryUsage', rootPid, includeElectronData);
2472
2473
  const visibleProcesses = getVisibleProcesses(processes, state.collapsedPids, rootPid);
2473
2474
  return {
2474
2475
  ...state,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/process-explorer-worker",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",