Hide IoT Hub tree view from Azure viewlet (#442)
* Hide IoT Hub tree view from Azure viewlet * Update * Remove more
This commit is contained in:
Родитель
622d6dbbc7
Коммит
01b4c72228
51
package.json
51
package.json
|
@ -69,9 +69,6 @@
|
|||
"onCommand:azure-iot-toolkit.copyModuleConnectionString",
|
||||
"onCommand:azure-iot-toolkit.startMonitorCustomEventHubEndpoint",
|
||||
"onCommand:azure-iot-toolkit.stopMonitorCustomEventHubEndpoint",
|
||||
"onCommand:azure-iot-hub.setIoTHub",
|
||||
"onCommand:azure-iot-hub.loadMore",
|
||||
"onCommand:azure-iot-hub.refresh",
|
||||
"onCommand:azure-iot-dps.viewProperties",
|
||||
"onCommand:azure-iot-dps.loadMore",
|
||||
"onCommand:azure-iot-dps.refresh"
|
||||
|
@ -98,10 +95,6 @@
|
|||
{
|
||||
"id": "iotDpsExplorer",
|
||||
"name": "IoT Hub Device Provisioning Service"
|
||||
},
|
||||
{
|
||||
"id": "iotHubExplorer",
|
||||
"name": "IoT Hub"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -305,25 +298,6 @@
|
|||
"title": "%azure-iot-toolkit.command.stopMonitorCustomEventHubEndpoint.title%",
|
||||
"category": "%azure-iot-toolkit.category%"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.setIoTHub",
|
||||
"title": "%azure-iot-hub.command.setIoTHub.title%",
|
||||
"category": "%azure-iot-hub.category%"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.loadMore",
|
||||
"title": "%azure-iot-hub.command.loadMore.title%",
|
||||
"category": "%azure-iot-hub.category%"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.refresh",
|
||||
"title": "%azure-iot-hub.command.refresh.title%",
|
||||
"category": "%azure-iot-hub.category%",
|
||||
"icon": {
|
||||
"light": "resources/light/refresh.svg",
|
||||
"dark": "resources/dark/refresh.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-dps.viewProperties",
|
||||
"title": "%azure-iot-dps.command.viewProperties.title%",
|
||||
|
@ -411,11 +385,6 @@
|
|||
"when": "view == iotHubDevices",
|
||||
"group": "azure-iot-toolkit-0@1"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.refresh",
|
||||
"when": "view == iotHubExplorer",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-dps.refresh",
|
||||
"when": "view == iotDpsExplorer",
|
||||
|
@ -656,14 +625,6 @@
|
|||
"when": "view == iotHubDevices && viewItem == interfaces-label",
|
||||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.setIoTHub",
|
||||
"when": "view == iotHubExplorer && viewItem == IotHub"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.refresh",
|
||||
"when": "view == iotHubExplorer && viewItem == azureextensionui.azureSubscription"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-dps.viewProperties",
|
||||
"when": "view == iotDpsExplorer && viewItem == IotDps"
|
||||
|
@ -748,18 +709,6 @@
|
|||
{
|
||||
"command": "azure-iot-toolkit.startMonitorIoTHubMessageWithAbbreviation",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.setIoTHub",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-hub.loadMore",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-dps.loadMore",
|
||||
"when": "never"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -274,20 +274,21 @@ function activateIoTHub(context: vscode.ExtensionContext, outputChannel: vscode.
|
|||
|
||||
const azureIoTExplorer = new AzureIoTExplorer(outputChannel, context, iotHubExtTreeDataProvider);
|
||||
|
||||
context.subscriptions.push(iotHubTreeItem);
|
||||
context.subscriptions.push(vscode.window.createTreeView("iotHubExplorer", { treeDataProvider: iotHubExtTreeDataProvider, showCollapseAll: true }));
|
||||
// Note: Hide IoT Hub tree view from Azure viewlet
|
||||
// context.subscriptions.push(iotHubTreeItem);
|
||||
// context.subscriptions.push(vscode.window.createTreeView("iotHubExplorer", { treeDataProvider: iotHubExtTreeDataProvider, showCollapseAll: true }));
|
||||
|
||||
registerCommand("azure-iot-hub.setIoTHub", async (actionContext: IActionContext, node?: IoTHubResourceTreeItem) => {
|
||||
await azureIoTExplorer.setIoTHub(actionContext, node);
|
||||
});
|
||||
// registerCommand("azure-iot-hub.setIoTHub", async (actionContext: IActionContext, node?: IoTHubResourceTreeItem) => {
|
||||
// await azureIoTExplorer.setIoTHub(actionContext, node);
|
||||
// });
|
||||
|
||||
registerCommand("azure-iot-hub.loadMore", async (actionContext: IActionContext, node: AzureTreeItem) => {
|
||||
await azureIoTExplorer.loadMore(actionContext, node);
|
||||
});
|
||||
// registerCommand("azure-iot-hub.loadMore", async (actionContext: IActionContext, node: AzureTreeItem) => {
|
||||
// await azureIoTExplorer.loadMore(actionContext, node);
|
||||
// });
|
||||
|
||||
registerCommand("azure-iot-hub.refresh", async (actionContext: IActionContext, node: AzureTreeItem) => {
|
||||
await azureIoTExplorer.refresh(actionContext, node);
|
||||
});
|
||||
// registerCommand("azure-iot-hub.refresh", async (actionContext: IActionContext, node: AzureTreeItem) => {
|
||||
// await azureIoTExplorer.refresh(actionContext, node);
|
||||
// });
|
||||
|
||||
return azureIoTExplorer;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче