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/lsp/documents.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/lsp/documents.rs')
-rw-r--r-- | cli/lsp/documents.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index 8fd9cdbb2..4bfb9342a 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1224,11 +1224,7 @@ impl Documents { ); let deps_provider = Arc::new(PackageJsonDepsProvider::new(maybe_package_json_deps)); - let deps_installer = Arc::new(PackageJsonDepsInstaller::new( - deps_provider.clone(), - options.npm_registry_api.clone(), - options.npm_resolution.clone(), - )); + let deps_installer = Arc::new(PackageJsonDepsInstaller::no_op()); self.resolver = Arc::new(CliGraphResolver::new( maybe_jsx_config, options.maybe_import_map, |