Skip to content

Warning: Resource scoped settings are accessed without a resource #478

@egamma

Description

@egamma

From the Output>Log (Extension Host):

[2021-04-12 11:45:58.727] [exthost] [warning] [redhat.vscode-yaml] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[yaml]', provide the URI of a resource or 'null' for any resource.

To fix pls review where you access the configuration settings and verify that you pass in a resource when the scope of the setting is resource. See the scope section in https://code.visualstudio.com/api/references/contribution-points#Configuration-schema

There also is a sample that illustrates this https://github.com/microsoft/vscode-extension-samples/tree/main/configuration-sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions