Improve completions inside of a pipeline

This commit is contained in:
JT
2021-09-10 20:07:18 +12:00
parent a8ba00b250
commit bfd05772ef
5 changed files with 16 additions and 7 deletions

View File

@ -60,14 +60,14 @@ fn check_call(command: Span, sig: &Signature, call: &Call) -> Option<ParseError>
}
pub fn parse_external_call(
working_set: &mut StateWorkingSet,
_working_set: &mut StateWorkingSet,
spans: &[Span],
) -> (Expression, Option<ParseError>) {
// TODO: add external parsing
let mut args = vec![];
let name = working_set.get_span_contents(spans[0]).to_vec();
let name = spans[0];
for span in &spans[1..] {
args.push(working_set.get_span_contents(*span).to_vec());
args.push(*span);
}
(
Expression {