Skip to content

Commit

Permalink
Merge pull request #72405 from CyrusNajmabadi/simplifyDiagnosticOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi authored Mar 5, 2024
2 parents b8f54f5 + 76efe17 commit 0d6e0ba
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ public static DiagnosticMode GetDiagnosticMode(this IGlobalOptionService globalO
: diagnosticModeOption;
}

public static bool IsLspPullDiagnostics(this IGlobalOptionService globalOptions, Option2<DiagnosticMode>? option = null)
=> GetDiagnosticMode(globalOptions, option) == DiagnosticMode.LspPull;

public static bool IsSolutionCrawlerPushDiagnostics(this IGlobalOptionService globalOptions, Option2<DiagnosticMode>? option = null)
=> GetDiagnosticMode(globalOptions, option) == DiagnosticMode.SolutionCrawlerPush;
public static bool IsLspPullDiagnostics(this IGlobalOptionService globalOptions)
=> GetDiagnosticMode(globalOptions) == DiagnosticMode.LspPull;
}
}

0 comments on commit 0d6e0ba

Please sign in to comment.