Skip to content
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

Be able to exclude some dictionaries when making spelling suggestions. #1498

Closed
Jason3S opened this issue Aug 9, 2021 · 1 comment · Fixed by #1554
Closed

Be able to exclude some dictionaries when making spelling suggestions. #1498

Jason3S opened this issue Aug 9, 2021 · 1 comment · Fixed by #1554

Comments

@Jason3S
Copy link
Collaborator

Jason3S commented Aug 9, 2021

Feature

Is your feature request related to a problem? Please describe.
The ignoreWords list in a cspell.json file can get very long or you already have a file with a list of words to be considered correct but should not be suggested when making spelling suggestions.

Describe the solution you'd like
Two ways to mark a dictionary as no-suggest:

  1. Add noSuggest flag to dictionary definitions.
  2. Be able to indicate that a dictionary should not outside of the dictionary definitions.

1. noSuggest flag

Example:

"dictionaryDefinitions": [
    {
        "name": "discouraged-terms",
        "path": "./.cspell/discouraged-terms.txt",
        "addWords": false,
        "noSuggest": true
    }
],

2. Mark a dictionary as no-suggest.

Options

  1. Expand the dictionaries list to be able to take a record:
    dictionaries: [ { name: "product-names", noSuggest: true }, "ruby" ]
  2. Add noSuggestDictionaries that take a list of dictionary names.

Desired Behavior

  • Words found in a no-suggest dictionary should not be suggested even if they are included in another dictionary.
  • Words found in a no-suggest dictionary are considered correct.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant