Closed skhaz closed 1 week ago
Does this have anything to do with the maximum line length in your settings perhaps? I would assume Zed is using the one and only standard Go formatter.
It was my mistake, the line should be
if err = h.DB.QueryRow("SELECT id, error, ready FROM data WHERE url = ? LIMIT 1", payload.Url).Scan(&id, &error, &ready); err != nil {
Check for existing issues
Describe the bug / provide steps to reproduce it
Create a go file with something similar to:
Watch Zed simply ignore the Go language convention and move the
if err != nil
to a new line, which is wrong!VSCode does not do that.
Environment
Zed: v0.133.7 (Zed) OS: macOS 14.4.1 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response