You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a struct or class doesn't conform to its protocol sourcekit-lsp provides both a Quick Fix (Add stubs for conformance) and a Refactoring (Add Missing Protocol Requirements). Both of these options produce the same modifications to the code so one of them can be removed. See attached screenshot.
Steps to Reproduce
In VS Code with the Swift Extension installed, create a new swift file and add:
protocolFoo{func baz()}structBar:Foo{}
Hit CMD+. while the cursor is on Bar and observe the options.
Logging
No response
The text was updated successfully, but these errors were encountered:
Swift version
swiftlang-6.0.0.9.10
Platform
All
Editor
Visual Studio Code
Does the issue reproduce with Swift 6?
Yes
Description
When a struct or class doesn't conform to its protocol sourcekit-lsp provides both a Quick Fix (Add stubs for conformance) and a Refactoring (Add Missing Protocol Requirements). Both of these options produce the same modifications to the code so one of them can be removed. See attached screenshot.
Steps to Reproduce
In VS Code with the Swift Extension installed, create a new swift file and add:
Hit CMD+. while the cursor is on
Bar
and observe the options.Logging
No response
The text was updated successfully, but these errors were encountered: