mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Show header level in markdown Fixes #25574
This commit is contained in:
@@ -19,7 +19,7 @@ export default class MDDocumentSymbolProvider implements vscode.DocumentSymbolPr
|
||||
provideDocumentSymbols(document: vscode.TextDocument): vscode.ProviderResult<vscode.SymbolInformation[]> {
|
||||
const toc = new TableOfContentsProvider(this.engine, document);
|
||||
return toc.getToc().map(entry => {
|
||||
return new vscode.SymbolInformation(entry.text, vscode.SymbolKind.Module, '', entry.location);
|
||||
return new vscode.SymbolInformation(entry.text, vscode.SymbolKind.Namespace, '', entry.location);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user