-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
JSON default snippets should respect indentation in file #19508
Comments
Currently each debug extension contributes these snippets but the formating is done in the JSON world. To be more precise, each of these snippets is a default snippet in a json schema. |
Insertion of snippets is done in the SnippetControler. It is my understanding that the code there applies the correct indentation and indentation characters. |
The snippet controller takes the indentation of the cursor and massages the snippet according to that. It seems like the 'Add Configuration' command doesn't always adjust the cursor properly before insert the snippet, for instance when at column 0 |
This sounds like a bug to me. |
Steps to Reproduce:
You get
The text was updated successfully, but these errors were encountered: