You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inline assistant outputs Elm code with shifted indentation under certain conditions
Steps to trigger the problem:
Write a minimal Elm function that has no doc comment above its signature
Select the body of the function
Ask the inline assistant to make an edit
Actual Behavior: The generated code is offset to the right (making the module invalid Elm code!)
Expected Behavior: The generated code should preserve the original indentation
This also seems to happen if the function has a doc comment the selected range contains the comment. This doesn't seem to happen if the function has a doc comment but the selection does not include it. Attaching a recording below.
zed-elm-indentation-bug.mov
My settings.json is really minimal (I started using Zed very recently), and I don't suspect anything there might cause this. I am observing this with both Zed and OpenAI as AI providers. This also happens regardless of whether I am using elm-language-server or not, or where I have format_on_save enabled or not.
Summary
Inline assistant outputs Elm code with shifted indentation under certain conditions
Steps to trigger the problem:
Actual Behavior: The generated code is offset to the right (making the module invalid Elm code!)
Expected Behavior: The generated code should preserve the original indentation
This also seems to happen if the function has a doc comment the selected range contains the comment. This doesn't seem to happen if the function has a doc comment but the selection does not include it. Attaching a recording below.
zed-elm-indentation-bug.mov
My settings.json is really minimal (I started using Zed very recently), and I don't suspect anything there might cause this. I am observing this with both Zed and OpenAI as AI providers. This also happens regardless of whether I am using
elm-language-server
or not, or where I haveformat_on_save
enabled or not.settings.json
Zed Version and System Specs
Zed: v0.176.3 (Zed)
OS: macOS 14.7.3
Memory: 32 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: