Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Fix #914: Multiple fast opening of files causes GetAnalysisAsync to return old analysis #919

Merged
merged 2 commits into from
Apr 10, 2019

Conversation

AlexanderSher
Copy link
Contributor

No description provided.

@@ -212,7 +212,7 @@ internal PythonModule(ModuleCreationOptions creationOptions, IServiceContainer s
lock (AnalysisLock) {
LoadContent(content, version);

var startParse = ContentState < State.Parsing && _parsingTask == null;
var startParse = ContentState < State.Parsing && (_parsingTask == null || version > 0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to run multiple?

@AlexanderSher AlexanderSher merged commit 888d2f7 into microsoft:master Apr 10, 2019
@AlexanderSher AlexanderSher deleted the Fix914 branch April 10, 2019 21:51
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
…sync to return old analysis (microsoft#919)

* Fix microsoft#914: Multiple fast opening of files causes GetAnalysisAsync to return old analysis

* Disable out of order analysis for the cases when current session is small
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants