Skip to content

Can not get third party extension setting options by PreferenceService #14078

Answered by msujew
wss29 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @wss29,

I'm not sure waiting until the preference service is ready is enough - the backend registers the extension preferences with a bit of delay in the frontend. You probably need to wait until the HostedPluginSupport#didStart promise is ready:

@inject(HostedPluginSupport)
private readonly hostedPluginSupport: HostedPluginSupport;
...
await this.preferenceService.ready;
await this.hostedPluginSupport.didStart;
const exist = this.preferenceService.get('clangd.path');

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wss29
Comment options

Answer selected by wss29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants