mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(linter): fix hang if a file fails to parse while using --import-plugin
This commit is contained in:
parent
222030c4c5
commit
b1bddacd09
1 changed files with 1 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ impl Runtime {
|
|||
}
|
||||
|
||||
if !messages.is_empty() {
|
||||
self.ignore_path(path);
|
||||
let errors = messages.into_iter().map(|m| m.error).collect();
|
||||
let path = path.strip_prefix(&self.cwd).unwrap_or(path);
|
||||
let diagnostics = DiagnosticService::wrap_diagnostics(path, source_text, errors);
|
||||
|
|
|
|||
Loading…
Reference in a new issue