1 implementation of ISourceTextUndoService
Microsoft.CodeAnalysis.EditorFeatures (1)
Undo\DefaultSourceTextUndoService.cs (1)
16
internal sealed class DefaultSourceTextUndoService :
ISourceTextUndoService
8 references to ISourceTextUndoService
Microsoft.CodeAnalysis.EditorFeatures (8)
CodeActions\CodeActionEditHandlerService.cs (1)
137
using (workspace.Services.GetRequiredService<
ISourceTextUndoService
>().RegisterUndoTransaction(text, title))
Editor\TextEditApplication.cs (2)
36
var
undoService = workspace.Services.GetRequiredService<
ISourceTextUndoService
>();
Undo\DefaultSourceTextUndoService.cs (1)
15
[ExportWorkspaceService(typeof(
ISourceTextUndoService
), ServiceLayer.Default), Shared]
Undo\EditorSourceTextUndoService.cs (4)
18
[ExportWorkspaceService(typeof(
ISourceTextUndoService
), ServiceLayer.Editor), Shared]
21
internal sealed class EditorSourceTextUndoService(ITextUndoHistoryRegistry undoHistoryRegistry) :
ISourceTextUndoService
65
private sealed class SourceTextUndoTransaction(
ISourceTextUndoService
service, SourceText sourceText, string description) : ISourceTextUndoTransaction
67
private readonly
ISourceTextUndoService
_service = service;