Search in sources :

Example 1 with DiagnosticScope

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;
}
Also used : DiagnosticScope(com.github._1c_syntax.bsl.languageserver.diagnostics.metadata.DiagnosticScope)

Aggregations

DiagnosticScope (com.github._1c_syntax.bsl.languageserver.diagnostics.metadata.DiagnosticScope)1