microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

Start monitoring custom Event Hub endpoint failed when treeView auto refresh #319

Open czgtest opened 5 years ago

czgtest commented 5 years ago

step:

  1. enable auto refresh tree view in vscode user settings "azure-iot-toolkit.treeViewAutoRefreshEnable": true, "azure-iot-toolkit.treeViewAutoRefreshIntervalInSeconds": 10 2.reload vscode 3.IoT Hub selected: chenhub0513 4.expand Event Hubs in Endpoints 5.start monitoring testEventHub when treeView is refreshing
  2. you can see error [EventHubMonitor] TypeError: Cannot read property 'eventHubProperty' of undefined

image

adashen commented 4 years ago

@formulahendry Please add a reference to the upstream issue here for tracking.

formulahendry commented 4 years ago

upstream issue: https://github.com/microsoft/vscode/issues/29068 @czgtest Please test whether we could still repro this issue.

czgtest commented 4 years ago

@formulahendry this issue still repro on image

czgtest commented 4 years ago

when set the refresh tree view 5 seconds , this issue will repro high probability, if set the refresh tree view 100 seconds, this issue will repro low probability,

"azure-iot-toolkit.treeViewAutoRefreshEnable": true, "azure-iot-toolkit.treeViewAutoRefreshIntervalInSeconds": 5