Fixes
fix: Report errors (#9267)
fix: Report errors (#9267)
This pull request introduces improvements to error handling and debugging information in the spell-checking workflow. The main changes focus on providing more informative error messages and ensuring that errors encountered during document processing are surfaced promptly.
Error handling improvements:
- In
processFile(packages/cspell/src/lint/processFile.ts), the function now throws the first error fromr.errorsif any are present, ensuring that errors encountered during spell checking are not silently ignored.
Debugging and diagnostics:
- In
resolveParser(packages/cspell-lib/src/lib/Settings/CSpellSettingsServer.ts), the assertion message has been enhanced to include a list of available parsers when a requested parser is not found, making it easier to diagnose configuration issues.
fix: ParsedTag can only be boolean values for now. (#9268)
fix: ParsedTag can only be boolean values for now. (#9268)
This pull request updates the ParsedTag type throughout the codebase to remove the possibility of a string value, restricting it to only boolean or undefined. This change is applied consistently across type definitions and source files.
Note: The is possible because it has only been an experimental feature and isn't used.
Type definition changes:
- Updated the
ParsedTagtype inpackages/cspell-types/api/Parser/index.d.mtsto only allowbooleanorundefined, removing support forstring. - Updated the
ParsedTagtype inpackages/cspell-types/api/index.d.mtsto only allowbooleanorundefined, removing support forstring. - Updated the
ParsedTagtype inpackages/cspell-types/src/Parser/parser.tsto only allowbooleanorundefined, removing support forstring.
Dictionary Updates
fix: Workflow Bot -- Update Dictionaries (main) (#9266)
fix: Workflow Bot -- Update Dictionaries (main) (#9266)
Update Dictionaries (main)
Summary
.../snapshots/dart-lang/sdk/report.yaml | 6 +----
.../snapshots/dart-lang/sdk/snapshot.txt | 4 +--
.../snapshots/gitbucket/gitbucket/report.yaml | 3 +--
.../snapshots/gitbucket/gitbucket/snapshot.txt | 3 +--
packages/cspell-bundled-dicts/package.json | 6 ++---
pnpm-lock.yaml | 29 +++++++++++++---------
6 files changed, 24 insertions(+), 27 deletions(-)