-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Support configuration contribution points of resolver extensions #224236
Comments
Assigning to August for investigation. |
I changed the default of |
The setting is registered. Repro is a little annoying since it requires an extension doing the resolution of the remote.
|
Thanks for the steps. I can confirm that the setting is not yet registered at the time when you are accessing this setting in your extension. Your extension (remote resolver) is accessing this setting while resolving the authority and I suspect, contribution points of this extension are not read/handled yet. @alexdima Can you please confirm if this is true. |
Yes, this is an old issue since we first did remotes #88044 . Extension points are not handled until after the resolver resolves. In code:
There are some historical reasons behind it, I think back then we did not support disabling extensions without a window reload, so the extension points themselves were not ready for an extension point removal. It also did not seem to be so bad of an issue because the only affected extensions would be our resolver extensions and they mostly suffered when reading their own default configs, which they should normally know since they contribute their extensions. But it looks like you have a new pattern where an embedder is driving the resolver's default config value, which makes the initial issue more severe. I don't know if a workaround can be made in the configuration service to be able to give values for settings that don't have their schema registered @sandy081 or if we now must handle at least the resolver's extension points before resolving. If it's the latter, then @connor4312 maybe you can look into a PR. I think something must be added before invoking the resolver here which would potentially call |
I feel this allows misusing of the API for any random property. How about handling only |
Sure, I think either of these would work. |
This remains an important scenario for our friends at Azure Functions, is there any way we can figure a solution here? |
I will look into it this milestone/ |
@connor4312 This is fixed now. Please try it out in tomorrow's insiders and let me know if it works. |
Thanks so much! |
This bug has been fixed in the latest release of VS Code Insiders! @connor4312, you can help us out by commenting If things still don't seem right, please ensure you're on version 2ed1e9b of Insiders (today's or later - you can use Happy Coding! |
Friendly ping! Looks like this issue requires some further steps to be verified. Please provide us with the steps necessary to verify this issue. |
I would request @connor4312 to verify this as he has the set up and can also check if this is working for his scenario. |
Yep it works thanks! |
{ hello: "world" }
using the web API (e.g. here for the code-server.sh script)It seems like it should work because the overrides are registered here
vscode/src/vs/workbench/services/configuration/browser/configuration.ts
Lines 48 to 50 in 25dd3cf
before the MainThreadConfiguration is even instantiated, so I would expect they get passed during initial hydration here
vscode/src/vs/workbench/api/browser/mainThreadConfiguration.ts
Line 29 in 25dd3cf
...but they do not. I did some debugging myself but got a bit lost in config land.
Having these options is needed for a couple partner team feature asks.
The text was updated successfully, but these errors were encountered: