I'm curious about the "when" property I only want to show queries on databases with a specific name. Any chance I can filter on that my attempts to add a filter for database have met with failure. For example one pattern I tried was "when": "mssql:database=='HealthCheck'",
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@jamesstead - thank you for submitting. We'll take a look.
@jamesstead Took me a bit to figure this out but here are the variables you can use.
https://docs.microsoft.com/en-us/sql/azure-data-studio/extensibility?view=sql-server-2017#dashboard
So in your case this should work.
"when": "databaseName == 'HealthCheck'",
@mtcoope - thanks for jumping in with a reply!
@jamesstead - Since this isn't an actual issue with the article I'm going to close this one. Thanks!
@markingmyname - FYI
Thanks so much this works great @mtcoope