コード例 #1
0
            public bool ShowChange(PendingChange pc)
            {
                if (files.Contains(pc.FullPath))
                {
                    return(true);
                }
                if (!_mapper.ContainsPath(pc.FullPath))
                {
                    foreach (string f in folders)
                    {
                        if (pc.IsBelowPath(f))
                        {
                            // Path is not contained in any other project but below one of the project roots
                            return(true);
                        }
                    }
                }

                return(false);
            }
コード例 #2
0
        void UpdateSolutionInfo()
        {
            IProjectFileMapper pfm = _context.GetService <IProjectFileMapper>();
            bool inSolution        = false;

            if (pfm != null)
            {
                inSolution   = pfm.ContainsPath(FullPath);
                _sccExcluded = pfm.IsSccExcluded(FullPath);
            }

            if (inSolution)
            {
                SetState(GitItemState.InSolution, GitItemState.None);
            }
            else
            {
                SetState(GitItemState.None, GitItemState.InSolution);
            }
        }