diff --git a/Build/debugpy-version.txt b/Build/debugpy-version.txt index 60fdb8d5d2..afa2b3515e 100644 --- a/Build/debugpy-version.txt +++ b/Build/debugpy-version.txt @@ -1 +1 @@ -1.6.7 \ No newline at end of file +1.8.0 \ No newline at end of file diff --git a/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs b/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs index dbd65fafcf..4f70f64f3d 100644 --- a/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs +++ b/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs @@ -396,18 +396,6 @@ private LanguageServerSettings.PythonSettings GetSettings(Uri scopeUri = null) PythonConstants.TypeCheckingModeSetting, null, Site, PythonWorkspaceContextProvider.Workspace, out _) ?? _analysisOptions.TypeCheckingMode; - var ver3 = new Version(3, 0); - var version = context.InterpreterConfiguration.Version; - // show a warning if the python version is not supported - if (version.ToLanguageVersion() == PythonLanguageVersion.None) - { - MessageBox.ShowWarningMessage(Site, Strings.PythonVersionNotSupportedInfoBarText.FormatUI(context.InterpreterConfiguration.Description)); - } - else if (context.InterpreterConfiguration.Version < ver3) - { - MessageBox.ShowWarningMessage(Site, Strings.WarningPython2NotSupported); - } - // get task list tokens from options var taskListTokens = new List(); var taskListService = Site.GetService(); diff --git a/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs b/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs index 269765c066..46c0c2b6cb 100644 --- a/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs +++ b/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs @@ -28,6 +28,7 @@ using Microsoft.Build.Execution; using Microsoft.PythonTools.Commands; using Microsoft.PythonTools.Common; +using Microsoft.PythonTools.Common.Parsing; using Microsoft.PythonTools.Environments; using Microsoft.PythonTools.Infrastructure; using Microsoft.PythonTools.Interpreter; @@ -273,6 +274,14 @@ internal set { MSBuildConstants.InterpreterIdProperty, ReplaceMSBuildPath(_active.Configuration.Id) ); + var ver3 = new Version(3, 0); + var version = _active.Configuration.Version; + // show a warning if the python version is not supported + if (version.ToLanguageVersion() == PythonLanguageVersion.None) { + Utility.MessageBox.ShowWarningMessage(Site, Strings.PythonVersionNotSupportedInfoBarText.FormatUI(_active.Configuration.Description)); + } else if (_active.Configuration.Version < ver3) { + Utility.MessageBox.ShowWarningMessage(Site, Strings.WarningPython2NotSupported); + } } else { BuildProject.SetProperty(MSBuildConstants.InterpreterIdProperty, ""); }