Commit e839d0f
committed
improvement(repl): add in feedback when resetting REPL state
As a user I'm a big fan of getting feedback from the tools I'm working
with. Without out, you have to go on assumption that what you just tried
worked unless it explodes. In Scala 2 when you do a `:reset` in the REPL
you get a nice message about it being reset and even some details about
what exactly was reset.
Following that train of thought this just adds in small note when you
reset your session. Here are a couple examples which you can also see in
the changed tests:
```none
scala>:reset -deprecation
Resetting REPL state with the following settings:
-deprecation
```
```none
scala>:reset
Resetting REPL state.
```1 parent 4f3d767 commit e839d0f
File tree
2 files changed
+13
-1
lines changed- compiler
- src/dotty/tools/repl
- test-resources/repl
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
395 | 404 | | |
396 | 405 | | |
397 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments