Eugleo / magic-racket

The best coding experience for Racket in VS Code
https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket
GNU General Public License v3.0
202 stars 28 forks source link

Make error trace an option #55

Closed rongcuid closed 2 years ago

rongcuid commented 2 years ago

Environment

Enhancement

It would be great to add an option to easily enable errortrace. I currently set the REPLRacket path to racket -il errortrace -l xrepl, but it would be good to give an option for better discoverability.

Eugleo commented 2 years ago

Hey, this is a good idea. Would you be willing to make a PR for it? I'd happily accept something along the lines of

  1. Make a new setting that will be a list of packages to load in the REPL (which will the just get pasted after the real path with -ls prefixed).
  2. After launching Magic Racket for the first time, show a notification asking the user if they want to enable errortrace in the REPL (recommended), or not. If so, set the new setting to be ["errortrace"]. Or maybe even just say "Hey, we enabled errortrace in your REPL. If you want to change this or add additional packages, go here and here in preferences".

This way, most users will probably go the recommended route.

Eugleo commented 2 years ago

I've added the possibility to edit arguments that are passed when creating the REPL. Should be enough for now.