Skip to content

Conversation

@koppor
Copy link
Member

@koppor koppor commented Sep 8, 2025

Steps to test

  1. Open several bib files
  2. Switch tabs back and forth
  3. No exception should be shown.

Mandatory checks

koppor and others added 4 commits September 8, 2025 20:54
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
@koppor koppor marked this pull request as draft September 8, 2025 19:29
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
@koppor koppor marked this pull request as ready for review September 8, 2025 19:59
@koppor koppor added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 8, 2025
@trag-bot
Copy link

trag-bot bot commented Sep 8, 2025

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

@koppor koppor changed the title Remove exception if file is not on a repository Remove exception if file is not within a repository Sep 8, 2025
@koppor koppor changed the title Remove exception if file is not within a repository Remove exception if file is not within a git repository Sep 8, 2025
@koppor koppor changed the title Remove exception if file is not within a git repository Fix: Nexception if file is not within a git repository Sep 8, 2025
@koppor koppor changed the title Fix: Nexception if file is not within a git repository Fix: No exception if file is not within a git repository Sep 8, 2025
@trag-bot
Copy link

trag-bot bot commented Sep 8, 2025

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

@calixtus calixtus enabled auto-merge September 8, 2025 20:09
Comment on lines +53 to +54
@Inject
private GitHandlerRegistry gitHandlerRegistry;
Copy link

Choose a reason for hiding this comment

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

Field injection should be avoided in favor of constructor injection to ensure proper initialization and make dependencies explicit. This also improves testability and makes the class immutable.

private TaskExecutor taskExecutor;

@Inject
private GitHandlerRegistry gitHandlerRegistry;
Copy link

Choose a reason for hiding this comment

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

The field should be marked as final since it's injected in the constructor and never reassigned, following the principles of immutability from Effective Java.

@calixtus calixtus added this pull request to the merge queue Sep 8, 2025
Merged via the queue into main with commit 87a8f42 Sep 8, 2025
40 checks passed
@calixtus calixtus deleted the fix-not-under-version-control branch September 8, 2025 20:32
Siedlerchr added a commit that referenced this pull request Sep 9, 2025
* upstream/main:
  Fix typo in PR template
  Fix: No exception if file is not within a git repository (#13839)
  Fix lsp4j modules (#13835)
  New Crowdin updates (#13837)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants