Tip
zed-thrift-next is an independent extension project and has no dependency relationship with zed-thrift
Caution
You cannot use both zed-thrift and zed-thrift-next simultaneously. Please uninstall the zed-thrift extension before installing zed-thrift-next
- Auto Completion
- Code Highlighting
- Syntax Checking
- Definition Jumping
- Code Formatting
The original zed-thrift extension has the following issues:
- It does not automatically download the
thriftlsservice, and there is no documentation indicating how to find the correctlspserver - The extension uses incorrect parameters, causing the
lspserver to fail to start even when trying two differentthriftservices - It only works for highlighting, but incorrect data leads to frequent errors
zed-thrift-next solves these problems by performing the following operations:
- Check if the user has already configured an existing
thriftserver; if so, use the user configuration without checking, downloading, or updating - Check if the user has installed the
thriftserver and configured it in$PATH; if so, skip checking, downloading, and updating - If the user has not installed the
thriftserver, automatically download it fromgithub - If an old version exists, automatically update and delete the old version to keep it up-to-date
Search for Thrift Next in zed to install
Make sure you have installed
rust, and it was installed and updated usingrustup, this is required byzed
- Download current project using
git clone - Open
zededitor, enter command:zed: install dev extension - In the opened window, select the current project directory
zed-thrift-nextextension downloads binary files fromgithub, you need to ensure network connectivity- Installing the extension will automatically download the
thriftlsbinary file, if it fails, try uninstalling and reinstalling - If installation cannot proceed due to network or other issues, you can manually download the binary file and place it in
$PATH, you can find the binary and download it here - You don't need to worry about the binary name issue, you can use
thriftlsor directly put the downloaded binary into$PATH, the extension will handle compatibility