cspell-action icon indicating copy to clipboard operation
cspell-action copied to clipboard

Support suggestions (`--show-suggestions`) for words added via `flagWords`

Open klonos opened this issue 2 years ago • 1 comments

Problem summary

Words added via flagWords are detected as "unknown word" and there is no suggestions despite having configured some in the settings file.

Details

As per https://streetsidesoftware.com/vscode-spell-checker/docs/configuration/#cspellflagwords, we have the following configured in the cspell.json GHA configuration file for our project:

  "flagWords": [
    "blacklist: denylist, deny list, deny, block, denied list, blocked list",
    "blacklisted: disallowed, denied, blocked",
    "blacklisting: disallowing, denying, blocking",
    "master: primary, main, active, default, base",
    "slave: secondary, replica, standby, fallback",
    "webmaster: admin, administrator",
    "whitelist: allowlist, allow list, allow, allowed list",
    "whitelisted: allowed",
    "whitelisting: allowing"
  ],

However, this is the output:

As you can see, there are no suggestions, and the words are reported as "unknown" instead of "flagged".

klonos avatar Nov 23 '23 12:11 klonos

@klonos,

You bring up a good point. That action reporting hasn't been updated since the suggestion feature was added.

Jason3S avatar Nov 24 '23 12:11 Jason3S