Skip to content

Conversation

palukku
Copy link
Member

@palukku palukku commented Aug 14, 2025

Adds the language server capability to the ui so it can be enabled and disabled from the settings.

Also improved the integrity check by showing the diagnostics for the according field.

It also added support for settings by the client to enable/disable either consistency or integrity check (or both)

before
image

after
image

image

Steps to test

Start JabRef GUI and connect to the LSP Server with an editor of your choice or with VSCode using the extension here: https://github.com/palukku/JabRef-LSP-VSCode-Extension

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [/] Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (if change is visible to the user)
  • [/] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • [/] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@palukku palukku changed the title Adds Language Server to the UI and adds the integrity check Adds Language Server to the UI and adds the integrity/consistency check Aug 14, 2025
@subhramit subhramit changed the title Adds Language Server to the UI and adds the integrity/consistency check Add Language Server to the UI and add the integrity/consistency check Aug 15, 2025
Copy link
Member

@InAnYan InAnYan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Left some refactoring comments

Remove unnecessary classes and renaming
# Conflicts:
#	jabls/src/main/java/org/jabref/languageserver/BibtexTextDocumentService.java
@ThiloteE
Copy link
Member

ThiloteE commented Aug 22, 2025

Since this is GUI related, please add a screenshot of "before" and "after" in the PR description.

Copy link
Member

@InAnYan InAnYan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good work! I really impressed with how you decomposed the logic into classes and made a utility class for quickly making diagnostics.

I think this PR is ready to be merged after you address all comments

@palukku palukku marked this pull request as ready for review August 24, 2025 23:23
@palukku
Copy link
Member Author

palukku commented Aug 25, 2025

Tests are failing because of a "unused" translation which i have to look into tomorrow because it is used right here https://github.com/JabRef/jabref/pull/13697/files#diff-c110a4b72509335ad7887b409cde4794a3d04d1011494ae242c7f7d0f1a1c492R65

@JabRef JabRef deleted a comment from jabref-machine Aug 25, 2025
InAnYan
InAnYan previously approved these changes Aug 25, 2025
Copy link
Member

@InAnYan InAnYan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Everything works!

UPD: Firefox+GitHub lagged, and it showed me that I didn't have any review comments, so I hit approve.

subhramit
subhramit previously approved these changes Aug 25, 2025
Copy link
Member

@subhramit subhramit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code was pleasant to read. Good job.
Address Ruslan's comments and should be good to go.

@palukku palukku dismissed stale reviews from subhramit and InAnYan via e94df5e August 25, 2025 22:13
InAnYan
InAnYan previously approved these changes Aug 27, 2025
Copy link

trag-bot bot commented Aug 27, 2025

@trag-bot didn't find any issues in the code! ✅✨

@palukku palukku added this pull request to the merge queue Aug 27, 2025
Merged via the queue into JabRef:main with commit 1e7053a Aug 27, 2025
43 of 44 checks passed
@palukku palukku deleted the LSP-add-features branch August 27, 2025 10:35
Siedlerchr added a commit that referenced this pull request Aug 28, 2025
…n-c23b1a88-5c29-46a2-a007-701edd344b9b' into jetbrains-junie-issue-13623-run-c23b1a88-5c29-46a2-a007-701edd344b9b

* upstream/jetbrains-junie-issue-13623-run-c23b1a88-5c29-46a2-a007-701edd344b9b:
  Streamline code for getTabTitle() (#13781)
  Add missing variables
  Reformat BibTex in Show BibTex Source (#13761)
  Auto publish before JBang tests (#13779)
  Hotfix: calling of publish.yml
  Support BibLaTeX datamodel validations (#13693)
  Auto add and remove of "status: changes-required" label (#13778)
  New Crowdin updates (#13777)
  Restore local-only Git behavior for SLR to fix repository initialization error (#13775)
  Use vanilla hashset (#13771)
  Fix Springer Fetcher names (#13770)
  Fix condition
  Publish SNAPSHOT on jablib change (#13774)
  Adapt as per new set of checks (#13772)
  Bump jablib/src/main/resources/csl-styles from `1194364` to `17cfa60` (#13750)
  Fix path (#13769)
  Mode aware consistency check (#13584)
  Refine JBang check (#13765)
  Add Language Server to the UI and add the integrity/consistency check (#13697)
  Fix/remove comment code (#13763)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants