/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/CSharp/Impl/ProjectSystemShim/CSharpProjectShim.IVsEditorFactoryNotify.cs
27 строк
1 KB
Cyrus Najmabadi
Use file scoped namespaces. (#77854)
27 мар 2025, 09:55
Не верифицирован
27 мар 2025, 09:55
98d41b8
Код
Авторство
О чём код?
// 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(); }