Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
provide OutlineTree.representativeName
Browse files Browse the repository at this point in the history
Summary: The representativeName is used if the user prefers to have "plan names only" in their outline view.

Reviewed By: hansonw

Differential Revision: D5846993

fbshipit-source-id: 0220c2cc86f8b97f75395f8e414b3591b764e4c6
  • Loading branch information
ljw1004 authored and facebook-github-bot committed Sep 16, 2017
1 parent 3fae908 commit 074b21c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/atom-ide-ui/pkg/atom-ide-outline-view/lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export type OutlineTree = {
// Must be one or the other. If both are present, tokenizedText is preferred.
plainText?: string,
tokenizedText?: TokenizedText,

// If user has atom-ide-outline-view.nameOnly then representativeName is used instead.
representativeName?: string,

startPosition: atom$Point,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,7 @@ export class LspLanguageService {
symbol,
{
icon: convert.lspSymbolKind_atomIcon(symbol.kind),
representativeName: symbol.name,
tokenizedText: convert.lspSymbolInformation_atomTokenizedText(symbol),
startPosition: convert.lspPosition_atomPoint(
symbol.location.range.start,
Expand Down

0 comments on commit 074b21c

Please sign in to comment.