-
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
Incorrect conversions from null
to undefined
in new RPC
#11392
Comments
Attn: @JonasHelming, @tortmayr |
1 task
tortmayr
added a commit
to eclipsesource/theia
that referenced
this issue
Jul 8, 2022
tortmayr
added a commit
to eclipsesource/theia
that referenced
this issue
Jul 8, 2022
Fixes eclipse-theia#11392 Contributed on behalf of STMicroelectronics
1 task
tortmayr
added a commit
to eclipsesource/theia
that referenced
this issue
Jul 8, 2022
Fixes eclipse-theia#11392 Contributed on behalf of STMicroelectronics
JonasHelming
pushed a commit
that referenced
this issue
Jul 11, 2022
Fixes #11392 Contributed on behalf of STMicroelectronics
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description:
In certain cases,
null
values from the backend are appearing on the frontend asundefined
.Steps to Reproduce:
vscode-lldb
plugin.startRpcServer
.You can also use this plugin (source). Assuming you have not set the preference
peaSoup.secretIngredients
, running the commandAccess a (probably) non-existent preference
should show a toast with the default valuenull
, but on master it shows[]
.Additional Information
The relevant preference is defined here with a default of
null
. However, when the plugin's data is transmitted to the frontend, thatnull
becomesundefined
, and we enter this code:theia/packages/core/src/browser/preferences/preference-contribution.ts
Lines 248 to 271 in 84b317a
Because the preference is typed as
["object", "null"]
, that method returns a default of{}
rather than the configured default ofnull
.I have confirmed that
null
is present here, but becomesundefined
when received here.The text was updated successfully, but these errors were encountered: