Great, we will have look at that, thanks.
The path to the bootstrap DLL helped. Thanks.
Hello,
I wonder whether the CodeCompletion in VS Code works with this swift-winui project?
As I remember, CodeCompletion works fine for all these swift projection types on thebrowsercompany/windows-samples app about 2024 year.
But recent no matter which Swift version or WinAppSDK version combined, the LSP not working for these winRT classes anymore.
Is that a bug or some wrong configuration?
Appreciate any idea, thank you very much.
The completion from the LSP should work, that is not something vended by the project. This sounds like a configuration issue to me as the mechanism for the indexing and completion provision is completely generic and such a breakage would be pretty quickly identified.
I did a test on fresh installation:
- Win11 x64 10.0.22621
- Swift 6.2 snapshot
- VS Code Version: 1.103.2
- Swift extension 2.11.20250806
- clone the GitHub - thebrowsercompany/windows-samples: Sample Apps for Swift on Windows
- only change the Package.swift of swift-uwp to build static instead of dynamic to avoid the âtoo many symbolsâ problem. Other module like swift-winui still dynamic dlls.
- swift build successfully
The result:
- Syntax highlight works.
- Code completion works with Swift types like String.
- WinRT classes in the main PreviewApp.swift canât find definition or declaration.
But I also found, for example, if go to .build/checkouts/swift-winui/Sources folder, type definition can be navigated to files like Microsoft.UI.Xaml.Controls.swift.
Whether above means cross packages code navigation has some problems?
Really appreciated your help and amazing work you did, to make all these happened.