diff --git a/apps/oxlint/src/run.rs b/apps/oxlint/src/run.rs index abd0ed6928f47..10a621f048777 100644 --- a/apps/oxlint/src/run.rs +++ b/apps/oxlint/src/run.rs @@ -181,6 +181,10 @@ async fn lint_impl( // If --lsp flag is set, run the language server if command.lsp { + // Disable JS plugins support except in tests. + // TODO: Remove this line once we have solidified the implementation and thoroughly tested it. + let external_linter = if cfg!(feature = "testing") { external_linter } else { None }; + crate::lsp::run_lsp(external_linter).await; return CliRunResult::LintSucceeded; }