Line markers on a script/query body element
已回答
Hi,
I'm implementing a plugin for a language (XQuery) that has a query body element for the query to be run by a file. I'm adding line markers to the query body to link to REST endpoint definitions and (in the future) to a runnable test.
Reading the LineMarker documentation, it advises against using an element like this for the line marker, but instead using a leaf element. The issue here is that the element I'm placing the marker on (query body) does not have an identifier defining it like a function or class does.
What is the best approach in this case? -- Would using the first token in the query (regardless of what it is) work?
Kind regards,
Reece
请先登录再写评论。
Might work, see also https://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/line_marker_provider.html#best-practices-for-implementing-line-marker-providers