Skip to content

Commit

Permalink
Tweak outline icons
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Jun 25, 2023
1 parent 718180e commit cb6d2f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/providers/docsymbol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@ export class DocSymbolProvider implements vscode.DocumentSymbolProvider {

private sectionToKind(section: TeXElement): vscode.SymbolKind {
if (section.type === TeXElementType.Section || section.type === TeXElementType.SectionAst) {
return vscode.SymbolKind.Module
return vscode.SymbolKind.Struct
}
if (section.type === TeXElementType.Environment) {
return vscode.SymbolKind.Class
return vscode.SymbolKind.Package
}
if (section.type === TeXElementType.Command) {
return vscode.SymbolKind.Method
return vscode.SymbolKind.Number
}
if (section.type === TeXElementType.SubFile) {
return vscode.SymbolKind.Interface
return vscode.SymbolKind.File
}
if (section.type === TeXElementType.BibItem) {
return vscode.SymbolKind.Package
return vscode.SymbolKind.Class
}
if (section.type === TeXElementType.BibField) {
return vscode.SymbolKind.Property
return vscode.SymbolKind.Constant
}
return vscode.SymbolKind.Constant
return vscode.SymbolKind.String
}

private sectionToSymbols(sections: TeXElement[]): vscode.DocumentSymbol[] {
Expand Down

0 comments on commit cb6d2f5

Please sign in to comment.