vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

[Bug]: VSCode: `noConfigSearch` not working as expected

Open Nightblade opened this issue 2 years ago • 1 comments

Kind of Issue

No response

Tool or Library

cspell

Version

v2.16.0 (VSCode extension)

Supporting Library

Not sure

OS

Windows

OS Version

Win10 Pro x64 21H2

Description

In the VSCode CSpell extension, the noConfigSearch option isn't working as expected -- CSpell still finds and uses config files that are "local" to files opened outside the current VSCode workspace folder.

Steps to Reproduce

  1. Create a new folder called primary
  2. Create a primary\README.MD file
  3. Create a minimal primary\cspell.json file, contents: { "version": "0.2" }
  4. Make a copy of the primary folder called secondary
  5. Ensure your layout looks like this:
root
├─┬ primary
│ ├── README.md
│ └── cspell.json
├─┬ secondary
│ ├── README.md
│ └── cspell.json
  1. Open VSCode
  2. (Install the CSpell extension as needed)
  3. File -> Open Folder -> primary
  4. File -> Preferences -> settings -> User
  5. Enable noConfigSearch in the CSpell section (cSpell.noConfigSearch)
  6. File -> Open File -> secondary\README.md
  7. Open the Spell Checker Preferences window
  8. Click the FILE tab
  9. Make sure the "File" drop-down shows \secondary\README.md
  10. Config Files should now show secondary/cspell.json

Expected Behavior

At step 16 above, Config Files should show primary/cspell.json only.

Additional Information

No response

cspell.json

{ "version": "0.2" }

cspell.config.yaml

No response

Example Repository

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Nightblade avatar Feb 13 '23 03:02 Nightblade

image

Nightblade avatar Feb 13 '23 03:02 Nightblade