VSCodeExtension
VSCodeExtension copied to clipboard
Incorrect extensionID provided to .NET Install Tool dependency
What is the current behavior?
When trying to define a dotnet installation path to the .NET Install Tool for Extension Authors dependency using the dotnetAcquisitionExtension.existingDotnetPath
setting with the extension id of SecretLab.yarn-spinner
is unrecognized.
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
- In visual studio code user settings add the following:
-
"dotnetAcquisitionExtension.existingDotnetPath": [{ "extensionId": "SecretLab.yarn-spinner", "path": "C:\\Program Files\\dotnet\\dotnet.exe" }]
-
- Open any yarn spinner project to activate the Yarn Spinner Extension
- You may need to restart Visual Studio Code if the extension has already been activated
- Observe the Output tab for
.NET Runtime
- It will not recognize the provided extensionId for the setting and try to acquire .NET
- Update the settings extensionId to just
yarn-spinner
- Relaunch Visual Studio Code
- Open any yarn spinner project to activate the Yarn Spinner Extension
- Observe the Output tab for
.NET Runtime
- It will recognize the extensionId and load the existing path, however this extensionId is inconsistent with the actual extension id of the yarn spinner extension which is
SecretLab.yarn-spinner
- It will recognize the extensionId and load the existing path, however this extensionId is inconsistent with the actual extension id of the yarn spinner extension which is
What is the expected behavior?
Using the extensionId of SecretLab.yarn-spinner
in settings should override the path for the .NET Install Tool instead of yarn-spinner
.
Please tell us about your environment:
- Extension Version: 2.2.119
Other information
Context: This issue was encountered due to .NET acquisition failing. Manually installing .NET and overriding the path for the .NET Install Tool using SecretLab.yarn-spinner
will always fail.
I found a stack trace which led me to this line in extension.ts which I noticed the extension id was just yarn-spinner
instead ofSecretLab.yarn-spinner
.
Possible Solution: I believe this issue can be fixed by changing the call to the .NET Install Tool to use the full extensionId.