Skip to content
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

Fix #865 #868

Closed
wants to merge 43 commits into from
Closed

Fix #865 #868

wants to merge 43 commits into from

Conversation

protiumx
Copy link
Contributor

@protiumx protiumx commented May 2, 2019

Short description of what this resolves:

Fix #865

Changes proposed in this pull request:

Blackcatz1911 and others added 30 commits September 18, 2018 02:08
…sync pragmas. Should it support multiple spaces? Replacing settings.json content before writing file. Should be better removing lines instead of add comments? Replacing settings.json before upload to remove @sync ignore pragms.
…n every orther. Remove whitespaces before upload. Alert user if OS value is not a valid OS.
… Only insert comments if it doesn't match with matchine os or host or env. Uncomment line before write if it matched.
…ted. Get OS from OsType enum. Remove os.hostName()
…commas are removed. Must check this. If not valid OS is detected inform user. Added function to remove comments from text.
Get the local content and extract the ignored lines before writing the new settings. Add the ignored lines at the beginning of the settings object.
*Total -- 20.98kb -> 13.27kb (36.77%)

/images/slack.png -- 13.83kb -> 8.04kb (41.9%)
/images/cloud.png -- 7.15kb -> 5.23kb (26.84%)
Instead of replacing entires blocks, we will loop each line in the settings file. For each line we are checking if should be ignored or if comments must be toggled. There is a block of code that is repeated to ensure the readability of the code.
The pragma util keeps a copy of the settings that are upload to the
gist. The file is located at <context.globalStoragePath>/settings.sync.

If the content to be upload doesn't deffer from the local content after
taking out the @sync-ignore, the file wont be uploaded.
Checks the global storage path at constructor.
Checks if the content of the setting file should be uploaded.
@shanalikhan
Copy link
Owner

can you create new PR with your commits only ?

@protiumx
Copy link
Contributor Author

protiumx commented May 2, 2019

Yes, sorry about that

@protiumx protiumx closed this May 3, 2019
@protiumx protiumx deleted the 865 branch May 3, 2019 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants