Open hpopov opened 1 year ago
Found existing in LSP (from 2020) LSP Client action to open a particular document with particular text range selected: Show Document Request ()
Looked at Sprotty Server integration with XText-based LS demo to figure out, how exactly navigation sync is organized:
To listen to Code Editor cursor updates (LSP Client focus changed), I need to listen to connection.onDocumentHighlight
on Langium LSP Server.
See documentation
To mimic Sprotty Server behavior, add code elements navigation sync:
[ ] Propagate Diagram node select to LSP code editor#12 Whenever you select the node on a diagram:
|
to a code element, a corresponding diagram node gets selected (?) and auto-centered