On Windows (ARM) I had installed the current Swift toolchain 6.2.1 and in the command line swiftc --version tells me that indeed the Swift version is version 6.2.1.
But the newest Visual Studio Code 1.106.0 with the newest Swift extension 2.14.0 tells me:
Unable to automatically discover your Swift toolchain. Either install a toolchain from Swift.org or provide the path to an existing toolchain.
Why doesn't this work, and for providing the path: where is the Swift toolchain?
It is strange that there is a dialog to select a folder, but if the wrong folder has been selected (?), the error message then says that the Swift executable at this path is false, so is it a path (which one?) or the Swift executable to be selected?
I now added the path to AppData\Local\Programs\Swift\Toolchains\6.2.1+Asserts\usr\bin\ of my hime directory as the runtime path in the setting of the Visual Studio Swift extension, and it worked. It did not work in the dialog I described above.
That is interesting. Normally, this occurs on first install if you launch VSCode at the wrong time. The installer is responsible for setting up the environment, but if you launch VSCode too early or from a previous environment configuration, it will fail to locate the install.
The logs would be helpful here - most of this is driven by where swift, so if that currently works, it should be able to detect it.
Yes, could be, I could not reproduce it. But the dialog about setting the path was not clear and did not accept the given path, this should work better.