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

Add proper support for onComment, onToken #5

Merged
merged 5 commits into from May 11, 2022
Merged

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented May 11, 2022

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Closes GH-3.
Closes GH-4.

JounQin and others added 5 commits April 20, 2022 00:48
* Move the position fixer into the function
* Use some assertions for things TS can’t figure out, which are compiled away
  in production
* Format some code one one line to be smaller
* Reword some test case messages
@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 11, 2022
@wooorm
Copy link
Member Author

wooorm commented May 11, 2022

Thank @JounQin! I refactored your PR a bit (see last commit). The approach looks good! 👍

@wooorm wooorm added 🦋 type/enhancement This is great to have 🗄 area/interface This affects the public interface 🧒 semver/minor This is backwards-compatible change labels May 11, 2022
@wooorm wooorm changed the title fix: support acornOptions.onComment array Add proper support for onComment, onToken May 11, 2022
@wooorm wooorm merged commit 3bafac0 into main May 11, 2022
@wooorm wooorm deleted the JounQin-fix/comments branch May 11, 2022 10:24
@github-actions

This comment has been minimized.

@wooorm wooorm added the 💪 phase/solved Post is done label May 11, 2022
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 🧒 semver/minor This is backwards-compatible change 🦋 type/enhancement This is great to have
Development

Successfully merging this pull request may close these issues.

options.acornOptions.onComment is overridden internally, which makes comments unavailable from outside
2 participants