/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/Core/Suggestions/SuggestedActionsSource.State.cs
39 строк
1 KB
Cyrus Najmabadi
remove more workspace registration code
11 июн 2025, 01:11
11 июн 2025, 01:11
9d75bf2
Код
Авторство
О чём код?
// 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. using System; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; namespace Microsoft.CodeAnalysis.Editor.Implementation.Suggestions; internal sealed partial class SuggestedActionsSourceProvider { private partial class SuggestedActionsSource { private sealed class State : IDisposable { private readonly SuggestedActionsSource _source; public readonly SuggestedActionsSourceProvider Owner; public readonly ITextView TextView; public readonly ITextBuffer SubjectBuffer; public State(SuggestedActionsSource source, SuggestedActionsSourceProvider owner, ITextView textView, ITextBuffer textBuffer) { _source = source; Owner = owner; TextView = textView; SubjectBuffer = textBuffer; } void IDisposable.Dispose() { if (TextView != null) TextView.Closed -= _source.OnTextViewClosed; } } } }