Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support lsp_document_symbol_detail option #1482

Merged
merged 2 commits into from
Aug 5, 2023

Conversation

satorunooshie
Copy link
Contributor

@satorunooshie satorunooshie commented Aug 4, 2023

to show details

g:lsp_document_symbol_detail=0(default):

internal/lsp/cmd/symbols.go|20 col 6| struct : symbols
internal/lsp/cmd/symbols.go|21 col 2| field :   app
internal/lsp/cmd/symbols.go|24 col 1| method : (*symbols).Name
internal/lsp/cmd/symbols.go|25 col 1| method : (*symbols).Parent
internal/lsp/cmd/symbols.go|26 col 1| method : (*symbols).Usage
internal/lsp/cmd/symbols.go|27 col 1| method : (*symbols).ShortHelp
internal/lsp/cmd/symbols.go|28 col 1| method : (*symbols).DetailedHelp
internal/lsp/cmd/symbols.go|35 col 1| method : (*symbols).Run
internal/lsp/cmd/symbols.go|73 col 1| function : mapToSymbol
internal/lsp/cmd/symbols.go|94 col 1| function : printDocumentSymbol
internal/lsp/cmd/symbols.go|105 col 1| function : printSymbolInformation
internal/lsp/cmd/symbols.go|109 col 1| function : positionToString

g:lsp_document_symbol_detail=1:

internal/lsp/cmd/symbols.go|20 col 6| struct : symbolsstruct{...}                                               
internal/lsp/cmd/symbols.go|21 col 2| field :   app                                                             
internal/lsp/cmd/symbols.go|24 col 1| method : (*symbols).Namefunc() string                                     
internal/lsp/cmd/symbols.go|25 col 1| method : (*symbols).Parentfunc() string                                   
internal/lsp/cmd/symbols.go|26 col 1| method : (*symbols).Usagefunc() string                                    
internal/lsp/cmd/symbols.go|27 col 1| method : (*symbols).ShortHelpfunc() string                                
internal/lsp/cmd/symbols.go|28 col 1| method : (*symbols).DetailedHelpfunc(f *flag.FlagSet)                     
internal/lsp/cmd/symbols.go|35 col 1| method : (*symbols).Runfunc(ctx context.Context, args ...string) error    
internal/lsp/cmd/symbols.go|73 col 1| function : mapToSymbolfunc(m map[string]interface{}) (interface{}, error) 
internal/lsp/cmd/symbols.go|94 col 1| function : printDocumentSymbolfunc(s protocol.DocumentSymbol)             
internal/lsp/cmd/symbols.go|105 col 1| function : printSymbolInformationfunc(s protocol.SymbolInformation)      
internal/lsp/cmd/symbols.go|109 col 1| function : positionToStringfunc(r protocol.Range) string                 

@satorunooshie satorunooshie marked this pull request as ready for review August 4, 2023 08:12
@prabirshrestha prabirshrestha merged commit 2be2b07 into prabirshrestha:master Aug 5, 2023
18 checks passed
@prabirshrestha
Copy link
Owner

Merged. Thanks.

This was referenced Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants