提交 06df0b03 编写于 作者: S Sam Harwell

Remove unnecessary check for Visual Studio 2015

上级 4442cf47
......@@ -18,7 +18,6 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.Utilities
internal sealed class VisualStudioWaitIndicator : IWaitIndicator
{
private readonly SVsServiceProvider _serviceProvider;
private readonly bool _isUpdate1;
private static readonly Func<string, string, string> s_messageGetter = (t, m) => string.Format("{0} : {1}", t, m);
......@@ -26,11 +25,6 @@ internal sealed class VisualStudioWaitIndicator : IWaitIndicator
public VisualStudioWaitIndicator(SVsServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
var shell = serviceProvider.GetService(typeof(SVsShell)) as IVsShell;
shell.GetProperty((int)__VSSPROPID5.VSSPROPID_ReleaseVersion, out var property);
_isUpdate1 = Equals(property, "14.0.24720.0 D14REL");
}
public WaitIndicatorResult Wait(
......@@ -59,13 +53,6 @@ public VisualStudioWaitIndicator(SVsServiceProvider serviceProvider)
private VisualStudioWaitContext StartWait(
string title, string message, bool allowCancel, bool showProgress)
{
// Update1 has a bug where trying to update hte progress bar will cause a hang.
// Check if we're on update1 and turn off 'showProgress' in that case.
if (_isUpdate1)
{
showProgress = false;
}
var componentModel = (IComponentModel)_serviceProvider.GetService(typeof(SComponentModel));
var workspace = componentModel.GetService<VisualStudioWorkspace>();
Contract.ThrowIfNull(workspace);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册