Commit 13635e1
authored
Switch to Pkg mode prompt immediately and load Pkg in the background (#54594)
Because Pkg is now a pkgimage it can load slowly on slower machines,
which is a bit frustrating in the first repl switch.
This makes the repl immediately switch to a dummy prompt that looks like
Pkg mode to allow the user to keep typing while Pkg loads. During which
the keymap is disabled.
It works best if julia has >1 thread, otherwise typing stalls during Pkg
load.
If Pkg takes longer to load than the user to type the command and press
return, then the UX isn't great as it won't do anything.
https://github.com/JuliaLang/julia/assets/1694067/1bf17323-441a-4db2-8a3b-4d571eac622f1 parent 4e211eb commit 13635e1
2 files changed
+40
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | 1083 | | |
1087 | 1084 | | |
1088 | 1085 | | |
| |||
1228 | 1225 | | |
1229 | 1226 | | |
1230 | 1227 | | |
1231 | | - | |
1232 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
1233 | 1237 | | |
1234 | 1238 | | |
1235 | | - | |
1236 | 1239 | | |
1237 | 1240 | | |
1238 | 1241 | | |
| |||
1241 | 1244 | | |
1242 | 1245 | | |
1243 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1244 | 1259 | | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1249 | 1267 | | |
1250 | | - | |
1251 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
1252 | 1271 | | |
1253 | | - | |
1254 | 1272 | | |
1255 | 1273 | | |
1256 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
223 | 233 | | |
0 commit comments