swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.28k stars 272 forks source link

Available (or unavailable) refactoring actions are not documented #1613

Open MaxDesiatov opened 1 month ago

MaxDesiatov commented 1 month ago

Swift version

Latest commit off the main branch (77e66bd1dfeb9bf3108e3faec96d75a4801d435b at the time of writing).

Platform

Relevant for all platforms.

Editor

Relevant for all supported editors.

Does the issue reproduce with Swift 6?

Yes

Description

I would like to understand which refactoring actions are available in SourceKit-LSP, if any. I don't think any documentation for this exists. There seem to be some references to refactoring in the source code, but it's unclear whether those work, which are available, and how to invoke them.

Steps to Reproduce

Run rg refactoring **/*.md in this repository, no relevant documentation can be found.

Logging

N/A.

ahoppen commented 1 month ago

Synced to Apple’s issue tracker as rdar://133160853