Skip to content

[outline view] merge custom DocumentSymbols with system Features #60641

@connectdotz

Description

@connectdotz

mocha/jest tests use unamed functions extensively, such as the describe(), it(). These functions appeared in the outline view as <function>, which obviously not very helpful. We implemented a custom DocumentSymbolProvider Jest to provide the test names for these functions:

snapshot

According to the document, when multiple DocumentSymbolProviders are registered, vscode will merge their results. However, judging from the output above, the symbols didn't seem to be "merged" but "appended". Ideally, we would like to have just 1 tree Typescript and JavaScript Language Features, replace the unnamed <function> while leaving everything else within intact. Not sure if this is a bug or maybe there is another way to contribute to the outline system provider?

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS CodeoutlineSource outline view issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions