usethesource / rascal-language-servers

An LSP server for Rascal which includes an easy-to-use LSP generator for languages implemented in Rascal, and an interactive terminal REPL.
BSD 2-Clause "Simplified" License
10 stars 7 forks source link

Report an error and allow user to quickly open a GH issue #408

Closed DavyLandman closed 1 month ago

DavyLandman commented 1 month ago

This improves UX by reporting a crash inside one of the rascal callbacks of the rascal-lsp server to a user.

Before it would crash, dump a log to the output window, and only for some of the errors, report anything to the end user.

This PR shows an error:

image

and then allows the user to directly open a issue:

image

(not that if the error is a rascal error, you should see a a rascal stack trace).

This fixes #406

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud