diff --git a/src/dcd/server/autocomplete/complete.d b/src/dcd/server/autocomplete/complete.d index 66228906..32d3233a 100644 --- a/src/dcd/server/autocomplete/complete.d +++ b/src/dcd/server/autocomplete/complete.d @@ -65,6 +65,9 @@ enum CalltipHint { public AutocompleteResponse complete(const AutocompleteRequest request, ref ModuleCache moduleCache) { + import core.memory: GC; + scope(exit) GC.collect(); + const(Token)[] tokenArray; auto stringCache = StringCache(request.sourceCode.length.optimalBucketCount); auto beforeTokens = getTokensBeforeCursor(request.sourceCode,