From 2ae272b2bdfcadcf220f1cbcfe10374796104f6f Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 11 Jun 2019 16:21:02 -0700 Subject: [PATCH] actually populate buffer when reloading Ast --- src/Analysis/Ast/Impl/Modules/PythonModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analysis/Ast/Impl/Modules/PythonModule.cs b/src/Analysis/Ast/Impl/Modules/PythonModule.cs index 4907c28f2..c4e8fa134 100644 --- a/src/Analysis/Ast/Impl/Modules/PythonModule.cs +++ b/src/Analysis/Ast/Impl/Modules/PythonModule.cs @@ -589,7 +589,7 @@ private IDocumentAnalysis CreateAnalysis(int version, ModuleWalker walker, bool private PythonAst RecreateAst() { lock (AnalysisLock) { ContentState = State.None; - LoadContent(); + LoadContent(null, _buffer.Version); var parser = Parser.CreateParser(new StringReader(_buffer.Text), Interpreter.LanguageVersion, ParserOptions.Default); var ast = parser.ParseFile(Uri); ContentState = State.Parsed;