From e5026c08776164cc39dce36c0e657f781de7184d Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 11 Apr 2025 22:44:24 +0530 Subject: [PATCH] Use concise message to show diagnostics in playground (#17357) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary This PR fixes the playground to use the new `concise_diagnostic` method. ## Test plan **Before:** Screenshot 2025-04-11 at 11 37 34 AM **After:** Screenshot 2025-04-11 at 11 38 03 AM --- crates/red_knot_wasm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/red_knot_wasm/src/lib.rs b/crates/red_knot_wasm/src/lib.rs index 3faa4f79b1..ed96760409 100644 --- a/crates/red_knot_wasm/src/lib.rs +++ b/crates/red_knot_wasm/src/lib.rs @@ -322,7 +322,7 @@ impl Diagnostic { #[wasm_bindgen] pub fn message(&self) -> JsString { - JsString::from(self.inner.primary_message()) + JsString::from(self.inner.concise_message().to_string()) } #[wasm_bindgen]