We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
incomingSettings
1 parent 9e5c661 commit 0cdd0a4Copy full SHA for 0cdd0a4
src/PowerShellEditorServices/Services/Workspace/Handlers/ConfigurationHandler.cs
@@ -157,6 +157,12 @@ await _powerShellContextService.SetWorkingDirectoryAsync(
157
private void SendFeatureChangesTelemetry(LanguageServerSettingsWrapper incomingSettings)
158
{
159
var configChanges = new Dictionary<string, bool>();
160
+ if (incomingSettings == null)
161
+ {
162
+ this._logger.LogTrace("Incoming settings were null");
163
+ return;
164
+ }
165
+
166
// Send telemetry if the user opted-out of ScriptAnalysis
167
if (incomingSettings.Powershell.ScriptAnalysis.Enable == false &&
168
_configurationService.CurrentSettings.ScriptAnalysis.Enable != incomingSettings.Powershell.ScriptAnalysis.Enable)
0 commit comments