code-d icon indicating copy to clipboard operation
code-d copied to clipboard

Add fixes for dscanner issues (lightbulb on linter issues)

Open WebFreak001 opened this issue 9 years ago • 3 comments

"no such symbol" could perform a global search for the symbol and prompt the user with possible imports "Identifier not matching phobos style guidelines" could replace it with a fixed one "variable not used" could remove it

WebFreak001 avatar Sep 13 '16 15:09 WebFreak001

I have added the following to /.vscode/settings.json automatically using the lightbulb for the "Dscanner: ... phobos style guidelines" popup:

{
    "dscanner.ignoredKeys": [
        "dscanner.style.phobos_naming_convention"
    ]
}

However, it doesn't seem to turn off the warnings.

Is this a code-d issue, a dscanner issue, or a vscode misconfiguration?

Apologies if no the right place.

jblachly avatar May 18 '19 16:05 jblachly

try typing or refreshing the file, though it should apply immediately. If you have that key in your workspace settings it will override your user settings

WebFreak001 avatar May 18 '19 17:05 WebFreak001

Interestingly the default action of lightbulb is to eddit the folder's settings.json; however the setting only works when adding to the projectname.code-workspace file, or to the USER LEVEL (i.e. in ~/.vscode/) settings.json.

Presumably that is a vscode problem, not code-d, but any other insight you have are great.

Incidentally I would like to make partial formatting work but haven't had time to see how vscode and code-d actually interact.

jblachly avatar May 18 '19 18:05 jblachly