Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Intellisense menu for Error #122

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmagaram
Copy link
Contributor

@jmagaram jmagaram commented Mar 24, 2023

This removes all the submodules like SyntaxError and RangeError that had a single function in it - make - and moves these to the top level like makeRangeError and makeSyntaxError. This is more like the old Js.Exn module and makes the Intelliense menu a lot easier to navigate. You can quickly see the types of errors you can create. It is still a 2 step process - make then raise - even though in 99% of the cases the user will throw immediately; this is a step backward from the Js.Exn module that has raiseSyntaxError and other variants.

Before:

image

After:

image

@jmagaram jmagaram force-pushed the flattenErrorModule branch from 9a56378 to 2d18a18 Compare July 19, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant