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:

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?
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 DocumentSymbolProviderJestto provide the test names for these functions: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?