microsoft / vscode-cosmosdb

Azure Databases extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb
MIT License
155 stars 68 forks source link

Change API version to use ^ #2270

Closed nturinski closed 5 months ago

nturinski commented 5 months ago

When upgrading the resources API, there's an error being thrown due to the versioning demanding 0.0.1. Adding the ^ fixes that.

This pull request includes a change to the getApiExport<T> function in the src/getExtensionApi.ts file. The change updates the version parameter in the getApi function from a fixed version '0.0.1' to a version range '^0.0.1'. This allows the function to use any version that is compatible with version 0.0.1, rather than strictly using version 0.0.1. This change should make the function more flexible and resilient to future updates of the Azure Resource Groups extension.