-
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
Workspace configuration that is registered by a VSCode plugin sometimes doesn't take effect #6046
Comments
It seems that it only happens for the first time the configuration is read. So if you make some changes to the workspace configuration and the plugin has a preference-changed listener, the re-read configuration would be valid. PS. The preference system is just so complicated and very difficult to diagnose. And the fact that |
@a1994846931931 it is possible, see #3251 (comment) let me know if you need a help to get it running |
@akosyakov Sorry, I mean debugging source code under |
Which file? These source code runs in 3 different processes:
|
Diagnostic Update:For workspace configurations, they are provided by This explains why this issue happens only:
Another interesting phenomenon is that, although user configuration is provided by ProposalNow that the cause of the problem is clear, the question of, how we should solve it, remains. I've attempted to solve it by adding schema-changed events So my proposal would be that, just remove https://github.com/theia-ide/theia/blob/1e67e74498a369c4665b28afd64e91ec5f6e0133/packages/preferences/src/browser/abstract-resource-preference-provider.ts#L154-L157. After all, it only works for |
… extension and provided by .theia/settins.json is sometimes wrongly filtered out Signed-off-by: Cai Xuye <a1994846931931@gmail.com>
Updated Reproduction Steps
|
…d provided by .theia/settins.json is sometimes wrongly filtered out Signed-off-by: Cai Xuye <a1994846931931@gmail.com>
Description
Sometimes, VSCode plugin registered configurations doesn't work in workspace (user configuration does work, though). No error or warning is shown in the setting widget and everything seem to work nicely expect that the workspace configuration is actually ignored. It seems that these configuration is wrongly filtered.
Reproduction Steps
This issue is kind of hard to reproduce. For one thing, it only happens in some VSCode plugins, for example,
cpptool
. For another, it doesn't always happen to them. So probably you need to try several times before it happens./tmp/vscode-unpacked/cpptool*
before restarting the background) or other VSCode plugins you want to test;There is another thing that I found interesting (or, weird) - the issue does not happen if all editors are closed. That is, it happens only when one or more files are opened.
Updated Reproduction Steps
Try reproduce by
#6046 (comment)
OS and Theia version:
Theia: 0.9.0
OS: Ubuntu
Diagnostics:
None.
The text was updated successfully, but these errors were encountered: