Use concise message to show diagnostics in playground (#17357)

## Summary

This PR fixes the playground to use the new `concise_diagnostic` method.

## Test plan

**Before:**

<img width="1728" alt="Screenshot 2025-04-11 at 11 37 34 AM"
src="https://github.com/user-attachments/assets/cbfcbc52-2e70-4277-9363-ba197711390e"
/>

**After:**

<img width="1728" alt="Screenshot 2025-04-11 at 11 38 03 AM"
src="https://github.com/user-attachments/assets/356ec63c-50d9-49a8-8df4-84000b46fb6d"
/>
This commit is contained in:
Dhruv Manilawala 2025-04-11 22:44:24 +05:30 committed by GitHub
parent da32a83c9f
commit e5026c0877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]