@lvce-editor/renderer-process 30.65.1 → 30.65.2

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.
@@ -1493,6 +1493,18 @@ const track = (worker, startedIn = state$m.generation, trackedWorker) => {
1493
1493
  const remove$5 = worker => {
1494
1494
  workers$1.delete(worker);
1495
1495
  };
1496
+ const terminate$1 = id => {
1497
+ for (const [worker, metadata] of workers$1) {
1498
+ if (metadata.id !== id) continue;
1499
+ // The Workers view owns this worker. Keep it alive so it can finish the RPC
1500
+ // that requested termination and refresh the list.
1501
+ if (metadata.name === 'Workers View Worker') return false;
1502
+ workers$1.delete(worker);
1503
+ worker.terminate();
1504
+ return true;
1505
+ }
1506
+ return false;
1507
+ };
1496
1508
  const getWorkers$1 = () => workers$1.values().toArray();
1497
1509
  const terminateAll = () => {
1498
1510
  state$m.generation++;
@@ -11850,6 +11862,7 @@ const readMicLevels = options => {
11850
11862
  };
11851
11863
 
11852
11864
  const getWorkers = getWorkers$1;
11865
+ const terminate = terminate$1;
11853
11866
 
11854
11867
  const commandMap = {
11855
11868
  'ApplicationHost.fileSaved': fileSaved,
@@ -11994,6 +12007,7 @@ const commandMap = {
11994
12007
  'WindowTitle.set': set$1,
11995
12008
  'Workbench.setModernUi': setModernUi,
11996
12009
  'Workers.getWorkers': getWorkers,
12010
+ 'Workers.terminate': terminate,
11997
12011
  'Workspace.setUri': setUri
11998
12012
  };
11999
12013
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.65.1",
3
+ "version": "30.65.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"