Skip to content

Commit 365136a

Browse files
committed
use displayName in documentSymbolProvider
1 parent 1c31f4b commit 365136a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/documentSymbolProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function createSymbolForElement(element: Structure.CodeElement): vscode.Document
4545
const fullRange = element.Ranges[SymbolRangeNames.Full];
4646
const nameRange = element.Ranges[SymbolRangeNames.Name];
4747

48-
return new vscode.DocumentSymbol(element.Name, /*detail*/ "", toSymbolKind(element.Kind), toRange3(fullRange), toRange3(nameRange));
48+
return new vscode.DocumentSymbol(element.DisplayName, /*detail*/ "", toSymbolKind(element.Kind), toRange3(fullRange), toRange3(nameRange));
4949
}
5050

5151
const kinds: { [kind: string]: vscode.SymbolKind; } = { };

0 commit comments

Comments
 (0)