예제 #1
0
        internal async Task <Solution> WithMergedLinkedFileChangesAsync(
            Solution oldSolution,
            SolutionChanges?solutionChanges            = null,
            IMergeConflictHandler mergeConflictHandler = null,
            CancellationToken cancellationToken        = default(CancellationToken))
        {
            // we only log sessioninfo for actual changes committed to workspace which should exclude ones from preview
            var session = new LinkedFileDiffMergingSession(oldSolution, this, solutionChanges ?? this.GetChanges(oldSolution), logSessionInfo: solutionChanges != null);

            return((await session.MergeDiffsAsync(mergeConflictHandler, cancellationToken).ConfigureAwait(false)).MergedSolution);
        }
예제 #2
0
파일: Solution.cs 프로젝트: Rickinio/roslyn
        internal async Task<Solution> WithMergedLinkedFileChangesAsync(
            Solution oldSolution,
            SolutionChanges? solutionChanges = null,
            IMergeConflictHandler mergeConflictHandler = null,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            // we only log sessioninfo for actual changes committed to workspace which should exclude ones from preview
            var session = new LinkedFileDiffMergingSession(oldSolution, this, solutionChanges ?? this.GetChanges(oldSolution), logSessionInfo: solutionChanges != null);

            return (await session.MergeDiffsAsync(mergeConflictHandler, cancellationToken).ConfigureAwait(false)).MergedSolution;
        }
예제 #3
0
 internal async Task<Solution> WithMergedLinkedFileChangesAsync(Solution oldSolution, SolutionChanges? solutionChanges = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var session = new LinkedFileDiffMergingSession(oldSolution, this, solutionChanges ?? this.GetChanges(oldSolution));
     return await session.MergeDiffsAsync(cancellationToken).ConfigureAwait(false);
 }