swyphcosmo / vscode-spellchecker

Spell check extension for Visual Studio Code
MIT License
16 stars 10 forks source link

Ability to ignore by filename #72

Closed phil-the-dev closed 2 years ago

phil-the-dev commented 2 years ago

When editing my VS Code's settings.json, I'm seeing a lot of misspellings because of extension names. it would be neat if I could do something like ignoreFilenames: ["settings.json", "package.json"]

tjex commented 2 years ago

this exists already. check under Configuration File in the readme. (but I'm having trouble getting it to work actually) If it works for you, could you paste in here the code block, maybe my syntax is wrong.

Also, according to readme .documentTypes should limit the files which spellchecker works on, but it also doesn't work for me.

    "spellchecker.documentTypes": [
        "markdown", 
        "plaintext"
    ],
    "spellchecker.ignoreFileExtensions": [
        ".py", 
    ],
phil-the-dev commented 2 years ago

Well, I'm not talking about ignoring file types, but specific filename + extension; so I can get my translation json files spellchecked, but the VS Code User Setting json not spellchecked.

tjex commented 2 years ago

ahhhh right, sorry. No idea about that then

swyphcosmo commented 2 years ago

Thanks for the suggestion. I just added this feature in #81. I'll be releasing a new version of the extension soon.