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

Preferences are not considered at startup on already opened files #836

Closed
mrussmann opened this issue Oct 7, 2019 · 15 comments
Closed

Preferences are not considered at startup on already opened files #836

mrussmann opened this issue Oct 7, 2019 · 15 comments
Assignees
Labels
type: bug Something isn't working

Comments

@mrussmann
Copy link

Describe the bug
Preferences are not considered at startup on already opened files.

To Reproduce
Switch eg. codelense in your preferences off, adjust fontsize in your preference file.
Open some files, restart workspace, on already opened files codelense is switched on again and the fontsize is set to default.
Close the files and reopen everything is ok.

Expected behavior
Preferences are also considered on already opened files.

@JesterOrNot
Copy link
Contributor

What's the link to the repo that might help

@mrussmann
Copy link
Author

on all my workspaces! I am currently writing java code. Just switched codelense off and did a simple reload of the workspace in the browser -> after the reload codelense is on and the font size is extremly small.

@JesterOrNot
Copy link
Contributor

So what is the issue? could you explain it in more detail?

@mrussmann
Copy link
Author

switch code lense off - can you do that?

@mrussmann mrussmann reopened this Oct 7, 2019
@mrussmann
Copy link
Author

easier example: put this in your pref file:
"editor.fontSize": 22, <- which is big
then open a code file, size should be set to 22,
then do a browser reload,
the font size is the default font size, not 22

@JesterOrNot
Copy link
Contributor

in your user preferences is autosave on? it's possible that you didn't save the settings so when you refreshed the changes did not persist

@mrussmann
Copy link
Author

the pref is saved, it is persistent, it only happens on a browser reload and on workspace startup when the files are already opened. it worked before the update last week. have you tried it?

@JesterOrNot
Copy link
Contributor

I see

@jankeromnes jankeromnes added the type: bug Something isn't working label Oct 8, 2019
@jankeromnes
Copy link
Contributor

@mrussmann sorry about that problem, and thank you for reporting it. Also, thank you @JesterOrNot for helping reproduce the bug.

@AlexTugarev could you please look into this if you have some time? 🙂

@AlexTugarev
Copy link
Member

Sounds like a bug in Theia. Thanks for reporting!

@mrussmann
Copy link
Author

any news on this? after a reload or a restart the font size of the opened files is nearly unreadable.

@JesterOrNot
Copy link
Contributor

Should this issue be refiled against theia and if so can we close this issue

@svenefftinge
Copy link
Member

There seems to be a race where the editors are not updated once the preferences are initialized.

@svenefftinge
Copy link
Member

I have fixed it in Theia. eclipse-theia/theia#6450
Will land in Gitpod in a couple of days.

@svenefftinge
Copy link
Member

In production now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants