CodeEditSourceEditor
CodeEditSourceEditor copied to clipboard
Make JSDoc Highlight as Comments
Description
Makes JSDocs highlight as comments. Because they're injected as a different language they don't get captured normally. This is the only language we have to handle this in so it's hard-coded in the TreeSitterClient.
Also adds a quick check to prevent potential recursive cursor notifications using SwiftUI.
Related Issues
Checklist
- [x] I read and understood the contributing guide as well as the code of conduct
- [x] The issues this PR addresses are related to each other
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] My changes are all related to the related issue above
- [x] I documented my code