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
The text edits supplied with InlayHints don't always provide code that will compile eg adding the inlay hint to a closure argument would generate invalid code
The text edits supplied with InlayHints don't always provide code that will compile eg adding the inlay hint to a closure argument would generate invalid code
The inlay hint for string is
: String
. The text edit that goes along with it is the same and inserting it would generate the following codewhich does not compile.
Another example is enums with associated values
becomes
Maybe we should disable the text edit option until we can be sure it returns valid code.
See swiftlang/vscode-swift#554 where this was originally reported
The text was updated successfully, but these errors were encountered: