/// <summary> /// Returns the state of the changes made to the source. /// The EnC manager calls this to determine whether there are any changes to the source /// and if so whether there are any rude edits. /// </summary> public async Task <ManagedModuleUpdateStatus> GetStatusAsync(string sourceFilePath, CancellationToken cancellationToken) { try { return((await _encService.GetSolutionUpdateStatusAsync(sourceFilePath, cancellationToken).ConfigureAwait(false)).ToModuleUpdateStatus()); } catch (Exception e) when(FatalError.ReportWithoutCrashUnlessCanceled(e)) { return(ManagedModuleUpdateStatus.Blocked); } }