/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/Core/Undo/IGlobalUndoService.cs
28 строк
1009 B
Cyrus Najmabadi
Remove unnecessary nullable directives
25 мар 2025, 20:32
25 мар 2025, 20:32
834ce57
Код
Авторство
О чём код?
// 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 Microsoft.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.Editor.Undo; /// <summary> /// This provides a way to do global undo. but semantic of the global undo is defined by the workspace host. /// </summary> internal interface IGlobalUndoService : IWorkspaceService { /// <summary> /// Queries whether a global transaction is currently active. /// </summary> bool IsGlobalTransactionOpen(Workspace workspace); /// <summary> /// query method that can answer whether global undo is supported by the workspace /// </summary> bool CanUndo(Workspace workspace); /// <summary> /// open global undo transaction for the workspace /// </summary> IWorkspaceGlobalUndoTransaction OpenGlobalUndoTransaction(Workspace workspace, string description); }