Skip to content

Commit decf38e

Browse files
committed
Передача ключей в диагностику
1 parent 0f4f062 commit decf38e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/github/_1c_syntax/intellij/bsl/lsp/server/diagnostics/FunctionShouldHaveReturnDiagnostic.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public ParseTree visitFunction(BSLParser.FunctionContext ctx) {
5656
DiagnosticSeverity.Error,
5757
DiagnosticProvider.SOURCE
5858
);
59+
diagnostic.setCode(FunctionShouldHaveReturnDiagnostic.class.getSimpleName());
5960
diagnostics.add(diagnostic);
6061
}
6162
return ctx;

src/main/java/org/github/_1c_syntax/intellij/bsl/lsp/server/diagnostics/LineLengthDiagnostic.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public List<Diagnostic> getDiagnostics(BSLParser.FileContext fileTree) {
6060
DiagnosticSeverity.Error,
6161
DiagnosticProvider.SOURCE
6262
);
63+
diagnostic.setCode(LineLengthDiagnostic.class.getSimpleName());
6364
diagnostics.add(diagnostic);
6465
}
6566
});

0 commit comments

Comments
 (0)