1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-03 17:08:35 -05:00
denoland-deno/cli/tools/repl
Bartek Iwańczuk 488eb21652
fix(repl): more reliable history handling (#16797)
This commit changes history handling of the REPL.

There were some situations were history wasn't properly saved and flushed to a
file, making history very spotty. This commit changes it to save every line into
the history file and flush it to disk before being evaluated.

Thanks to this all lines, including "close()" will be stored in the history
file.

If for any reason we're not able to save history file, a single warning will be
printed to the REPL and it will continue to work, even if subsequent tries will
fail to save to disk.
2022-12-01 16:20:48 +09:00
..
channel.rs refactor: factor out CDP message types (#13551) 2022-02-07 17:05:49 +01:00
editor.rs fix(repl): more reliable history handling (#16797) 2022-12-01 16:20:48 +09:00
mod.rs fix(repl): more reliable history handling (#16797) 2022-12-01 16:20:48 +09:00
session.rs fix(cli/repl): await Promise.any([])... (#15623) 2022-09-02 13:38:06 +02:00