@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.
- package/README.md +56 -214
- package/dist/build.d.ts +4 -12
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +11 -59
- package/dist/build.js.map +1 -1
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +4 -702
- package/dist/compiler.js.map +1 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -7
- package/dist/config.js.map +1 -1
- package/dist/host.js +1 -1
- package/dist/host.js.map +1 -1
- package/dist/package-host.d.ts.map +1 -1
- package/dist/package-host.js +2 -2
- package/dist/package-host.js.map +1 -1
- package/dist/test-runtime.d.ts.map +1 -1
- package/dist/test-runtime.js +0 -130
- package/dist/test-runtime.js.map +1 -1
- package/dist/worker.js +3 -545
- package/native/macos/VelarDesktopHost.swift +0 -16
- package/native/node/worker.js +19 -929
- package/package.json +4 -4
- package/native/macos/VelarTerminalHost.swift +0 -203
- package/native/node/project-transactions.js +0 -157
|
@@ -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
|