mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(lsp): don't discover deno.json in vendor dir (#24032)
This commit is contained in:
parent
a947c6fbf7
commit
fada25b0dd
1 changed files with 4 additions and 1 deletions
|
@ -848,7 +848,7 @@ impl Inner {
|
||||||
// We ignore these directories by default because there is a
|
// We ignore these directories by default because there is a
|
||||||
// high likelihood they aren't relevant. Someone can opt-into
|
// high likelihood they aren't relevant. Someone can opt-into
|
||||||
// them by specifying one of them as an enabled path.
|
// them by specifying one of them as an enabled path.
|
||||||
if matches!(dir_name.as_str(), "node_modules" | ".git") {
|
if matches!(dir_name.as_str(), "vendor" | "node_modules" | ".git") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// ignore cargo target directories for anyone using Deno with Rust
|
// ignore cargo target directories for anyone using Deno with Rust
|
||||||
|
@ -3678,6 +3678,9 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_walk_workspace() {
|
fn test_walk_workspace() {
|
||||||
let temp_dir = TempDir::new();
|
let temp_dir = TempDir::new();
|
||||||
|
temp_dir.create_dir_all("root1/vendor/");
|
||||||
|
temp_dir.write("root1/vendor/mod.ts", ""); // no, vendor
|
||||||
|
|
||||||
temp_dir.create_dir_all("root1/node_modules/");
|
temp_dir.create_dir_all("root1/node_modules/");
|
||||||
temp_dir.write("root1/node_modules/mod.ts", ""); // no, node_modules
|
temp_dir.write("root1/node_modules/mod.ts", ""); // no, node_modules
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue