This PR adds a utility function for finding a dictionary item by ID in a Monaco Editor value. This uses the parse from vscode-html-languageservice to traverse the DOM structure and is consolidated with the DataDictionary which is then reinterpreted into columns and line numbers for the Monaco Editors position.
🎫 Issues
Addresses the first bullet in #53
👩💻 Reviewer Notes
Check to make sure the logic and comments are clear. This may not be the most efficient solution as it traverses the complete tree until it finds the dictionary item, however optimizations may come later from the use of this function in the MonacoAdapter class.
✅ Checklist
General
[x] I have added tests for my changes.
[x] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
Pull Request
📖 Description
This PR adds a utility function for finding a dictionary item by ID in a Monaco Editor value. This uses the
parse
fromvscode-html-languageservice
to traverse the DOM structure and is consolidated with theDataDictionary
which is then reinterpreted into columns and line numbers for the Monaco Editors position.🎫 Issues
Addresses the first bullet in #53
👩💻 Reviewer Notes
Check to make sure the logic and comments are clear. This may not be the most efficient solution as it traverses the complete tree until it finds the dictionary item, however optimizations may come later from the use of this function in the
MonacoAdapter
class.✅ Checklist
General
⏭ Next Steps
MonacoAdapter
MonacoAdapterAction