use of com.github._1c_syntax.bsl.languageserver.diagnostics.metadata.DiagnosticScope in project bsl-language-server by 1c-syntax.
the class DiagnosticsConfiguration method inScope.
private static boolean inScope(DiagnosticInfo diagnosticInfo, FileType fileType) {
DiagnosticScope scope = diagnosticInfo.getScope();
DiagnosticScope fileScope;
if (fileType == FileType.OS) {
fileScope = DiagnosticScope.OS;
} else {
fileScope = DiagnosticScope.BSL;
}
return scope == DiagnosticScope.ALL || scope == fileScope;
}
Aggregations