From 67f7cd38e85ca2e43906a41232d896d577b27415 Mon Sep 17 00:00:00 2001 From: Jonathan Conder Date: Tue, 29 Nov 2022 10:32:40 +1300 Subject: [PATCH] Fix field mismatch in setup_server 17cca44b changed the fields of the FileServer struct without also changing the setup_server method. This fixes that and renames some variables to match the fields. --- src/interface.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index e3254ab3..94ff4ee1 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -1,8 +1,9 @@ function setup_server(env = dirname(SymbolServer.Pkg.Types.Context().env.project_file), depot = first(SymbolServer.Pkg.depots()), cache = joinpath(dirname(pathof(SymbolServer)), "..", "store")) server = StaticLint.FileServer() ssi = SymbolServerInstance(depot, cache) - _, server.symbolserver = SymbolServer.getstore(ssi, env) - server.symbol_extends = SymbolServer.collect_extended_methods(server.symbolserver) + _, symbols = SymbolServer.getstore(ssi, env) + extended_methods = SymbolServer.collect_extended_methods(symbols) + server.external_env = ExternalEnv(symbols, extended_methods, Symbol[]) server end