Skip to content

Commit

Permalink
Avoid writing to stdout in LSP
Browse files Browse the repository at this point in the history
Reviewed By: SamChou19815

Differential Revision: D67981933

fbshipit-source-id: f2f77d95e839b176c55c59957a7ce55e92fb613f
  • Loading branch information
captbaritone authored and facebook-github-bot committed Jan 9, 2025
1 parent 9c87ff6 commit 51fac5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/crates/relay-transforms/src/required_directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,9 @@ impl DirectiveFinder for RequiredDirectiveVisitor<'_> {
if let Some(frag) = fragment {
self.visit_fragment(frag)
} else {
println!(
"required_directive: Could not find fragment for fragment spread: {}",
fragment_spread.fragment.item
);
// Could not find fragment spread. This can happen if we are running
// this transform via LSP validation where we only validate a single
// tagged template literal in isolation.
false
}
}
Expand Down

0 comments on commit 51fac5d

Please sign in to comment.