Skip to content

Overwriting settings in ".vscode\iar-vsc.json" #74

@WalterNa

Description

@WalterNa

Describe the bug:
We have a folder structure with many .eww and .ewp files in the project repository and also the IAR EWARM binaries (everything-as-code).
Trying to pre-define the IAR path in ".vscode\iar-vsc.json" (this file shall also go to repository)
"workbench": {
"path": ${workspaceFolder}\..\..\iar_ewarm"

Settings always get overwritten with the extion of the real path (or some other IAR installation found somewhere).
With predefined values in "workspace" and "workspaces" the same things happen: the extension overwrites the values with some other files it finds in some folders.

To Reproduce:
see description

Expected behavior:
Extension should exactly do what is defined in ".vscode\iar-vsc.json" and not try to guess something else.

Actual behavior:
The extension changes the file content with what it finds on disk

Environment:

  • OS: Windows
  • Embedded Workbench: Arm
  • Embedded Workbench version: 8.20.1
  • VSC Extension version: v1.30.6

Additional context:
I can understand that you try to auto-detect things, but this should not overwrite existing stuff.
Maybe you could introduce some preference-switch for disabling this mechanism for people who don't want that auto-detection at all

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions