-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
[WIP] - [EXPERIMENTAL] Multiple instance support #847
Conversation
commons.ts ---- Instantiate autoUploadService with context Return null instead of setting variable to null and returning it lockfile.ts ---- Check if file exists to prevent unnecessary writes and potential issues settings.ts ---- Ignore all state files sync.ts ---- Catch errors with lock file Remove unnecessary code that might cause issues autoUploadService.ts ---- Add unique id for original instance Only allow original instance to auto upload Catch errors with lock file Wait for update settings to finish before unlocking package.json ---- Add @types/lockfile for better autocompletion
would it be possible to signal the other instances that there has been an update and to trigger a download on the other instances? |
@k1nghat This PR only has to do with auto upload. Downloading is not affected by any of the changes proposed here. |
@arnohovhannisyan do you think we can improve further on this PR ? Or should i go ahead and merge it. |
@shanalikhan it definitely needs more work. |
What do you suggest, can we include this in release of |
@shanalikhan If there are no issues after testing, then yes. |
@shanalikhan I'm going to open a new PR with these changes because this one currently has old code from v3.2.9. |
Short description of what this resolves:
This PR fixes issues with multiple instances running at the same time.
Changes proposed in this pull request:
Fixes: #839
How Has This Been Tested?
I have tested it by installing it and running multiple instances of VS Code. However, I could have missed something, so it needs a lot more testing before even thinking about merging it.
Checklist: