- 
                Notifications
    You must be signed in to change notification settings 
- Fork 898
Open
Labels
document symbolsfeature-requestRequest for new features or functionalityRequest for new features or functionalityworkspace symbols
Milestone
Description
I propose an addition to SymbolInformation that allows an LS to report the visibility (private, protected, public) to the client:
interface SymbolInformation {
  visibility?: Visibility;
}
enum Visibility {
  Private = 1,
  Protected = 2,
  Public = 3
}A client can choose how he uses that information:
- it could display an icon that indicates a symbol is private
- after getting a list of symbols, it could allow the user to hide/show only public symbols
The same property could get added to CompletionItem.
I think private, protected and public should cover all languages, or are there more modifiers in some languages?
The enum should be structured to allow something like
if (symbol.visibility >= Visibility.Protected) {
  // symbol is at least protected or public
}sunverwerth, ljw1004, jens1o, laughedelic, pingu8007 and 8 more
Metadata
Metadata
Assignees
Labels
document symbolsfeature-requestRequest for new features or functionalityRequest for new features or functionalityworkspace symbols