How do I disable Type suggestion with the VSCode Swift Extension


So I have been using the VS Code extension for a school assignment and Im wondering if there is anyway to turn of the : Type suggestions?

The white/ gray boxes?

vs code type suggestions


1 Like

Search for "Inlay Hints" in VS Code settings. It's a general setting now.


Thank you! still new to customizing VS Code.

Any way I can help with the LSP? It loves to crash between or () for array subscripts or string interpolation.

that was a known issue over the summer. what toolchain version do you have?

Does this help?

swift --version
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang- clang-1400.0.29.51)
Target: arm64-apple-macosx13.0

5.7.2 should not have been affected because as far as i remember that one only ever happened on the nightlies.

does it still happen on the 5.8 branch? (not main, that is 5.9 and completely unstable.) sourcekit-lsp crashes a lot for me still on 5.8, but i haven’t seen that particular flavor of crash in a few months now.

1 Like

I haven't tried 5.8 yet. Just using the default Swift version on macOS 13.2 (22D49)

It is an issue in 5.7.2. A fix was made but it doesn't seem to have made it into the macOS toolchain. It seems to be fixed on Linux 5.7.3.

1 Like