Importing a Thrift file
Importing
Section titled “Importing”File ▸ Import (Ctrl+I) then the .thrift file.
What you get
Section titled “What you get”Folders, and a complete API documentation: services, methods, structures
(struct), and enumerations — the latter being reusable as a value type
throughout the rest of the project.
It is useful as a reference alongside a service you call by some other means (an HTTP gateway, for instance).
Resolving includes
Section titled “Resolving includes”includes of neighbouring files are resolved, only within the same directory
as the imported file, and never beyond. Pasted content has no directory, so its
includes are ignored with a warning.
throws clauses are parsed but not exposed. Type references crossing several
includes are not resolved.