Skip to content

[BUG] Changes to python.analysis.diagnosticSeverityOverrides are completely overwritten at startup #105

@Jzooor

Description

@Jzooor

Describe the bug
When the extension starts up, the value for python.analysis.diagnosticSeverityOverrides in settings.json is completely overwritten, losing any user customized settings.

To Reproduce
Steps to reproduce the behavior:

  1. Open settings.json
  2. Add "reportShadowedImports": "none" to "python.analysis.diagnosticSeverityOverrides"
    e.g.
    "python.analysis.diagnosticSeverityOverrides": {
        "reportMissingModuleSource": "none",
        "reportShadowedImports": "none"
    },
  1. Close and re-open workspace.
  2. See that "python.analysis.diagnosticSeverityOverrides" no longer has the added value from step 2.

Expected behavior
All user customizations to "python.analysis.diagnosticSeverityOverrides" in settings.json should be kept (extra options, and changes to extensions desired values).

Desktop (please complete the following information):

  • OS: Win10
  • Version VS Code v1.73.1, CircuitPython extension v0.1.19

Additional context
I want to add (and keep) "reportShadowedImports": "none" because Pylance complains that code.py overrides the stdlib module code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions