-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
bugSomething isn't workingSomething isn't workingsourcekit-lspSourceKit-LSP issueSourceKit-LSP issue
Description
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:
- Ctrl-Shift-P -> "Indent Using Tabs"
- Add a protocol to a struct or class
- Click the red-underlined struct/class name
- 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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsourcekit-lspSourceKit-LSP issueSourceKit-LSP issue
Type
Projects
Status
Backlog
Milestone
Relationships
Development
Select code repository
Activity
adam-fowler commentedon Jul 4, 2023
This is an issue with SourceKit-LSP not providing formatted output.
I run one of the swift formatting extensions and have them format on save to get around this.
But ideally we would get properly formatted output from Soureckit-LSP. Here is the related issue swiftlang/sourcekit-lsp#496