Almenon / birdseye-vscode

vscode port of birdseye - a graphical Python debugger
MIT License
23 stars 0 forks source link

birdseye does not show up upon install #20

Closed Almenon closed 6 years ago

Almenon commented 6 years ago

Replication:

  1. Install birdseye via extension
  2. Repoen birdseye - nothing appears

Birdseye starts successfully so this is an error on my end.

Almenon commented 6 years ago

the problem was that I created my contentProvider in activate, so it was only constructed the very first time the birdseye command was called. When the user installs birdseye and reopens birdseye extension, the html is refrshed when birdseye is fully loaded.

But VSCode acts very strange when the html content refreshes without a difference - in my case it appeared to skip the refresh entirely.

To fix this I moved the creation of the contentProvider down to the birdseye function so it would be recreated each time.