-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Spaces and Tab indentation not reflecting in Snippet #15846
New issue
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
Comments
just here to add another example: {
"dependency block": {
"prefix": "dependency ",
"body": [
"dependency \"${1:name}\" {",
" config_path = \"${2:path}\"",
" mock_outputs_allowed_terraform_commands = [\"validate\"]",
" mock_outputs = {",
" ${3:key} = \"${4:value}\",",
" }",
"}",
"${0}"
],
"description": "Add a dependency block"
}
} and this is what comes out: dependency "name" {
config_path = "path"
mock_outputs_allowed_terraform_commands = ["validate"]
mock_outputs = {
key = "value",
}
} I tried to figure out the pattern on when indentation is respected and when not, but I couldn't discern anything 🤷🏻 |
This comment was marked as spam.
This comment was marked as spam.
Added comment under another issue #18481 (comment) |
I ran into this when trying to add snippets to the Ruby extension. |
Closing in favor of: Please 👍 upvote that issue and subscribe to track progress. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check for existing issues
Describe the bug / provide steps to reproduce it
I have seen some issues talking about snippets and indentation, but they are edge cases where spaces and tabs are working, but the line after the snippet doesn't indent or something similar, not about
or
\t
not working out the box.When running a snippet, spaces and/or tabs are not output. For example the below snippet:
Produces the below PHP code where there is no indentation at all.
Another nice to have would be that the snippet adheres to the tab stop that it was run on. Every time I run a snippet when tabed in it will remove any indentation and put the snippet against the left side.
Environment
Zed: v0.147.2 (Zed Preview)
OS: macOS 14.5.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
snippets.mp4
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: