Open kevinvngo opened 6 years ago
@AbbiePetcht said: "You can create your own context provider similar to isCloud (C:\Repro\sqlopsstudio\extensions\mssql\src\contextProvider.ts) It will call back on onDashboardOpen"
Once we create a context, can we make it universal to keep it consistent? Something like "isSqlDB" and "isSqlDW"?
For edition and SQL version, Boolean contexts may not be as useful as string / numerical. So returning edition name (enterprise / standard / DW) will require fewer conditions for the majority of extensions. We should consider which flags should be baked in - common examples are provider (already done), isCloud, version, DB Compat Level, edition. Let’s think for instance how an extension could show support for ManagedInstance features without needing its own special flag and I think we’ll get to the best answer quickest here.
Enable a flag in the JSON file to show widgets only if the connection is to a Azure SQL DW since DW queries will fail against an Azure SQL DB