You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LSP Refactor to use ranges instead of string matching (#13862)
* Refactor to use ranges instead of string matching
* Refactor to enhance field range handling and utilize aliases consistently
* improve range retrieval logic
* implement getAlias logic of Field
* change article highlighting
* fix
* enhance error and range handling in parser and fixpalukku#50
* address comments
* fix ParserResult test
* Better data structure for map (to avoid checks)
* Fix IntelliJ warning
* Fix linebreak
* Fix alphabetical ordering
* fix checkstyle
* add epilogPattern to constructor
---------
Co-authored-by: Oliver Kopp <[email protected]>
// this ensures that the line is highlighted from the beginning of the entry so it highlights "@Article{key," (but only if on the same line) and not just the citation key
if (entry.getFieldOrAlias(requiredField).isEmpty()) {
47
-
LspDiagnosticBuilderdiagnosticBuilder = LspDiagnosticBuilder.create(Localization.lang("Required field \"%0\" is empty.", requiredField.getName()));
47
+
LspDiagnosticBuilderdiagnosticBuilder = LspDiagnosticBuilder.create(parserResult, Localization.lang("Required field \"%0\" is empty.", requiredField.getName()));
if (entry.getFieldOrAlias(optionalField).isEmpty()) {
65
-
LspDiagnosticBuilderdiagnosticBuilder = LspDiagnosticBuilder.create(Localization.lang("Optional field \"%0\" is empty.", optionalField.getName()));
66
-
diagnosticBuilder.setContent(content);
64
+
LspDiagnosticBuilderdiagnosticBuilder = LspDiagnosticBuilder.create(parserResult, Localization.lang("Optional field \"%0\" is empty.", optionalField.getName()));
0 commit comments