Skip to content

editor.showUnused: Access modifiers declared in the class still highlighted as unused #110137

@rinshankolayil

Description

@rinshankolayil

I have enabled editor.showUnused with following codes in the usersettings
{ "editor.showUnused": true, "workbench.colorCustomizations": { "editorUnnecessaryCode.border": "#a10906", "editorUnnecessaryCode.foreground": "#a10906", } }

  1. I have declared a access modifier (private,protected or public) as private $db and assigned some value in the constructor.
  2. But in the visual studio code IDE, i can still view the error border line which indicating the variable as unused variable.

Capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions