Skip to content

feat: merged German diagnostics#3403

Closed
Dronakurl wants to merge 9 commits into
Automattic:masterfrom
Dronakurl:feature/merged-german-diagnostics
Closed

feat: merged German diagnostics#3403
Dronakurl wants to merge 9 commits into
Automattic:masterfrom
Dronakurl:feature/merged-german-diagnostics

Conversation

@Dronakurl

Copy link
Copy Markdown
Contributor

Merge German language support with diagnostic delay feature:

  • All features from feature/german-language-support
  • All features from feature/diagnostics-in-normal-mode
  • Based on latest upstream/master

This branch combines both feature branches for production deployment.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai

Dronakurl and others added 7 commits May 16, 2026 11:22
Revert the change that requested two configuration sections (harper-ls and
None), which caused the second config to overwrite the first. The
update_config_from_obj() replaces the entire config, so processing both
results in the second (empty or partial) config wiping out the first.

The config.rs changes already handle both wrapped and unwrapped LSP
configuration formats via Config::from_lsp_config().

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Includes:
- German dictionary (compressed .dict.gz)
- German parser (PlainGerman)
- German linters (noun capitalization, sentence capitalization, spell check)
- German Weir rules (25 rules)
- Language detection registry
- Integration tests for German support
- Diagnostic delay fix for pull_config

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
…ranch

This commit applies the clean-up changes from feature/diagnostics-in-normal-mode
(commit 11bf93d) to the feature/merged-german-diagnostics branch, which combines
both German language support and the diagnostics timing feature.

Changes:
- Add PendingDiagnosticTask type alias
- Add last_change_generation field for generation-based tracking
- Add publish_diagnostics_immediately method for instant feedback on code actions
- Add HarperRecordLintAndUpdate command
- Update code actions to use immediate diagnostics for dictionary updates
- Use generation-based tracking instead of timestamp-based for delayed diagnostics

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The german_weir_rules/mod.rs was directly trying to add WeirLinter as a
chunk_expr_linter, but WeirLinter doesn't implement ExprLinter directly.
Fixed by using the same pattern as weir_rules/mod.rs: convert to
sentence_linter or chunk_linter first.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@hippietrail

Copy link
Copy Markdown
Collaborator

Merge German language support with diagnostic delay feature:

  • All features from feature/german-language-support
  • All features from feature/diagnostics-in-normal-mode
  • Based on latest upstream/master

This branch combines both feature branches for production deployment.

Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe vibe@mistral.ai

What's the relationship between this PR and #3402

Dronakurl and others added 2 commits May 16, 2026 12:33
The german_weir_rules module was not being registered in the main
lint_group(), so the German weir rules were not being loaded.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
From lint_group/mod.rs, the german_weir_rules module is accessed via
super::german_weir_rules since both are sibling modules under linting/.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@Dronakurl Dronakurl closed this May 16, 2026
@Dronakurl

Copy link
Copy Markdown
Contributor Author

Sorry, that was a mistake, please ignore

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.

2 participants