예제 #1
0
        /// <summary>
        /// Update a project as a result of option changes.
        ///
        /// this is a temporary workaround until editorconfig becomes real part of roslyn solution snapshot.
        /// until then, this will explicitly fork current solution snapshot
        /// </summary>
        internal Solution WithProjectOptionsChanged(ProjectId projectId)
        {
            var newState = _state.WithProjectOptionsChanged(projectId);

            if (newState == _state)
            {
                return(this);
            }

            return(new Solution(newState));
        }