示例#1
0
        /// <summary>
        ///     Called when [closing project].
        /// </summary>
        /// <param name="hierarchy">The hierarchy.</param>
        public void OnClosingProject(IVsHierarchy hierarchy)
        {
            if (!_projectCache.TryGetProjectByHierarchy(hierarchy, out var project))
            {
                return;
            }

            _projectCache.Remove(project);
            Target.OnClosingProject(project.Name);
        }