提交 fbd2a96b 编写于 作者: S Sam Harwell

Fix inconsistent FatalError references

上级 40aef0c4
// Licensed to the .NET Foundation under one or more agreements. // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license. // The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information. // See the LICENSE file in the project root for more information.
extern alias InteractiveHost; extern alias InteractiveHost;
using System; using System;
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
using Microsoft.VisualStudio.InteractiveWindow.Shell; using Microsoft.VisualStudio.InteractiveWindow.Shell;
using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Shell.Interop;
using FatalError = InteractiveHost::Microsoft.CodeAnalysis.ErrorReporting.FatalError;
using Task = System.Threading.Tasks.Task; using Task = System.Threading.Tasks.Task;
namespace Microsoft.VisualStudio.LanguageServices.Interactive namespace Microsoft.VisualStudio.LanguageServices.Interactive
...@@ -45,8 +47,8 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke ...@@ -45,8 +47,8 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
Assumes.Present(_componentModel); Assumes.Present(_componentModel);
Assumes.Present(menuCommandService); Assumes.Present(menuCommandService);
InteractiveHost::Microsoft.CodeAnalysis.ErrorReporting.FatalError.Handler = WatsonReporter.ReportFatal; FatalError.Handler = WatsonReporter.ReportFatal;
InteractiveHost::Microsoft.CodeAnalysis.ErrorReporting.FatalError.NonFatalHandler = WatsonReporter.ReportNonFatal; FatalError.NonFatalHandler = WatsonReporter.ReportNonFatal;
// Load the Roslyn package so that its FatalError handlers are hooked up. // Load the Roslyn package so that its FatalError handlers are hooked up.
shell.LoadPackage(Guids.RoslynPackageId, out var roslynPackage); shell.LoadPackage(Guids.RoslynPackageId, out var roslynPackage);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册