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

Why is optionVAlue considered correct? #6194

Open
1 task done
Arun-StarApps opened this issue Jul 24, 2024 · 2 comments
Open
1 task done

Why is optionVAlue considered correct? #6194

Arun-StarApps opened this issue Jul 24, 2024 · 2 comments

Comments

@Arun-StarApps
Copy link

Arun-StarApps commented Jul 24, 2024

Kind of Issue

Change in behavior / Regression

Tool or Library

cspell

Version

v4.0.4

Supporting Library

Not sure / None

OS

macOS

OS Version

12.7.5 (21H1222)

Description

function abc(optionVAlue) {
  console.log("optionVAlue::", optionVAlue);
}

Steps to Reproduce

  1. Install 'Code Spell Checker' VSCode Extenstion.
  2. Create test.jsx file
  3. paste code:
    function abc(optionVAlue) {
      console.log("optionVAlue::", optionVAlue);
    }

Expected Behavior

"optionVAlue": Unknown word.cSpell

Additional Information

No response

cspell.json

No response

cspell.config.yaml

No response

Example Repository

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Jason3S Jason3S transferred this issue from streetsidesoftware/cspell Jul 24, 2024
@Jason3S
Copy link
Collaborator

Jason3S commented Jul 24, 2024

@Arun-StarApps,

I can see how this is confusing and non-ideal. The spell checker tries its best to break code up into meaningful words:

image

One of the things it does it to try and find the word all in lower case, if it finds it, it is considered correct.

That is what is happening in this case.

There is not an easy solution to this problem, since it is common to see things like BREAKing, CURLedRequest, and PHPUnit in code.

@Arun-StarApps
Copy link
Author

@Jason3S
I was expecting 'optionVAalue' will be broken into three workds 'option', 'V' and 'Alue'.
so is there any setting to do this ?

@Jason3S Jason3S removed the bug label Aug 12, 2024
@Jason3S Jason3S changed the title [Bug]: Why is optionVAlue considered correct? Aug 12, 2024
@Jason3S Jason3S transferred this issue from streetsidesoftware/vscode-spell-checker Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants