Skip to content

Commit 41072f7

Browse files
authored
Merge pull request #2685 from filipw/master
use displayName in documentSymbolProvider
2 parents 32b6808 + 4d2cf0c commit 41072f7

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)