# interface DocumentSymbolParams
# interface TextDocumentIdentifier
var params = {textDocument: {uri: util.LspFileToUri(fname)}}
- lspserver.rpc_a('textDocument/documentSymbol', params,
- function(symbol.DocSymbolReply, [fname]))
+ lspserver.rpc_a('textDocument/documentSymbol', params, (_, reply) => {
+ symbol.DocSymbolReply(lspserver, reply, fname)
+ })
enddef
# Request: "textDocument/formatting"
# process the 'textDocument/documentSymbol' reply from the LSP server
# Open a symbols window and display the symbols as a tree
# Result: DocumentSymbol[] | SymbolInformation[] | null
-export def DocSymbolReply(fname: string, lspserver: dict<any>, docsymbol: any)
+export def DocSymbolReply(lspserver: dict<any>, docsymbol: any, fname: string)
var symbolTypeTable: dict<list<dict<any>>> = {}
var symbolLineTable: list<dict<any>> = []