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

Set of extra ignored diagnostics for REPL mode #1396

Merged
merged 9 commits into from Jul 21, 2021

Conversation

cspotcode
Copy link
Collaborator

@cspotcode cspotcode commented Jul 13, 2021

Closes #1120
Closes #729
Closes #850
Closes #469

Refactors diagnostic-ignoring logic to support per-file filters.

REPL can add a filter which applies only to the REPL's virtual file and removes diagnostics which are annoying in interactive mode. For example, "unreachable code" and "duplicate function declaration"

Also refactors some test macros

@cspotcode cspotcode marked this pull request as draft July 13, 2021 01:44
@cspotcode cspotcode added this to the 10.x.x milestone Jul 13, 2021
@codecov
Copy link

codecov bot commented Jul 13, 2021

Codecov Report

Merging #1396 (01a7e01) into main (6681fcd) will increase coverage by 0.20%.
The diff coverage is 90.00%.

Impacted Files Coverage Δ
src/bin.ts 91.40% <ø> (ø)
src/index.ts 77.86% <85.71%> (-0.04%) ⬇️
src/repl.ts 76.05% <100.00%> (+1.95%) ⬆️

@cspotcode
Copy link
Collaborator Author

I gave this some more thought; I feel good enabling by default in a minor release.

@cspotcode cspotcode changed the title #1120: Set of extra ignored diagnostics for REPL mode Set of extra ignored diagnostics for REPL mode Jul 19, 2021
@cspotcode cspotcode marked this pull request as ready for review July 21, 2021 21:38
@cspotcode cspotcode merged commit 08585b9 into main Jul 21, 2021
@cspotcode cspotcode deleted the ab/repl-ignored-diagnostics branch October 11, 2021 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant