mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.5k stars 302 forks source link

Let drivers implement a `resolveConnection` function #1058

Closed gjsjohnmurray closed 1 year ago

gjsjohnmurray commented 1 year ago

This PR enhances the interface between this extension and its drivers, allowing a driver to specify a callback function that will be invoked after this extension retrieves connection information from user/workspace settings but before those settings are sent to the language server part of the driver.

Use-cases include drivers that want to look up credentials from secure storage before sending them to the target server.