Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api> {
showReloadExtensionNotification(
"Changing the Swift path requires Visual Studio Code be reloaded."
);
}
// on sdk config change, restart sourcekit-lsp
if (
} else if (
// on sdk config change, restart sourcekit-lsp
event.affectsConfiguration("swift.SDK") ||
event.affectsConfiguration("swift.swiftSDK")
) {
Expand All @@ -108,6 +107,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api> {
showReloadExtensionNotification(
"Changing the Swift SDK path requires the project be reloaded."
);
} else if (event.affectsConfiguration("swift.swiftEnvironmentVariables")) {
showReloadExtensionNotification(
"Changing environment variables requires the project be reloaded."
);
}
})
);
Expand Down
Loading