- Notifications
You must be signed in to change notification settings - Fork34
Commite335ced
committed
Fix connecting to off workspaces
We made a change to always include the agent in the host name so thesession is stable, however for workspaces that are off there is no agentincluded in the response, and we were silently returning in these cases.So for these cases, fetch the first agent through a different API thatstill returns agents when the workspace is off.Workspace picker is broken out into a separate function, logic isunchanged.Instead of a possibly-undefined agent on a tree item, I switch on thetree item type. I feel the intent this way is easier to follow.To extract agents from both APIs, make extractAgents accept an array ofresources instead of a workspace.1 parentcb2a4ec commite335ced
File tree
4 files changed
+195
-176
lines changed- src
4 files changed
+195
-176
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 |
| |
4 | 8 |
| |
5 | 9 |
| |
| |||
24 | 28 |
| |
25 | 29 |
| |
26 | 30 |
| |
27 |
| - | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
31 |
| - | |
32 |
| - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 |
| |
34 | 40 |
| |
35 | 41 |
| |
|
0 commit comments
Comments
(0)