Exclude tokens when autofocusing
enhancement
### Clear and concise description of the problem
When "Auto focus" is enabled. It focuses on the token in range instead of Node for some parsers with `tokens` option like `acorn`. I'm not expecting this
<img width="1362" height="601" alt="Image" src="https://github.com/user-attachments/assets/69772d36-112b-4ecb-8672-a25e2284fd3e" />
<img width="1411" height="626" alt="Image" src="https://github.com/user-attachments/assets/1ab3ff8f-a178-466b-901d-fc391fdb98d7" />
### Suggested solution
Maybe we can exclude tokens or add an option to control this behavior?
### Alternative
_No response_
### Additional context
_No response_
### Validations
- [x] Follow our [Code of Conduct](https://github.com/sxzz/.github/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guide](https://github.com/sxzz/contribute).
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
关闭于 2025-10-18 1 条评论