diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-21 09:12:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:12:26 -0400 |
commit | d6e086d681fd0564bbb8e62744aca0514e3bc575 (patch) | |
tree | 5bc4e688c0250283f696c9d0ab68d524ba5a9466 /test_util/src/fs.rs | |
parent | da709729e3dd6f310182581ca1c6380ad51443fc (diff) |
fix(lsp): handle watched files events from symlinked config files (#19898)
Related to https://github.com/denoland/vscode_deno/issues/784
Diffstat (limited to 'test_util/src/fs.rs')
-rw-r--r-- | test_util/src/fs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_util/src/fs.rs b/test_util/src/fs.rs index f9443c9c5..2a64fb9c4 100644 --- a/test_util/src/fs.rs +++ b/test_util/src/fs.rs @@ -324,6 +324,10 @@ impl TempDir { Self::new_inner(&std::env::temp_dir(), Some(prefix)) } + pub fn new_in(parent_dir: &Path) -> Self { + Self::new_inner(parent_dir, None) + } + pub fn new_with_path(path: &Path) -> Self { Self(Arc::new(TempDirInner::Path(PathRef(path.to_path_buf())))) } |