vscode-extension-json-helperJSON Helper utilities - https://marketplace.visualstudio.com/items?itemName=GabeGates.json-utility-helper This project will be used a learning project for myself, I will add new features when I have the spare time. Look forward to any feedback. CommandsJSON SanitizeWill use selected text if found, otherwise will use the entire active tab's text. If the JSON is invalid a message will appear indicating this. If the JSON is valid the command recursively traverses the object deleting null, empty object and empty array properties. SetupI am using docker to contain node, so I don't need to install anything specific locally. If you do not have docker and have node installed locallyopen the terminal navigate to the root of the project folder then try a If you have docker / docker-compose / docker vscode extension
Debug / RunNow that the setup is complete lets test/run our extension. Open extension.js in vscode, then hit the F5 key which will open a debug window. Next open the command pallette Ctrl+Shift+P then run the JSON Sanitize command PublishFor this you will need to terminal into the docker container's shell. If you do not have a publisher run the following, then answer the questions. This requires a personal acces token to be created at dev.azure.com
Ensure git is setup properly git config --global user.email "you@example.com" git config --global user.name "Your Name" Then to publish use, take note that patch could be replaced with minor or major. This simply update the version for us automatically.
|