Skip to content

Commit 255d7fc

Browse files
committed
fix(linter/plugins): use non-blocking mode when calling destroyWorkspace
1 parent 8da26c3 commit 255d7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/oxlint/src/js_plugins/external_linter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,6 @@ fn wrap_create_workspace(cb: JsCreateWorkspaceCb) -> ExternalLinterCreateWorkspa
328328
/// Wrap `destroyWorkspace` JS callback as a normal Rust function.
329329
fn wrap_destroy_workspace(cb: JsDestroyWorkspaceCb) -> ExternalLinterDestroyWorkspaceCb {
330330
Arc::new(Box::new(move |workspace_uri| {
331-
let _ = cb.call(workspace_uri, ThreadsafeFunctionCallMode::Blocking);
331+
let _ = cb.call(workspace_uri, ThreadsafeFunctionCallMode::NonBlocking);
332332
}))
333333
}

0 commit comments

Comments
 (0)