summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-01 12:06:23 -0400
committerGitHub <noreply@github.com>2022-09-01 12:06:23 -0400
commit67713f4b9354799c4013dda9558470ce18989627 (patch)
treeeac1b4251565d128f382175e09568592a5e48207
parente1d7d7b0e365c3ddfee9e52371dd2c6d75e132e6 (diff)
fix(npm): ignore the unstable error in the lsp (#15727)
-rw-r--r--cli/proc_state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index 806bb030b..7175f18e1 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -226,7 +226,9 @@ impl ProcState {
&dir,
cli_options.reload_flag(),
cli_options.cache_setting(),
- cli_options.unstable(),
+ cli_options.unstable()
+ // don't do the unstable error when in the lsp
+ || matches!(cli_options.sub_command(), DenoSubcommand::Lsp),
)?;
Ok(ProcState(Arc::new(Inner {