-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adopt to pre-release extension version support #1744
Comments
Hi @isidorn! I would love to adopt the new model, but I have a couple of questions: How would current GitLens (Insiders) users get opt-ed into this new version? And maybe most importantly GitLens stores certain data in global and workspace storage (and some global keys are synchronized) how can that data be migrated from the old to new version? FYI, the valuable data is stored in workspace storage (the global values aren't personalized so don't matter) |
@eamodio great! Let me try to answer:
@sandy081 can correct me if needed. Related discussion microsoft/vscode-remote-repositories-github#91 (comment) |
Actually we are also thinking to migrate storage but the migration would be a simple replace and not merging. It means, if user has both gitlens and gitlens insiders installed, we will replace state of gitlens extension with gitlens insiders state. |
@isidorn to your question on storage: GitLens stores a few things in global storage
GitLens also stores some user preferences and personalization/usage data in workspace storage
So losing that personalization/state would certainly not be desirable, but at the same time it would just cause aggravation, not "real" data loss. @sandy081 Thanks, a couple of questions. How would this work? For any storage migration would the user get to choose whether or not it happens? I would want to avoid the case where a user had tried the insiders version of GitLens (e.g. to test a bug fix, etc) but would then have their possibly more important GitLens stable data overwritten by the insiders data. I don't think just having both installed would be a good enough signal to overwrite the stable data with insiders -- enabled state IMO would need to be considered. But that gets more complicated for sure, as enabled state could be dependent on the workspace. And even enabled state might not be enough signal. Here is what I would propose:
Maybe in the last case, we could avoid prompting and just overwrite the data since it should be an edge/minority case (but since its destructive a prompt might be nice). |
I would prefer to migrate storage without any prompts as in most of the cases such a prompt is not helpful to decide and blocks migration. |
@sandy081 yeah, after going through it all, I think I agree that a prompt would just confuse more than help (and cause blocks as you mention). So with eliminating prompting, does the behavior of my proposed scenarios match what you are planning? |
@eamodio thanks for providing more details. I also agree no prompts would be best in this case. |
I will document the migration in the above issue Isidor mentioned. |
@eamodio Documented the migration in the linked issue - microsoft/vscode#140088. Please take a look |
@sandy081 I'm sure I'm missing something, but how does GitLens express that the storage should be migrated from GitLens (Insiders)? I don't see how that gets expressed - that linked issue just has an embedder api. |
@eamodio that is expressed in a private table which we will update once you tell us you are ready for the migration :) |
Ah, missed that part -- I thought I needed to do something to enable it (code-wise). Thanks! |
Hope for prerelease version. I set stable verison in |
This has been implemented |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hey @eamodio 👋
Refs: microsoft/vscode#15756
VS Code now supports pre-release extensions. Docs that should help: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
I know GitLens has a separate Insiders extension. Ideally you would adopt to our pre-release support and we would deprecate that other extension. VS Code can automatically migrate your existing GitLens Insiders users to the pre-release version of the extension once you have done the adoption.
Let me know what you think. Thanks!
The text was updated successfully, but these errors were encountered: