diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-17 07:50:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-17 07:50:30 +0100 |
commit | fa18878f54c91c8335dd0abe911b1ee3d15c5607 (patch) | |
tree | 6eff8ab0920ee57e4b8382cc2ed4934500e7a559 /cli/tools/bench/mod.rs | |
parent | 3b2e553b05d84ea9de15d27b8e4ef5544e541cb1 (diff) |
fix(lsp): include JSON modules in local import completions (#20536)
Diffstat (limited to 'cli/tools/bench/mod.rs')
-rw-r--r-- | cli/tools/bench/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/bench/mod.rs b/cli/tools/bench/mod.rs index 732d889eb..1c44c8b3c 100644 --- a/cli/tools/bench/mod.rs +++ b/cli/tools/bench/mod.rs @@ -15,7 +15,7 @@ use crate::tools::test::format_test_error; use crate::tools::test::TestFilter; use crate::util::file_watcher; use crate::util::fs::collect_specifiers; -use crate::util::path::is_supported_ext; +use crate::util::path::is_script_ext; use crate::version::get_user_agent; use crate::worker::CliMainWorkerFactory; @@ -347,7 +347,7 @@ fn is_supported_bench_path(path: &Path) -> bool { (basename.ends_with("_bench") || basename.ends_with(".bench") || basename == "bench") - && is_supported_ext(path) + && is_script_ext(path) } else { false } |