diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index de0e63e84..d98313f54 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -807,9 +807,10 @@ async fn format_command( args: Vec<PathBuf>, ignore: Vec<PathBuf>, check: bool, + ext: String, ) -> Result<(), AnyError> { if args.len() == 1 && args[0].to_string_lossy() == "-" { - return tools::fmt::format_stdin(check); + return tools::fmt::format_stdin(check, ext); } tools::fmt::format(args, ignore, check, flags.watch).await?; @@ -1179,7 +1180,8 @@ fn get_subcommand( check, files, ignore, - } => format_command(flags, files, ignore, check).boxed_local(), + ext, + } => format_command(flags, files, ignore, check, ext).boxed_local(), DenoSubcommand::Info { file, json } => { info_command(flags, file, json).boxed_local() } |