File: ProjectSystemShim\CSharpProjectShim.IVsEditorFactoryNotify.cs
Web Access
Project: src\src\VisualStudio\CSharp\Impl\Microsoft.VisualStudio.LanguageServices.CSharp_lqzfqcu5_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices.CSharp)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#nullable disable
 
using System;
using Microsoft.VisualStudio.Shell.Interop;
 
namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim
{
    // The native project system requires that project sites implement IVsEditorFactoryNotify, and
    // the project system stores an internal list of the interface pointers to them. The old editor
    // factory would then call each implementation from it's own IVsEditorFactoryNotify methods.
    // Since we now supply our own editor factory that doesn't do this, these methods will never be
    // called. Still, we must implement the interface or we'll never load at all.
    internal partial class CSharpProjectShim : IVsEditorFactoryNotify
    {
        public int NotifyDependentItemSaved(IVsHierarchy hier, uint itemidParent, string documentParentMoniker, uint itemidDpendent, string documentDependentMoniker)
            => throw new NotSupportedException();
 
        public int NotifyItemAdded(uint grfEFN, IVsHierarchy hier, uint itemid, string documentId)
            => throw new NotSupportedException();
 
        public int NotifyItemRenamed(IVsHierarchy hier, uint itemid, string documentOldMoniker, string documentNewMoniker)
            => throw new NotSupportedException();
    }
}