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
{{ message }}
Repository navigation
JSON default snippets should respect indentation in file #19508
changed the title [-]Add Configuration messes with tabs and spaces and formats incorrect[/-][+]JSON default snippets should respect indentation in file[/+]on Feb 1, 2017
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.
When inserting snippets json schema should respect the indentation of the file, thus forwarding to Martin Aeschlimann (@aeschli)
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
Activity
[-]Add Configuration messes with tabs and spaces and formats incorrect[/-][+]JSON default snippets should respect indentation in file[/+]isidorn commentedon Feb 1, 2017
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.
When inserting snippets json schema should respect the indentation of the file, thus forwarding to Martin Aeschlimann (@aeschli)
aeschli commentedon Feb 7, 2017
Insertion of snippets is done in the SnippetControler. It is my understanding that the code there applies the correct indentation and indentation characters.
jrieken commentedon Feb 21, 2017
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
jrieken commentedon Feb 21, 2017
weinand commentedon Nov 16, 2017
This sounds like a bug to me.