You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add timed refresh to Cloud9 CodeWhisperer view after load (#4155)
## Problem
The nodes in the CodeWhisperer view in Cloud9 sometimes don't work.
* Analyzing the browser console shows that the extension host disposes creates commands for the nodes and disposes them (these have a number tied to them as an "ID").
* Most of the time, the view picks up the most recent copy of the commands (the browser console shows the ID being executed when the node is clicked)
* Sometimes, this is tied to the ID that's disposed. In these cases, the node actions won't work, with no error feedback (outside the browser console)
## Solution
Force a refresh of the CodeWhisperer view in Cloud9 only, 5 seconds after the end of the `extension.ts` `activate()` function.
* This disposes the actions and presumably recreates the nodes in the view
* It's hard to tell if this is truly a workaround/fix: since the error is sporadic, and the node never works _immediately_ during load (it always takes a second or two at least), we can't tell for sure if the view is going to recover on its own or continue to fail.
0 commit comments