-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Simplify scm/git data flow #5339
Conversation
|
@@ -71,9 +73,7 @@ export class GitRepositoryProvider { | |||
this.lazyRefresh(); | |||
}); | |||
|
|||
this._selectedRepository = await this.storageService.getData<Repository | undefined>(this.selectedRepoStorageKey); |
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.
Why did you remove it? It is done that git does not show empty UI before actual state is loaded.
It could be good idea to implement it in SCM generically.
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.
ScmRepository
is a class, so it won't be serialized in the StorageService
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.
Could we jsonize scmrepositor data and recover classes on reload from such data?
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.
ScmRepository
consumes handlers: https://github.com/theia-ide/theia/blob/71f277be8505b8e405e945854e07edc6c12f1200/packages/scm/src/browser/scm-service.ts#L201 that are not serialized
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.
ok, will have a look what can be done
Done |
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
@vinokurig I will merge your commits in a new PR and fix new issues (#5374, #5375) on the top. |
fixes #5295