I have encountered this issue when I use Pylance and syntax highlighting is enabled for python in the VSCode with default or the visual studio theme.
self and cls parameter are LightSkyBlue color like other parameters
It should be like this:
Advertisement
Answer
Added the color code inside of the settings.json
file for the default dark theme.
// self and cls color for python "editor.semanticTokenColorCustomizations": { "[Default Dark+]": { "rules": { "selfParameter": "#569CD6", "clsParameter": "#569CD6" }, }, },
These two issues on pylance and vscode github repository helped: