You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating an interface for a Swift module or a file as part of the OpenInterfaceRequest, we currently refer to it as a Swift Interface, which isn’t technically true. .swiftinterface files are distributed as part of library evolution, while the generated interfaces are generated by an IDE.
We should use correct terminology here and refer to the interfaces we produce in sourcekit-lsp as Generated Interfaces, not Swift Interfaces.
The text was updated successfully, but these errors were encountered:
- Rename methods to highlight that we’re talking about generated interfaces here, not `.swiftinterface` files
- Don’t open the generated interface in `documentManager`. Opening documents in `documentManager` should only be done by the `textDocument/didOpen` notification from the LSP client. Otherwise we might indefinitely keep the document in the document manager
- After getting the generated interface from sourcekitd, close the document in sourcekitd again. We don’t provide semantic functionality in the generated interface yet, so we can’t interact with the generated interface path. Before, we left it open in sourcekitd indefinitely.
- A couple of code simplifications.
Fixesswiftlang#878
rdar://116705653
When generating an interface for a Swift module or a file as part of the
OpenInterfaceRequest
, we currently refer to it as a Swift Interface, which isn’t technically true..swiftinterface
files are distributed as part of library evolution, while the generated interfaces are generated by an IDE.We should use correct terminology here and refer to the interfaces we produce in sourcekit-lsp as Generated Interfaces, not Swift Interfaces.
The text was updated successfully, but these errors were encountered: