vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

"Add Missing Protocol Requirements" ignores indentation settings

Open lupuchard opened this issue 1 year ago • 1 comments

Describe the bug When using "Add Missing Protocol Requirements" the added functions are always indented with spaces, even if the file is set to indent with tabs.

To Reproduce Steps to reproduce the behavior:

  1. Ctrl-Shift-P -> "Indent Using Tabs"
  2. Add a protocol to a struct or class
  3. Click the red-underlined struct/class name
  4. Click the light bulb -> "Add Missing Protocol Requirements" The generated function(s) will be indented with spaces

Expected behavior The functions generated are indented according to your indentation setting

Environment

  • OS: Linux Mint 21.1 Vera
  • Swift version: 5.8.1
  • Visual Studio Code version: 1.79.2
  • vscode-swift version: 1.3.0

lupuchard avatar Jul 04 '23 18:07 lupuchard