Repository navigation
chore: Prepare Release v10.5.0 (auto-deploy) - #9559
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
release-draft
branch
from
November 6, 2026 16:27
34d93de to
b599c0c
Compare
github-actions
Bot
force-pushed
the
release-draft
branch
22 times, most recently
from
November 10, 2026 17:46
6558ab1 to
528c5f6
Compare
github-actions
Bot
force-pushed
the
release-draft
branch
5 times, most recently
from
November 12, 2026 07:00
9854538 to
443f598
Compare
github-actions
Bot
force-pushed
the
release-draft
branch
25 times, most recently
from
November 13, 2026 14:34
ef568bc to
5a2701a
Compare
github-actions
Bot
force-pushed
the
release-draft
branch
from
November 13, 2026 15:01
5a2701a to
0cf0d2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v10.5.0
Release Notes
Details
Features
feat: Skip nested git worktrees by default (#9604)
feat: Skip nested git worktrees by default (#9604)
Summary
cspell now skips git worktrees inside the root folder, such as
.worktrees/featureor.claude/worktrees/feature. A worktree is another checkout of the same repository, often of another branch, so its files are not the files being checked.A new preset in
ignorePathPresets,nestedWorktrees, can disable this.Fixes #9515
Feature
A repository with a worktree of its
featurebranch, made withgit worktree add worktrees/feature feature:Before, running cspell in
project/checked both copies ofREADME.md:After, it checks only the repository's own
README.md:Running cspell in
worktrees/feature/still checks that worktree.To check nested worktrees again:
cspell.json{ "ignorePathPresets": { "nestedWorktrees": false } }What the
nestedWorktreespreset does:.gitignoreexcludes them, and with or without--gitignore..git/worktrees. Finding them does not search the worktrees' folders, so it stays fast however many worktrees there are.--force-checkis given, as withignorePaths.Technical Details
The worktree folders are added to the globs the file search ignores, so the search never enters them. Glob symbols in a folder's name, such as
(, are escaped.feat: Add `ignorePathPresets` and skip git's own files by default (#9600)
feat: Add
ignorePathPresetsand skip git's own files by default (#9600)Summary
cspell now skips git's own files inside the root folder:
.gitfile that git puts in a worktree or a submodule.gitfoldersGit's message files, such as
.git/COMMIT_EDITMSG, are still checked, so acommit-msghook that runscspell .git/COMMIT_EDITMSGkeeps working.A new setting,
ignorePathPresets, can disable this.Fixes #9590
Feature
cspell only reaches these files when dot files are checked (
--dotorenableGlobDot), or when they are named on the command line.Before, checking a git worktree with
--dotreported the words in its.gitfile:After:
No
ignorePathsglob could do this before: one that ignores the.gitfile also ignores.git/COMMIT_EDITMSG. Rules you already have for.gitkeep working.To check git's own files again:
cspell.json{ "ignorePathPresets": { "git": false } }What the
gitpreset does:MSG, such asCOMMIT_EDITMSG,MERGE_MSG, andTAG_EDITMSG, andEDIT_DESCRIPTION. They are kept directly inside a.gitfolder, and inside a linked worktree's folder in.git/worktrees.--filekeeps working: git keeps that file in the main repository's.gitfolder, outside the root..gitfolder, the files there are checked.ignorePathPresetsonly changes the presets it names. Presets from imported configs are combined.Technical Details
The preset's globs are relative to the root, so they match only below it. The file search skips the files and folders inside a
.gitfolder, except the message files and the folders that hold the message files of linked worktrees. A.gitfile it finds, or one named with--file, is reported as skipped.New exports:
cspell-lib:calcIgnorePathGlobs, which returns the globs of the enabled presets. Thecspellcommand line adds them to the globs it ignores while searching.cspell-lib:isIgnoredByPresets, which checks one file's URL against the enabled presets, relative to a root URL. Thecspellcommand line uses it to skip a file such as the.gitfile.@cspell/cspell-types:IgnorePathPresets, the type of the setting.feat: Add `features.overrideGlobsMatchFilesOnly` so override globs match only the path they name (#9598)
feat: Add
features.overrideGlobsMatchFilesOnlyso override globs match only the path they name (#9598)Summary
New feature option
features.overrideGlobsMatchFilesOnly. When it is enabled, afilenameglob inoverridesmatches only the path it names, not the files inside a folder with that name. It is disabled by default, so existing configs keep working.See #9590.
Feature
Today an override glob also matches the files inside a folder with the same name. For example,
examples.tsalso matches every file inside a folder namedexamples.ts, andsrc/**also matches a file namedsrc.With the option enabled, each glob matches only what it names. To apply an override to the files in a folder, end the glob with
/.cspell.config.yamlWhat a glob matches:
examples.tsexamples.ts, and the files in a folder with that name.examples.ts./srcsrcat the root, and the files in thesrcfolder.srcat the root.src/**srcfolder, and a file namedsrc.srcfolder.truein v11.Technical Details
cspell-glob: the glob matcher has a new option,extendNested. It defaults totrue, which keeps today's behavior: a glob is extended to also match the files nested beneath a folder with that name. Withfalse, the glob is not extended, and a glob ending in/**matches only the files beneath the folder.extendNested: false.fix: Add a Vim file type for .vim files and .vimrc (#9579)
fix: Add a Vim file type for .vim files and .vimrc (#9579)
Adds a
vimfile type with the.vimextension and the filenames.vimrc,_vimrc,vimrc,.gvimrcand_gvimrc, as Jason3S confirmed on the issue.filetypes.test.tschecks each of them.Closes #9489
Fixes
fix: Check files in a folder whose name starts with a space (#9608)
fix: Check files in a folder whose name starts with a space (#9608)
Summary
Files in a folder whose name starts with a space can now be checked. Before, cspell found the file but dropped the space from its path, then reported it as not found.
This affects:
cspell "**/readme.txt"orcspell "./ notes/readme.txt"--fileand--file-listentries, such asnotes/readme.txtGlobs, such as those in
ignorePathsandoverrides, now match a file whose name ends with a space correctly. For a file namedb(with a trailing space):bno longer matches it.b[ ]now matches it.Before, with
notes/readme.txt(the folder name starts with a space):After:
Entries in
--fileand--file-listkeep their leading spaces. Trailing spaces and Windows line endings are still removed.Technical Details
notes/readme.txtbecamenotes/readme.txt.@cspell/urlnow encodes those characters before it builds the URL.--fileand--file-listentries were trimmed on both sides. Now only the end is trimmed.fix: Check folders named on the command line with `#` or a leading space (#9610)
fix: Check folders named on the command line with
#or a leading space (#9610)Summary
A folder named on the command line is now checked when its name contains a
#after a space, starts with#, or starts with a space. Before, cspell found no files in it, or checked a different folder.cspell-globalso exportsglobInFolder, to make a glob that matches inside a folder. The folder's glob symbols are escaped.Fix
A folder
notes #2withtodo.mdinside.Before:
After:
Before, a folder named
notes(with a leading space) checked the foldernotesinstead.Technical Details
/**to it. The folder name was used as glob text, so#2/**was read as a comment, and a leading space was trimmed. The folder name is now escaped.wt [(]1[)]/**, are rebased fully. This only narrows the first pass of the file search; which files are checked does not change.fix: Glob symbols in a config folder's name no longer match other folders (#9605)
fix: Glob symbols in a config folder's name no longer match other folders (#9605)
Summary
When a config file sits in a folder whose name has glob symbols, such as
docs (old), itsfilesandignorePathsglobs could match files in other folders. The folder name was read as part of the glob, sodocs (old)also matcheddocs old.Folder names are now escaped before they are added to a glob.
cspell-globalso exportsescapeGlobPath, to add a folder to a glob so that it matches only that folder.Fix
Files:
docs (old)/cspell.json:{ "ignorePaths": ["*.md"] }docs (old)/a.mddocs old/b.mdBefore,
docs old/b.mdwas skipped:After:
With
{ "files": ["*.md"] }in the same config, cspell used to checkdocs old/b.mdinstead ofdocs (old)/a.md. It now checksdocs (old)/a.md.Technical Details
Each glob symbol in a folder name becomes a character class, such as
[(], so the escape also works on Windows, where a\in a glob becomes/. A!at the start becomes@(!). Whitespace at the start or the end is escaped too, so it is not trimmed.fix: correct the `ignorePaths` default and its `.git/COMMIT_EDITMSG` advice (#9599)
fix: correct the
ignorePathsdefault and its.git/COMMIT_EDITMSGadvice (#9599)Summary
The documentation for
ignorePaths(hover text, JSON schema, website) described a default and a.gitworkaround that don't match what cspell does. This corrects it. Nothing about how cspell works has changed.[], not["node_modules/"].cspellcommand line skipsnode_modules/**on its own, and only when no--excludeis given..git/COMMIT_EDITMSGnow suggests[".git/!(COMMIT_EDITMSG)"]. It ignores everything in.gitexcept the commit message. The old suggestion still let files such as.git/configand.git/hooks/*be checked.fix: allow globs with `--file` again (#9601)
fix: allow globs with
--fileagain (#9601)Summary
Since v10.2.0,
cspell lintrefused globs combined with--fileor--files, witherror: mixing globs and --file is not supported. That broke command lines that worked before, including two examples incspell lint --help. They work again: the globs filter the files given with--file, as they did before v10.2.0.This checks only the Markdown files at the root among
$FILES, and exits without an error when none match.Globs combined with
--force-checkare still an error.fix: Fix word splitter pruning for words following compound prefix joined by punctuation (#9573)
fix: Fix word splitter pruning for words following compound prefix joined by punctuation (#9573)
Summary
When segmenting identifiers with internal punctuation (
.,-,_), the word splitter previously pruned search branches againstparentCoststored inknownPathsByIndex. BecauseknownPathsByIndexholds the cost of the first path that reached the index rather than the optimal suffix cost, a later branch exploring a compound or sub-segmented dictionary word (such asmax_redirectionsafterHTTPRedirectHandler.) was prematurely skipped.Only prune punctuation-separated breaks against
parentCostwhenparentCost === 0(which cannot be improved upon), allowing valid dictionary words following punctuation separators to be matched.Fixes #9469
fix: Stop skipping files like console.log.ts as log files (#9589)
fix: Stop skipping files like console.log.ts as log files (#9589)
Summary
File type patterns that contain
*matched anywhere in a file name instead of the whole name, so some files got the wrong file type and were skipped or misread:console.log.tswas treated as a log file, socspell lintskipped it, even with--force.cspell.env.config.jswas treated as a shell script.README.ignore.mdwas treated as an ignore file.Each of them now gets the file type of its extension. Patterns now have to match the whole file name, as in VS Code.
Technical Details
*.log.?, soapp.log.1is still a log file, butapp.log.10andapp.log.oldno longer are.fix: Add a Vim file type for .vim files and .vimrc (#9579)
fix: Add a Vim file type for .vim files and .vimrc (#9579)
Adds a
vimfile type with the.vimextension and the filenames.vimrc,_vimrc,vimrc,.gvimrcand_gvimrc, as Jason3S confirmed on the issue.filetypes.test.tschecks each of them.Closes #9489
fix: Accept long words with many alternate characters (#9574)
fix: Accept long words with many alternate characters (#9574)
Summary
Fixes long words being reported as unknown even though the dictionary accepts their spelling. This could happen when a dictionary's
repMapallowed alternate characters in many places in a word, because cspell only tried some of the combinations.fix: Stop `cspell trace` crashing on an empty word with compound words (#9576)
fix: Stop
cspell tracecrashing on an empty word with compound words (#9576)Summary
cspell traceno longer crashes when it is given an empty word and compound words are allowed. It now reports the word as not found in every dictionary, the same as any other unknown word.cspell trace "" --allow-compound-wordsBefore:
After:
Code that uses
cspell-trie-libdirectly gets the same fix: looking up an empty word with legacy compounds now returns a not-found result instead of throwing.fix: Avoid slow checks on non-ASCII words with many repMap matches (#9564)
fix: Avoid slow checks on non-ASCII words with many repMap matches (#9564)
Summary
Checking a non-ASCII word no longer takes seconds when a dictionary's
repMaphas many matches for that word.nn-no-altdictionary,éfollowed by 12as took about 3 seconds. It now takes a few milliseconds.a→bandb→c,éano longer matcheséc. ASCII words already work this way.fix: Avoid running out of memory on words with many repMap matches (#9543)
fix: Avoid running out of memory on words with many repMap matches (#9543)
Summary
Checking a word with many letters that match a dictionary's
repMapno longer runs out of memory or fails with aRangeError.repMapentries (such as in@cspell/dict-da-dk,@cspell/dict-de-de, or customrepMapdefinitions) no longer crashcspell.nn-no-alt, this affected 65 of 34,077 words in a document with everyæ,ø, andåwritten asae,oe, andaa.Related to #9535
Technical Details
Version Information
v10.5.010.5.0Summary