mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
strict null checks azure (#11928)
* strict null checks azure * strict compilation * Fix compilation issues * Return empty arrays instead
This commit is contained in:
@@ -23,9 +23,12 @@ MenuRegistry.appendMenuItem(MenuId.DataExplorerContext, {
|
||||
|
||||
CommandsRegistry.registerCommand({
|
||||
id: openInAzureDECommandId,
|
||||
handler: (accessor, args: TreeViewItemHandleArg) => {
|
||||
handler: async (accessor, args: TreeViewItemHandleArg) => {
|
||||
const commandService = accessor.get(ICommandService);
|
||||
return commandService.executeCommand('azure.resource.openInAzurePortal', args.$treeItem.payload);
|
||||
const payload = args.$treeItem?.payload;
|
||||
if (payload) {
|
||||
commandService.executeCommand('azure.resource.openInAzurePortal', payload);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user