suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
https://monaco-react.surenatoyan.com/
MIT License
3.78k stars 268 forks source link

Request for assistance in displaying sticky notes or comments below a line of code in Monaco Editor React #473

Open har5hcodes opened 1 year ago

har5hcodes commented 1 year ago

Description: I am writing to request assistance from the Monaco Editor React team in achieving the functionality of displaying sticky notes or comments below a line of code. I believe this feature may already exist, but I am unable to find it or get it to work properly.

Problem: It is important to be able to add comments or notes to specific lines of code to provide context or explanations for other developers who may be working on the same codebase. However, I am unable to achieve this desired functionality even after trying to insert a widget using Monaco decorations.

Requested Assistance: I would greatly appreciate any guidance or assistance the Monaco Editor React team can provide in achieving this functionality. If this feature already exists, please provide instructions on how to implement it. If it does not exist, please advise on the best approach to add this feature to the editor.

Additional Context: I have attached a screenshot of what I am trying to achieve to provide further clarity. Thank you for your help

Screenshot from 2023-04-05 21-24-18 and support.

suren-atoyan commented 1 year ago

@har5hcodes check this comment. Try it in the playground