Description
Describe the bug
The vscode extension sometimes emits diagnostic entries into the "Problems" area. These entries are missing the source
field - and this makes it difficult to determine that the reported problem originates from this extension here.
To Reproduce
In a Spring Boot project, create an application.yaml file with this content:
---
performance:
max-internal-processing-concurrency: 10
Observe the rendering of the Problems entry created by this extension:
//exp: information on screen that flags this problem as a Spring Boot problem
//act: nothing suggests that this is a Spring Boot problem
Root cause is simply that, when emitting the diagnostic entry into the vscode host,
[{
"resource": " ... /src/main/resources/application.yml",
"owner": "_generated_diagnostic_collection_name_#5",
"code": "YAML_UNKNOWN_PROPERTY",
"severity": 4,
"message": "Unknown property 'performance'",
"startLineNumber": 2,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 12
}]
this extension fails to emit the source
field which vscode uses to flag the originator.
Please add unique identifying content into a source
field
Sample
A link to a GitHub repository with a minimal, reproducible sample.
Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.