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

diagnosticLevel can't be overwritten for a specific file

Open icodeyou opened this issue 2 years ago • 2 comments

Hello,

I have these settings for CSpell :

"cSpell.diagnosticLevel": "Error",
    "cSpell.overrides": [
        {
            "language": "fr",
            "filename": "**/*_fr.yaml",
            "diagnosticLevel": "Hint" // Warning here
        }
    ],

I can overwrite "language" and "filename", but not "diagnosticLevel". If I do this, VS Code displays this warning :

Property diagnosticLevel is not allowed

This VS Code warning has no reason to be here, because everything is working well on my project (I have a diagnosticLevel of type "Error" on all my files except for the one that I overrides)

image

icodeyou avatar Mar 16 '23 16:03 icodeyou

@icodeyou,

It is not currently supported to use overrides to set diagnosticLevel.

You can use a Multi-Root Workspace.

image

Jason3S avatar Mar 16 '23 17:03 Jason3S

A Multi-Root workspace is not a solution for me because I want to apply this to all files **/*_fr.yaml as I wrote in the code above.

I don't understand why you say that it is not supported, because the solution is working on my computer. It clearly overrides the property "diagnosticLevel"

I don't understand why there is a warning if it is working.

icodeyou avatar Mar 17 '23 16:03 icodeyou