quarto-dev / quarto-dev/quarto
When getting VSCode configuration, scope should be set to uri or null
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
There are many places where vscode.workspace.getConfiguration() is used without defining the scope.
This raises a lot of warning in the extension host console.
The simple fix is to at least set the scope to null if no specific configuration scope is to be looked for.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[r]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[latex]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[dot]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[mermaid]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[lua]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[quarto]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[xml]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[xsl]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[dtd]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[svg]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.270 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[scminput]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.272 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[rmd]', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:08.272 [warning] [quarto.quarto] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[typescript]', provide the URI of a resource or 'null' for any resource
Note that some might come from some automation to get configuration for various languages.
FYI, the main issue is the number of warnings (the above is only a subset, there are others) as some native extensions also has those to a less extent.
2025-01-19 15:45:21.167 [warning] [vscode.git] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'git.blame.statusBarItem.enabled', provide the URI of a resource or 'null' for any resource.
2025-01-19 15:45:21.167 [warning] [vscode.git] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'git.blame.statusBarItem.template', provide the URI of a resource or 'null' for any resource.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the repository for uses of the VS Code getConfiguration() API, including the calls that gather configuration for languages and the Quarto extension. Determine which calls need a URI and which should use null, then verify that the reported extension-host warnings no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100