mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-plugin-server: update for throwing SwiftSyntax API (#78114)
Depends on https://github.com/swiftlang/swift-syntax/pull/2915 The `main` method on `CompilerPluginMessageListener` can synchronously clean up resources that cannot be dealt with in a deinitializer due to possible errors thrown during the clean up. Usually this includes closure of file handles, sockets, shutting down external processes and IPC resources set up for these processes, etc.
This commit is contained in:
@@ -21,6 +21,6 @@ final class SwiftPluginServer {
|
||||
connection: connection,
|
||||
provider: LibraryPluginProvider.shared
|
||||
)
|
||||
listener.main()
|
||||
try listener.main()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user