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
In the code below hover fails for Text, image and HStack inside the View resultBuilder while it works for everything outside of the resultBuilder.
import SwiftUI
structContentView:View{varimage=Image("AltIconTest", bundle:.main)varbody:someView{Text("I've been edited in VSCode. But can be run from both Xcode and VSCode.").padding()
image
HStack{// none of these will appear when built with swift build & run as it doesn't compile asset catalogue// only appears when compiled and run from XcodeImage("Buddy").border(.blue)// will appear in Xcode version and xcodebuild versionImage(packageResource:"Buddy", ofType:"png", from:.assetCatalog).border(.orange)// will only appear in xcodebuild versionImage("Buddy", bundle:.module).border(.green).blur(radius: 0.1)}}}structContentView_Previews:PreviewProvider{staticvarpreviews:someView{ContentView()}}
The text was updated successfully, but these errors were encountered:
adam-fowler
changed the title
textDocument/hover doesn't work for function calls inside ResultBuilderstextDocument/hover doesn't work for symbols inside ResultBuilders
Nov 17, 2022
This issue is not specific to SourceKit-LSP. The cursor info request that underlies hover does not provide results if the result builder body has an error. The solution here is to convert cursor info to the solver-based implementation as well but that might take a while.
ahoppen
changed the title
textDocument/hover doesn't work for symbols inside ResultBuilders
CursorInfo doesn’t provide a result if result builder contains an error
Jul 11, 2023
Reported in swift-vscode repo swiftlang/vscode-swift#446
In the code below hover fails for
Text
,image
andHStack
inside theView
resultBuilder while it works for everything outside of the resultBuilder.The text was updated successfully, but these errors were encountered: