diff --git a/containers b/containers index d732a67..618c169 160000 --- a/containers +++ b/containers @@ -1 +1 @@ -Subproject commit d732a67e76f60fd037547c3ffe8776c6deda6bab +Subproject commit 618c1694c731c4397bc8a46983e6a991c7d97a9e diff --git a/dsymbol b/dsymbol index ddf8c97..05439bb 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit ddf8c97753471388303d64a47bdade85cc4de003 +Subproject commit 05439bb691e8130f2ff75797fa79df5146c5d729 diff --git a/libdparse b/libdparse index 0dccfca..d4da4f0 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 0dccfca0e2a132b3c862a62da1c323ccd24e622d +Subproject commit d4da4f00f361528e67fe4cc9622fd681c9004e73 diff --git a/src/server/autocomplete.d b/src/server/autocomplete.d index c808303..98baee9 100644 --- a/src/server/autocomplete.d +++ b/src/server/autocomplete.d @@ -445,14 +445,14 @@ ImportKind determineImportKind(T)(T tokens) unittest { - Token[] t; - t ~= Token(tok!"import"); - t ~= Token(tok!"identifier"); - t ~= Token(tok!"."); - t ~= Token(tok!"identifier"); - t ~= Token(tok!":"); - t ~= Token(tok!"identifier"); - t ~= Token(tok!","); +Token[] t = [ +Token(tok!"import"), +Token(tok!"identifier"), +Token(tok!"."), +Token(tok!"identifier"), +Token(tok!":"), +Token(tok!"identifier"), +Token(tok!",")]; assert (determineImportKind(t) == ImportKind.selective); Token[] t2; t2 ~= Token(tok!"else"); @@ -528,7 +528,7 @@ body } } - string resolvedLocation = ModuleCache.resolveImportLoctation(path); + string resolvedLocation = ModuleCache.resolveImportLocation(path); if (resolvedLocation is null) { warning("Could not resolve location of ", path); diff --git a/src/server/server.d b/src/server/server.d index 65251f4..7ae2014 100644 --- a/src/server/server.d +++ b/src/server/server.d @@ -32,8 +32,6 @@ import std.allocator; import std.exception : enforce; import std.experimental.logger; -import core.memory; - import msgpack; import dsymbol.string_interning; @@ -42,7 +40,6 @@ import messages; import autocomplete; import dsymbol.modulecache; import dsymbol.symbol; -import core.memory; import dcd_version; /// Name of the server configuration file @@ -114,9 +111,6 @@ int main(string[] args) sw.stop(); info(ModuleCache.symbolsAllocated, " symbols cached."); info("Startup completed in ", sw.peek().to!("msecs", float), " milliseconds."); - import core.memory : GC; - GC.minimize(); - // No relative paths version (Posix) chdir("/"); @@ -190,7 +184,6 @@ int main(string[] args) if (request.kind & RequestKind.addImport) { ModuleCache.addImportPaths(request.importPaths); - GC.minimize(); } if (request.kind & RequestKind.autocomplete) {