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
In Visual Studio Code, type CTRL + , to open the settings.json file
On the right pane within the curly braces on a new line (e.g., the user settings), type //This is a test
Type CTRL + S to save the settings.json file
Follow the steps "Connect to SQL Server" as described in tutorial to create a new valid connection
In Visual Studio Code, type CTRL + , to open the settings.json file
Observe that the comment line has been removed
The text was updated successfully, but these errors were encountered:
heresmike
changed the title
Creating connection profile through command palette formats, removes all comments from settings.json
Creating connection profile through command palette will format and remove all comments from settings.json
Jul 25, 2017
heresmike
changed the title
Creating connection profile through command palette will format and remove all comments from settings.json
Creating connection profile through command palette will format and remove all comments from user setttings in settings.json
Jul 25, 2017
@madlovin do you know if this just started occurring in 1.1? I think this is likely due to the fact we read in all the JSON and use a serializer to print it out again. That's where we're losing comments. We have some work tagged for the next release to start using the VSCode APIs for reading/writing settings again, which should help with this overall. We can take a look at this when doing that.
Steps to Reproduce:
CTRL + ,
to open the settings.json file//This is a test
CTRL + S
to save the settings.json fileCTRL + ,
to open the settings.json fileThe text was updated successfully, but these errors were encountered: