0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli/tools/repl
Bartek Iwańczuk 433f38084b
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-11-25 02:56:47 +01: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-11-25 02:56:47 +01:00
mod.rs fix(repl): more reliable history handling (#16797) 2022-11-25 02:56:47 +01:00
session.rs fix(cli/repl): await Promise.any([])... (#15623) 2022-09-02 13:38:06 +02:00