Skip to content

Commit db8ae5e

Browse files
committed
fix race condition where repl context has no InterpreterConfiguration set yet.
1 parent ebb8aa0 commit db8ae5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ private LanguageServerSettings.PythonSettings GetSettings(Uri scopeUri = null) {
390390
context = _clientContexts.Find(c => scopeUri != null && c.RootPath != null && PathUtils.IsSamePath(c.RootPath.ToLower(), pathFromScopeUri));
391391
}
392392

393-
if (context == null) {
393+
if (context == null || context.InterpreterConfiguration == null) {
394394
Debug.WriteLine(String.Format("GetSettings() scopeUri not found: {0}", scopeUri));
395395
return null;
396396
}

0 commit comments

Comments
 (0)