Skip to content

Commit

Permalink
Fix field mismatch in setup_server
Browse files Browse the repository at this point in the history
17cca44 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.
  • Loading branch information
jonathan-conder-sm committed Jun 1, 2023
1 parent 8334959 commit 67f7cd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/interface.jl
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 67f7cd3

Please sign in to comment.