JetBrains / JetBrains/capture-points
Documentation on settings needed
- Dominant language
- No language data
- Stars
- 36
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
From the examples, it's unclear to me
* when the capture and insertion points are to be placed in the same xml element and what if anything is the effect of splitting them into separate elements
* when the class name for the insertion point is required to be set or to be left blank
* when one is to use `$this0` instead of `this`.
I wrote a silly example
```.scala
trait Noodle[T] {
def f: T // user provides code to calculate something
final def launch(): Unit = {...} // non-blocking call to schedule execution
final def get[T]: T = ... // blocking call to get result of f when complete
}
```
The implementations of `launch()` and `get` are not important; suffice to say, they work. I discovered by trial and error that the following settings would allow me to set a break in an an implementation of `f` and see the place where `launch` was called on the stack:
```.xml
```
Variations where I specified the `insert-class-name` rather than leaving it blank, or used `this` instead `$this0` didn't work. Separating the `insert-...` attributes into a second element continued to work. I'm pleased that I was able to configure this new functionality, but I'd like to understand better why the choices I ended up with were correct (and if there are better, perhaps more efficient choices).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.