зеркало из https://github.com/microsoft/PTVS.git
Fix warning that repeatedly shows up (#7731)
* update versions exposed to users * fix warning repeatedly showing up * update debugpy version
This commit is contained in:
Родитель
1fd6cab4d6
Коммит
b72355d628
|
@ -1 +1 @@
|
|||
1.6.7
|
||||
1.8.0
|
|
@ -396,18 +396,6 @@ namespace Microsoft.PythonTools.LanguageServerClient {
|
|||
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<LanguageServerSettings.PythonSettings.PythonAnalysisSettings.TaskListToken>();
|
||||
var taskListService = Site.GetService<SVsTaskList, ITaskList>();
|
||||
|
|
|
@ -28,6 +28,7 @@ using System.Xml.XPath;
|
|||
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 @@ namespace Microsoft.PythonTools.Project {
|
|||
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, "");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче