tsconfig-helper icon indicating copy to clipboard operation
tsconfig-helper copied to clipboard

`preferredLocation` setting always added to workspace settings when inspecting matches

Open SenseiMarv opened this issue 2 years ago • 0 comments

Thanks for providing such a useful extension! While using it, I noticed a certain behaviour that is probably unwanted:

Current behaviour

Currently, whenever the matches are inspected, the setting "references.preferredLocation": "view" is added to the workspace settings file .vscode/settings.json. If there is no workspace settings file, a new one is created with the option set.

Expected behaviour

The workspace settings are not changed by using this extension.

Steps to reproduce

  • Install this extension
  • Open a project with a tsconfig.json file that uses either include or exclude to enable the extension
  • Open one of the matches that is shown in the CodeLens
  • Examine a new workspace settings file created under .vscode/settings.json or an existing settings file that has been modified

SenseiMarv avatar Oct 20 '23 12:10 SenseiMarv