summaryrefslogtreecommitdiff
path: root/cli/lsp/documents.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-12 23:32:59 -0400
committerGitHub <noreply@github.com>2023-03-12 23:32:59 -0400
commitbcb6ee9d0864f490f6da47cbe2593310b21333ff (patch)
treee2e06d2466dec8022645e368455c1ed8f59cab7f /cli/lsp/documents.rs
parent8db853514caae431a0ce91360d854c1b7f3c405f (diff)
refactor(npm): push npm struct creation to a higher level (#18139)
This has been bothering me for a while and it became more painful while working on #18136 because injecting the shared progress bar became very verbose. Basically we should move the creation of all these npm structs up to a higher level. This is a stepping stone for a future refactor where we can improve how we create all our structs.
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r--cli/lsp/documents.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index d49cd0b1f..ff384bbf1 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -1409,7 +1409,6 @@ fn node_resolve_npm_req_ref(
maybe_npm_resolver.map(|npm_resolver| {
NodeResolution::into_specifier_and_media_type(
npm_resolver
- .resolution()
.pkg_req_ref_to_nv_ref(npm_req_ref)
.ok()
.and_then(|pkg_id_ref| {