Skip to content

Conversation

@datho7561
Copy link
Contributor

@datho7561 datho7561 commented Oct 9, 2025

What does this PR do?

A scope should be provided when accessing [yml] settings, otherwise a warning is emitted. This change provides file:/// as the scope.

What issues does this PR fix or reference?

Fixes redhat-developer/vscode-yaml#972

Is it tested? How?

Yes; verified manually that the warning goes away in VS Code.

@coveralls
Copy link

coveralls commented Oct 9, 2025

Coverage Status

coverage: 83.961%. remained the same
when pulling 534776b on datho7561:no-scope-warning
into 67ecad2 on redhat-developer:main.

@datho7561
Copy link
Contributor Author

I should test that setting the scope to file:/// works on Windows, but unfortunately I don't have access to my Windows computer today.

@fbricon
Copy link
Contributor

fbricon commented Dec 2, 2025

sending file:/// seems wrong. The error message from redhat-developer/vscode-yaml#972 says:

provide the URI of a resource or 'null' for any resource.

so I would use null

@datho7561
Copy link
Contributor Author

I double checked on Windows, and this doesn't fix the problem there, but it also doesn't cause any new problems there.

@fbricon
Copy link
Contributor

fbricon commented Dec 2, 2025

Tested on my mac with :

scopeUri: null

problem remains, but with:

scopeUri: 'null'

warnings are gone, and [yaml] section settings are still picked up.

@datho7561
Copy link
Contributor Author

I'll try it on Windows and push the change if it works

A scope should be provided when accessing `[xml]` settings,
otherwise a warning is emitted.
This change provides `file:///` as the scope.

Fixes redhat-developer/vscode-yaml#972

Signed-off-by: David Thompson <davthomp@redhat.com>
@fbricon fbricon merged commit d17039f into redhat-developer:main Dec 3, 2025
4 checks passed
@fbricon
Copy link
Contributor

fbricon commented Dec 3, 2025

thanks @datho7561

@datho7561 datho7561 deleted the no-scope-warning branch December 3, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource scoped settings are accessed without a resource

3 participants