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
Notify user if the xcode-selected Xcode doesn't match setting (#1563)
* Notify user if the `xcode-select`ed Xcode doesn't match setting
If the Xcode selected via xcode-select changes and the user has a "swift.path"
setting configured, show warning notification suggesting they remove the
setting or "Select Toolchain"
Also trigger this warning on startup if the toolchain path is not under the
selected Xcode.app
Issue: #1472
* Fix lint error
'The Swift Extension has detected a change in the selected Xcode which does not match the value of your "swift.path" setting. Would you like to update your configured "swift.path" setting?',
'The Swift Extension has detected a change in the selected Xcode which does not match the value of your "swift.path" setting. Would you like to update your configured "swift.path" setting?',
104
+
"Remove From Settings",
105
+
"Select Toolchain"
106
+
);
107
+
});
108
+
109
+
test("Warns that setting is out of date on startup",async()=>{
'The Swift Extension has detected a change in the selected Xcode which does not match the value of your "swift.path" setting. Would you like to update your configured "swift.path" setting?',
116
+
"Remove From Settings",
117
+
"Select Toolchain"
118
+
);
119
+
});
120
+
121
+
test("Remove setting",async()=>{
122
+
pathConfig.setValue("/path/to/swift/bin");
123
+
124
+
mockedVSCodeWindow.showWarningMessage.resolves("Remove From Settings"asany);
0 commit comments