Open hawkerm opened 4 years ago
Hmm, the scenario for the visualizer may work through the SelectedRange
property like we do in the sample here, even if we don't expose the click event itself...
The Editor's GotFocus and LostFocus events also work.
Think for the original scenario for the XmlSyntaxVisualizer, we're sufficient for now, so going to move this out of v0.9-beta.
However, going to leave this here, as we probably want to implement the actual Monaco onMouseDown
event as it contains a lot of context about where in the editor the user clicked.
In the XmlSyntaxVisualizerUWP example we couldn't detect the cursor moving from a mouse click:
If we can expose knowing when the user clicks in the editor, then we can just call get caret position method or something. Need to investigate this scenario more.