Skip to content

Commit

Permalink
Merge pull request #359 from jonathan-conder-sm/master
Browse files Browse the repository at this point in the history
Fix field mismatch in setup_server
  • Loading branch information
pfitzseb authored Jun 1, 2023
2 parents 8334959 + 67f7cd3 commit 6ab1bf4
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 6ab1bf4

Please sign in to comment.