Skip to content

Commit 097dca3

Browse files
TessenRauduchinok
authored andcommitted
[dotnet] Fix F# plugin compilation after daemon API changes
GitOrigin-RevId: 8e4e5c549067c381d9f30fcc6362cb2eb1e9e7ba
1 parent 5b8c2fa commit 097dca3

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ReSharper.FSharp/src/FSharp/FSharp.Psi.Daemon/src/Stages/FSharpCompilerWarningProcessor.fs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ type FSharpCompilerWarningProcessor() =
4040
project.ProjectProperties.TryGetConfiguration<IFSharpProjectConfiguration>(frameworkId)
4141

4242
interface ICompilerWarningProcessor with
43-
member this.ProcessCompilerWarning(file, info, compilerIds, _, _, _) =
43+
member this.ProcessCompilerWarning(file, info, compilerIds, _, _, _): CompilerWarningPreProcessResult =
4444
let configuration = getConfiguration file
45-
if isNull configuration then info else
45+
if isNull configuration then CompilerWarningPreProcessResult.NoChange else
4646

4747
let props = configuration.PropertiesCollection
4848

@@ -75,9 +75,4 @@ type FSharpCompilerWarningProcessor() =
7575
if not (warningsNotAsErrors.IsEmpty()) && Seq.exists warningsNotAsErrors.Contains compilerIds then
7676
warningIsError <- false
7777

78-
if not warningIsError then info else
79-
80-
info.Override(
81-
overriddenSeverity = Severity.ERROR,
82-
overriddenAttributeId = AnalysisHighlightingAttributeIds.ERROR,
83-
overriddenOverlapResolve = OverlapResolveKind.ERROR)
78+
if not warningIsError then CompilerWarningPreProcessResult.NoChange else CompilerWarningPreProcessResult.LiftToError

0 commit comments

Comments
 (0)