diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-22 21:28:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 21:28:36 -0400 |
commit | bb37dfb5b79c0e5ae18d34f01313cb1f39d7a2dd (patch) | |
tree | eed3c2a5ed443933e6809b4c9541c75b651fb38f /cli/tests/integration/inspector_tests.rs | |
parent | 58782589528dc442e2a1fdf6d98454cbf01ac2ad (diff) |
feat(lsp): support lockfile and node_modules directory (#19203)
This adds support for the lockfile and node_modules directory to the
lsp.
In the case of the node_modules directory, it is only enabled when
explicitly opted into via `"nodeModulesDir": true` in the configuration
file. This is to reduce the language server automatically modifying the
node_modules directory when the user doesn't want it to.
Closes #16510
Closes #16373
Diffstat (limited to 'cli/tests/integration/inspector_tests.rs')
-rw-r--r-- | cli/tests/integration/inspector_tests.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs index 8fa9ec85c..f94dd221b 100644 --- a/cli/tests/integration/inspector_tests.rs +++ b/cli/tests/integration/inspector_tests.rs @@ -18,6 +18,7 @@ use test_util as util; use test_util::TempDir; use tokio::net::TcpStream; use url::Url; +use util::assert_starts_with; use util::http_server; use util::DenoChild; @@ -217,15 +218,6 @@ impl InspectorTester { } } -macro_rules! assert_starts_with { - ($string:expr, $($test:expr),+) => { - let string = $string; // This might be a function call or something - if !($(string.starts_with($test))||+) { - panic!("{:?} does not start with {:?}", string, [$($test),+]); - } - } - } - fn assert_stderr( stderr_lines: &mut impl std::iter::Iterator<Item = String>, expected_lines: &[&str], |