sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
286 stars 123 forks source link

(fix): show warnings only for the selected file in cm diagnostics #521

Closed paoloricciuti closed 11 months ago

paoloricciuti commented 11 months ago

Without this if there's a warning in a file different from the selected file the diagnostic inside codemirror will still show in the selected file. In the worst case this can lead to the whole repl crashing (if the current document is shorter than the warning position)

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 7:47pm
repl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 7:47pm