Skip to content

Commit 3532e8a

Browse files
committed
update
1 parent f4e498e commit 3532e8a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/oxc_diagnostics/src/service.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,9 @@ impl DiagnosticService {
139139
source_start: u32,
140140
diagnostics: Vec<OxcDiagnostic>,
141141
) -> Vec<Error> {
142-
let is_jetbrains = if cfg!(test) {
143-
false
144-
} else {
145-
std::env::var("TERMINAL_EMULATOR").is_ok_and(|x| x.eq("JetBrains-JediTerm"))
146-
};
142+
// TODO: This causes snapshots to fail when running tests through a JetBrains terminal.
143+
let is_jetbrains =
144+
std::env::var("TERMINAL_EMULATOR").is_ok_and(|x| x.eq("JetBrains-JediTerm"));
147145

148146
let path_ref = path.as_ref();
149147
let path_display = if is_jetbrains { from_file_path(path_ref) } else { None }

0 commit comments

Comments
 (0)