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

fix the workspace pref not being applied on change #5498

Merged
merged 2 commits into from
Jun 26, 2019

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Jun 17, 2019

fix the workspace pref not being applied on change

  • FolderPreferenceProvider should be associated with PreferenceScope.Workspace when it is used as a delegate of WorkspacePreferenceProvider in a one-folder workspace, otherwise changes made to the workspace preferences would not be applied to the IDE.
  • fixed Not all changes to workspace preference take effect #5446

Signed-off-by: elaihau [email protected]

added WorkspaceService.isMultiRootWorkspaceEnabled()

Signed-off-by: elaihau [email protected]

Copy link
Contributor

@lmcbout lmcbout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. For the breaking changes, it seems fine, but wait to see other comments about it

@elaihau
Copy link
Contributor Author

elaihau commented Jun 19, 2019

@akosyakov Are you fine with me merging this one for 0.8 release. This is a small PR, but in my opinion, it fixes a bug that users could easily hit.

@elaihau
Copy link
Contributor Author

elaihau commented Jun 25, 2019

@svenefftinge Since Anton is not available this week, could you please take a quick look at this line and confirm if you are OK with the breaking change? Thank you !

Could you please also advise if you happen not to be available, so that I can ask someone else for his/her opinion?

@kittaakos kittaakos self-requested a review June 25, 2019 14:06
@kittaakos
Copy link
Contributor

Is this the correct behavior?

  • I have the Git decorations enabled in both the user and the workspace preferences. The labels are blue 👍
  • When I disable the workspace one the user setting seems to be ignored. The Git label decoration is off 😞

I had the multi-workspace support as the defualt: false.

screencast 2019-06-26 09-44-26

elaihau added 2 commits June 26, 2019 09:53
- FolderPreferenceProvider should be associated with PreferenceScope.Workspace when it is used as a delegate of WorkspacePreferenceProvider in a one-folder workspace, otherwise changes made to the workspace preferences would not be applied to the IDE.
- fixed eclipse-theia#5446

Signed-off-by: elaihau <[email protected]>
@elaihau
Copy link
Contributor Author

elaihau commented Jun 26, 2019

Is this the correct behavior?

  • I have the Git decorations enabled in both the user and the workspace preferences. The labels are blue +1
  • When I disable the workspace one the user setting seems to be ignored. The Git label decoration is off disappointed

I had the multi-workspace support as the defualt: false.

screencast 2019-06-26 09-44-26

Thank you for the review @kittaakos ! The problem has been fixed and code updated.

Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried it again; it worked as expected. Thank you for the fix, @elaihau 👍

@elaihau elaihau merged commit a35f284 into eclipse-theia:master Jun 26, 2019
@elaihau elaihau deleted the ws_pref_fix branch June 26, 2019 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants