mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Split merging of parser delta and stack environment (#6005)
* Remove comment * Split delta and environment merging * Move table mode to a more logical place * Cleanup * Merge environment after reading default_env.nu * Fmt
This commit is contained in:
@ -13,8 +13,7 @@ fn quickcheck_parse(data: String) -> bool {
|
||||
let (lite_block, err2) = nu_parser::lite_parse(&tokens);
|
||||
|
||||
if err.is_none() && err2.is_none() {
|
||||
let cwd = std::env::current_dir().expect("Could not get current working directory.");
|
||||
let context = create_default_context(cwd);
|
||||
let context = create_default_context();
|
||||
{
|
||||
let mut working_set = StateWorkingSet::new(&context);
|
||||
working_set.add_file("quickcheck".into(), data.as_bytes());
|
||||
|
Reference in New Issue
Block a user