You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Say I have this code snippet for a Scala spec file:
classGrpcServerSpecextendsScalaTestWithActorTestKitwithWordSpecLike {
valACCOUNT_ID=111LvalAGENT_ID=222L"AskService.addChatWorkItem" should {
"respond when WorkItem is added" in {
implicitvalec= testKit.system.executionContext
valmockedBehavior= ...
Then in the structure of the file as reported by imenu in emacs, I only see:
Describe the solution you'd like
I would expect to see the "AskService.addChatWorkItem" and "respond when WorkItem is added" in that document outline as well as:
(class)GrpcServerSpec
0: => (val)GrpcServerSpec.ACCOUNT_ID
0: => (val)GrpcServerSpec.AGENT_ID
0: => (method)AskService.addChatWorkItem
0: => (method)respond when WorkItem is added
Describe alternatives you've considered
None are available in metals.
Additional context
From the gitter discussion Gabriele Petronella wrote:
You mean the document outline (or textDocument/documentSymbol in LSP lingo). No that's not supported at the moment, since in the general case those are just method applications and you don't usually want them to show up. E.g.:
objectFoo {
println("hello")
println("bar")
}
in this case you wouldn't want the two println invocation to appear in the document outline, and from a syntactical point of view those are no different than test definitions in ScalaTest and similar frameworks.
That said, it may be useful to special-case those. If you want, you can open a feature-request and we'll track it there.
Search terms:
spec, test, document outline, document structure, test list
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Say I have this code snippet for a Scala spec file:
Then in the structure of the file as reported by imenu in emacs, I only see:
Describe the solution you'd like
I would expect to see the
"AskService.addChatWorkItem"
and"respond when WorkItem is added"
in that document outline as well as:Describe alternatives you've considered
None are available in metals.
Additional context
From the gitter discussion Gabriele Petronella wrote:
Search terms:
spec, test, document outline, document structure, test list
The text was updated successfully, but these errors were encountered: