-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom dictionaries defined in cspell.json
do not show up in drop-down to add words.
#2056
Comments
@Jason3S It appears from looking at your cSpell.json that one can use the properties Would you mind updating the documentation to reflect this? |
@Jason3S I also wanted to say thank you for this extension! As a recommendation, it would be very helpful to users if your examples showed how to use ALL configuration settings in each file format that is supported in a single example section at the end of the documentation. e.g., the cspell.json section is rather sparse cspell.json// cSpell Settings
{
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": [
"mkdirp",
"tsmerge",
"githubusercontent",
"streetsidesoftware",
"vsmarketplacebadge",
"visualstudio"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
"hte"
]
} the VSCode settings.json section has a bit more settings.json //-------- Code Spell Checker Configuration --------
// The Language local to use when spell checking. "en", "en-US" and "en-GB" are currently supported by default.
"cSpell.language": "en",
// Controls the maximum number of spelling errors per document.
"cSpell.maxNumberOfProblems": 100,
// Controls the number of suggestions shown.
"cSpell.numSuggestions": 8,
// The minimum length of a word before checking it against a dictionary.
"cSpell.minWordLength": 4,
// Specify file types to spell check.
"cSpell.enabledLanguageIds": [
"csharp",
"go",
"javascript",
"javascriptreact",
"markdown",
"php",
"plaintext",
"typescript",
"typescriptreact",
"yml"
],
// Enable / Disable the spell checker.
"cSpell.enabled": true,
// Display the spell checker status on the status bar.
"cSpell.showStatus": true,
// Words to add to dictionary for a workspace.
"cSpell.words": [],
// Enable / Disable compound words like 'errormessage'
"cSpell.allowCompoundWords": false,
// Words to be ignored and not suggested.
"cSpell.ignoreWords": ["behaviour"],
// User words to add to dictionary. Should only be in the user settings.
"cSpell.userWords": [],
// Specify paths/files to ignore.
"cSpell.ignorePaths": [
"node_modules", // this will ignore anything the node_modules directory
"**/node_modules", // the same for this one
"**/node_modules/**", // the same for this one
"node_modules/**", // Doesn't currently work due to how the current working directory is determined.
"vscode-extension", //
".git", // Ignore the .git directory
"*.dll", // Ignore all .dll files.
"**/*.dll" // Ignore all .dll files
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"`
"cSpell.flagWords": ["hte"],
// Set the delay before spell checking the document. Default is 50.
"cSpell.spellCheckDelayMs": 50, but neither demonstrates how to use all the available options. |
As you figured out, adding I'll take a look at making
|
customDictionaries
Not Permitted in cspell.json
cspell.json
do not show up drop-down to add words.
cspell.json
do not show up drop-down to add words.cspell.json
do not show up in drop-down to add words.
@Jason3S What about “scope”. Will that also be optional? Regardless, can you please add both of these to your documentation because they are not there. |
* fix: Show all possible dictionaries on codeAction Related to #2056
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not sure if this is by design or an accident, but I cannot add
customDictionaries
to acspell.json
. It is only available within asettings.json
when using VSCode.Per the docs:
Hence, the
cspell.json
overrides the VSCodesettings.json
settings. Thus, I can't see my right-click drop-down of custom dictionaries. In addition to taking it out, I have tried simply leaving thecustomDictionaries
property in regardless of the error. In both cases, the right-click context menu dropdown does not show the custom dictionaries.This makes things a little cumbersome when trying to sync settings with other developers who don't use VSCode.
System Info
OS:
Windows 10, x64-bit
cSpell:
v2.2.5
VSCode:
1.68.1
Project Directory Layout
settings.json
cspell.json
cspell.json
Removed (settings.json
Alone)Both
cspell.json
andsettings.json
The text was updated successfully, but these errors were encountered: