- Notifications
You must be signed in to change notification settings - Fork4
Commita509615
authored
fix: ssh connection to a workspace is established only once (#76)
- right now ssh automatically connects to the workspace when a userselects it from the main env. page. However, if the user manuallydisconnects from the hamburger menu, the SSH is no longer automaticallyestablished afterward.- the reason for this behavior was that the connection request flag thattriggered the ssh connection behind the scenes was never reset. In orderto reset we have to know when a user hits the disconnect button.- fortunately Toolbox provides two callbacks, one before establishingthe ssh connection and another one right after disconnect. Even thoughwe don't know the reason for disconnect it's still a good opportunity toreset the request flag.-resolves#381 parent35c6259 commita509615
File tree
2 files changed
+26
-5
lines changed- src/main/kotlin/com/coder/toolbox
2 files changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
| |||
140 | 157 | | |
141 | 158 | | |
142 | 159 | | |
143 | | - | |
| 160 | + | |
| 161 | + | |
144 | 162 | | |
145 | 163 | | |
146 | 164 | | |
| |||
149 | 167 | | |
150 | 168 | | |
151 | 169 | | |
152 | | - | |
153 | | - | |
| 170 | + | |
154 | 171 | | |
155 | | - | |
| 172 | + | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
| |||
0 commit comments
Comments
(0)