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

Overhaul extension (WIP) #814

Closed
wants to merge 68 commits into from
Closed

Overhaul extension (WIP) #814

wants to merge 68 commits into from

Conversation

auxves
Copy link
Contributor

@auxves auxves commented Mar 31, 2019

Short description of what this resolves:

This PR adds support for repositories, adds a GUI for settings, and fixes auto upload.

Changes proposed in this pull request:

Fixes: 1
Improvements: 2

How Has This Been Tested?

I have tested almost everything the extension can do using the VSCode debugger, and everything worked as expected. However, I haven't tested features like sync pragmas and public gist

Screenshots (if appropriate):

Gist Settings
Repo Settings

Checklist:

  • I have read the contribution guidelines.
  • My change requires a change to the documentation and GitHub Wiki.*
  • I have updated the documentation and Wiki accordingly.*

* I haven't yet updated the wiki, but I have updated README.md

Current Progress:

  • Works with GitHub, BitBucket, and GitLab
  • Works with SSH keys
  • Allow the user to use either gist or repo
  • Set up repo if needed
  • Create a repository without user intervention
  • Use branches to store different profiles
  • Upload to a repository
  • Download from a repository
  • Properly ignore files using .gitignore
  • Auto upload fixed

Revert SaveGist() because it wasn't working properly
Always update gitignore with most recent ignored files and folders
This event would be called many times, so there would be lots of
functions being called. Now it is only called in the constructor and
only works when watching is true
This fixes an issue where uploading to gist would not upload
new extensions file
Add a colon after event to make it easier to differentiate between
events
This was detected as a change by git and uploaded even if the file
had not changed
@auxves auxves changed the title Overhaul extension Overhaul extension (WIP) Mar 31, 2019
@auxves auxves mentioned this pull request Mar 31, 2019
3 tasks
@shanalikhan
Copy link
Owner

shanalikhan commented Mar 31, 2019

Thank you for your work so far. But Please stop, you are changing alot of things in one PR.
Settings Sync is being in 3 Million machines and it not feasible to just publish alot of changes in just a one PR.
As there are alot of test cases which is tested so far while developing this, any case might fail ends up not working to all of those users.

Move the watcher function into separate service and use chokidar

Lets use that PR and release that fix independently.

I will suggest you to solve these tickets in seperate PR instead of "complete overhual".
Look into those ticket items requirements seperately ( which is the acceptance requirement for those tickets , like how Git needs to be integrated with Settings sync. )

@auxves
Copy link
Contributor Author

auxves commented Mar 31, 2019

Ok, I will do that. The reason I did a complete overhaul was because a lot of the changes depended on each other. I added the settings page so it would be easier to change the new settings that adding repo support would bring.

@auxves auxves closed this Mar 31, 2019
@shanalikhan
Copy link
Owner

Great, Thanks.
Looking forward.

@auxves auxves deleted the git-repo branch June 2, 2019 21:04
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.

2 participants