-
-
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
[Done] Improve compatibility with different versions of VSCode #859
Conversation
enums.ts ---- Allow for setting os type with less code environmentPath.ts ---- Find code folder and extensions folder more efficiently Get OS type more efficiently settings.ts ---- Ignore all state files sync.ts ---- Adapt for changes in pluginService pluginService.ts ---- Use vscode command to install extensions Clean up code and simplify names
Thanks for the work so far.
lets complete this PR, after code review we will ask the users there to test by providing the custom build in that thread for OSS version before merging. Also please comment this code as of now instead of removing I will suggest you to comment each of the old code in each functions in that function code comment block for the |
VSCodium user here, can you provide some instructions so I can test this? I'm pretty new to the VSC ecosystem, so if you could provide a prebuilt version of the extension and how to install it would be great. Thanks! |
@roobre Here is a prebuilt version of this PR: https://cdn.discordapp.com/attachments/549007146868539408/572557047439032330/code-settings-sync-3.2.9.vsix
Instructions can be found here on how to install the VSIX file: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix |
Done, but it's still not working for me on VSCodium. The upload is just fine, but after entering the token and gist id on the other side, and clicking Yes in the extension install prompt, nothing happens. Where can I can find a detailed log of why is it failing? Maybe that would be helpful. |
@roobre are you getting anything in the console? You can find it under Help -> Toggle Developer Tools. |
So, strangely, I tried to reproduce everything with the console open and now it is working (extensions are correctly installed). Thanks! However, whenever I try to update the changes on the receiving side, a new gist is created instead of updating the one that was used to sync in the same place. This does not happen on the VSC instance that first updated the settings. |
@roobre Here is an updated version with some issues with extension installation hopefully fixed. If you could test it, that would be great! |
Should I test the current link or wait for a more recent version with the new commits applied? Thanks! |
I think it's okay now. Thanks. |
@roobre sorry for the late reply. Can you try this version? Installing extensions should work, but uninstallation has yet to be implemented. Thanks! https://cdn.discordapp.com/attachments/549007146868539408/576214978931982336/code-settings-sync-3.2.9.vsix |
@arnohovhannisyan I have done a simple test and seems to be working good so far in VSCodium. Thanks! Update: Seems to be working good on the other end too! |
@shanalikhan Microsoft has released the May 2019 update, so this PR is complete and ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the required things. Code review is done.
I will test it and merge it in the coming days.
@shanalikhan Are you happy with my changes? Do you have any other requests for changes? |
Thanks. Merged. |
Okay this is some initial observation.
Please open new PR fixing this, linking with this PR and original issue. |
when do you think you can fix it? |
@shanalikhan I'll look into it as soon as I can. I'm just a bit busy at the moment. |
@shanalikhan I can't reproduce this issue on my machine. I have set up a portable version of VSCode and am debugging the extension with it, and everything works. Both removed and added extensions show up correctly. |
Can you try to throw manually exception regarding "Unable to remove some extensions". and see what happens in that case. Meanwhile i will test again. |
@shanalikhan Ok, I think I know what's causing some of these problems. If an error occurs during the deletion process, deletedExtensions is set to an error that is caught by the Can you test this version? It should throw the error so we can find out what's causing the deletion to fail. |
Exactly. i will try on home computer where it was not working properly and let you know. |
Before testing that one, another thing observed. Missing Extension List is incorrect. Please test on your end. Create new PR with the things you think we can fix and improve caused by this PR. I will let you know more observationsmeanwhile. Second Test Here is the output from the package you have provided.
|
@shanalikhan My new PR (#907) should fix both of these issues. I have tested them and they work just as expected. |
So, now 3.3.1 is officially released and published, it should work. : ) |
@tunnckoCore Yes Settings Sync supports all OSS versions now. |
Short description of what this resolves:
This PR simplifies finding the code configuration folders and uses the API to install/uninstall extensions.
Changes proposed in this pull request:
globalStoragePath
and by traversing 3 directories upFixes: #668
How Has This Been Tested?
I have tested this PR with the OSS version, VSCodium portable, and the official version (on Manjaro), and with the official version on Windows.
Checklist:
Progress: