swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
713 stars 47 forks source link

Rename variables and function #736

Closed roydbt closed 3 months ago

roydbt commented 3 months ago

Is your feature request related to a problem? Please describe. Right now, nothing happens when I select a variable and click on the refactor button.

Describe the solution you'd like What I would like to do is to be able to rename the variable.

Describe alternatives you've considered Just manually rename it for every occurrence.

adam-fowler commented 3 months ago

This is something that sourcekit-lsp has to support and support has been added and will be available in Swift 6. See https://github.com/apple/sourcekit-lsp/issues/498