diff --git a/src/extension.ts b/src/extension.ts index 15e45be46..bc160594a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -97,9 +97,8 @@ export async function activate(context: vscode.ExtensionContext): Promise { 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") ) { @@ -108,6 +107,10 @@ export async function activate(context: vscode.ExtensionContext): Promise { 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." + ); } }) );