redhat-developer / vscode-xml

Editing XML in Visual Studio Code made easy
Eclipse Public License 2.0
256 stars 79 forks source link

Extension issue: Cannot register 'redhat.telemetry.enabled'. This property is already registered. #591

Open masoivn opened 3 years ago

masoivn commented 3 years ago

:warning: We have written the needed data into your clipboard. Please paste! :warning:

Errors: Cannot register 'redhat.telemtry.enabled'. This property is alerady registered.

rgrunber commented 3 years ago

I believe this is a known issue, regarding how VS Code deals with extensions contributing the same setting. We use vscode-redhat-telemetry for optional telemetry, and as per https://github.com/redhat-developer/vscode-redhat-telemetry#contribute-the-redhattelemetryenabled-preference , we define the setting in our package.json. However, if other extensions also define it, then this is where that warning is coming from. I don't believe it affects the functionality of anything, but simply fails to register the property as there is no need.

Do you have other extensions such as vscode-java, vscode-yaml, vscode-quarkus that might also have support for the same capability ?

ZzZombo commented 3 years ago

VS Code reports the extension as unresponsive on the running extensions page, at the same time it also says that the extension couldn't register this property, so I can't help but wonder if this error has anything to do with that?

rgrunber commented 3 years ago

xml-property-already-defined

In my case, I occasionally see the warning as a notification and other times not. However I consistently see it in the running extensions page. The extension itself does activate without issue though. @angelozerr are you able to reproduce the unresponsive behaviour ?

The additional extensions I needed to produce this were from Quarkus, which I installed first.