@velarscript/desktop 0.11.1 → 0.12.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.
@@ -689,8 +689,6 @@ private final class NodeCapabilityHost {
689
689
  }
690
690
  switch event {
691
691
  case "process-owned":
692
- fallthrough
693
- case "language-server-owned":
694
692
  guard let pid = object["pid"] as? Int, pid > 0, pid <= Int(Int32.max),
695
693
  processOwners[handle] == nil,
696
694
  generation == activeGeneration || pending.values.contains(where: { $0.identity.generation == generation }) else {
@@ -698,21 +696,7 @@ private final class NodeCapabilityHost {
698
696
  return
699
697
  }
700
698
  processOwners[handle] = ProcessOwner(pids: [pid_t(pid)], generation: generation)
701
- case "terminal-owned":
702
- guard let values = object["pids"] as? [Int], values.count == 2,
703
- Set(values).count == values.count,
704
- values.allSatisfy({ $0 > 0 && $0 <= Int(Int32.max) }),
705
- processOwners[handle] == nil,
706
- generation == activeGeneration || pending.values.contains(where: { $0.identity.generation == generation }) else {
707
- fail("Desktop Node capability host returned an invalid terminal owner")
708
- return
709
- }
710
- processOwners[handle] = ProcessOwner(pids: values.map(pid_t.init), generation: generation)
711
699
  case "process-settled":
712
- fallthrough
713
- case "language-server-settled":
714
- fallthrough
715
- case "terminal-settled":
716
700
  guard let owner = processOwners[handle], owner.generation == generation else {
717
701
  fail("Desktop Node capability host settled an unknown process owner")
718
702
  return