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
SourceKit-LSP now provides code editing support for non-macOS Darwin
platforms starting Swift 6.1 using the --swift-sdk flag. Set this flag
to the appropriate target triple when using the "Select Target Platform"
feature on macOS.
Issue: swiftlang#1335
// set a swiftSDK for non-macOS Darwin platforms so that SourceKit-LSP can provide syntax highlighting
58
+
configuration.swiftSDK=swiftSDKTriple;
59
+
vscode.window.showWarningMessage(
60
+
`Selecting the ${picked.label} target platform will provide code editing support, but compiling with a ${picked.label} SDK will have undefined results.`
61
+
);
49
62
}else{
50
-
vscode.window.showErrorMessage("Unable to obtain requested SDK path");
63
+
// set swiftSDK to undefined for macOS and other platforms
64
+
configuration.swiftSDK=undefined;
51
65
}
52
66
}catch{
53
-
vscode.window.showErrorMessage("Unable to obtain requested SDK path");
67
+
vscode.window.showErrorMessage(
68
+
`Unable set the Swift SDK setting to ${picked.label}, verify that the SDK exists`
0 commit comments