Skip to content

Importing a Thrift file

File ▸ Import (Ctrl+I) then the .thrift file.

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).

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.