nushell/crates/nu-cli/src
Stefan Holderbach ec528c0626
Refactor source cache into CachedFile struct (#12240)
# Description
Get rid of two parallel `Vec`s in `StateDelta` and `EngineState`, that
also duplicated span information. Use a struct with documenting fields.

Also use `Arc<str>` and `Arc<[u8]>` for the allocations as they are
never modified and cloned often (see #12229 for the first improvement).
This also makes the representation more compact as no capacity is
necessary.

# User-Facing Changes
API breakage on `EngineState`/`StateWorkingSet`/`StateDelta` that should
not really affect plugin authors.
2024-03-20 19:43:50 +01:00
..
commands Add ConfigDirNotFound error (#11849) 2024-02-26 15:42:20 +08:00
completions Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
menus IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
config_files.rs Canonicalize each component of config files (#12167) 2024-03-13 06:26:06 -05:00
eval_cmds.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
eval_file.rs Make EngineState clone cheaper with Arc on all of the heavy objects (#12229) 2024-03-19 19:07:00 +01:00
lib.rs Bump Reedline for the Menu Refactor (#11658) 2024-01-28 08:26:03 -08:00
nu_highlight.rs Allow for stacks to have parents (#11654) 2024-03-09 17:55:39 +01:00
print.rs Fix incorrect handling of boolean flags for builtin commands (#11492) 2024-01-11 17:19:48 +02:00
prompt_update.rs Allow for stacks to have parents (#11654) 2024-03-09 17:55:39 +01:00
prompt.rs fix shell integration markers (#11352) 2023-12-16 20:12:34 -06:00
reedline_config.rs Use the system clipboard only for explicit copy/paste operations. Addresses issue 11907 (#12179) 2024-03-15 08:59:21 -05:00
repl.rs Respond to nightly clippy (#12174) 2024-03-20 09:46:39 +08:00
syntax_highlight.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
util.rs Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00