mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
🐛 include setext heading levels (Markdown) (#32987)
* 🐛 include setext heading levels * 📝 typo * 💚 use `===`
This commit is contained in:
@@ -19,7 +19,7 @@ export default class MDDocumentSymbolProvider implements vscode.DocumentSymbolPr
|
||||
public async provideDocumentSymbols(document: vscode.TextDocument): Promise<vscode.SymbolInformation[]> {
|
||||
const toc = await new TableOfContentsProvider(this.engine, document).getToc();
|
||||
return toc.map(entry => {
|
||||
return new vscode.SymbolInformation(entry.text, vscode.SymbolKind.Namespace, '', entry.location);
|
||||
return new vscode.SymbolInformation('#'.repeat(entry.level) + ' ' + entry.text, vscode.SymbolKind.Namespace, '', entry.location);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user