Commit 3542987
authored
Auto update IDE settings for serverless ssh mode (#4559)
## Changes
In serverless ssh mode (ssh connect command without cluster flag and
with the ide flag set), we need to set up the desired server ports (or
socket connection mode) for the connection to go through (as the
majority of the localhost ports on the remote side are blocked by
iptable rules). Plus the platform (always linux), and extensions (python
and jupyter), to make the initial experience smoother.
This is done by checking the IDE settings file and updating it if
necessary, prompting the user for confirmation before doing so.
If the settings file is not found (fresh IDE install), we create one
with the recommended configuration. If there are any other issues during
the update process, we log the error and print the manual instructions
for the user, proceeding with the connection anyway.
## Tests
New unit tests, plus manual tests on all platforms (WIP)
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent 4684f06 commit 3542987
File tree
6 files changed
+963
-0
lines changed- experimental/ssh
- cmd
- internal
- client
- vscode
6 files changed
+963
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
209 | 232 | | |
210 | 233 | | |
211 | 234 | | |
| |||
0 commit comments