We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In most functions, Zed adds the correct indentation when putting the cursor after the { and adding a newline
{
fn write(file: File, text: String) { | <- cursor here io.println("\"" <> text <> "\" -> " <> file.path) }
However, for this edge case, indentation is not applied:
fn write_to_file( path: String, file_actions: fn(File) -> Nil, ) -> Result(Nil, Nil) { | <- cursor here use file <- result.try(open_file(path)) file_actions(file) close_file(file) Ok(Nil) }
Something about the function signature being broken across multiple lines is problematic.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Check for existing issues
Describe the bug / provide steps to reproduce it
In most functions, Zed adds the correct indentation when putting the cursor after the
{
and adding a newlineHowever, for this edge case, indentation is not applied:
Something about the function signature being broken across multiple lines is problematic.
The text was updated successfully, but these errors were encountered: