public void CreateStartRenameUndoTransaction( Workspace workspace, ITextBuffer subjectBuffer, IInlineRenameSession inlineRenameSession ) { var textUndoHistoryService = workspace.Services.GetService <ITextUndoHistoryWorkspaceService>(); Contract.ThrowIfFalse( textUndoHistoryService.TryGetTextUndoHistory( workspace, subjectBuffer, out var undoHistory ) ); UndoManagers[subjectBuffer] = new BufferUndoState() { TextUndoHistory = undoHistory }; CreateStartRenameUndoTransaction(subjectBuffer); }
internal InlineRenameSessionInfo(Microsoft.CodeAnalysis.Editor.InlineRenameSessionInfo inner) { CanRename = inner.CanRename; LocalizedErrorMessage = inner.LocalizedErrorMessage; Session = new InlineRenameSession(inner.Session); }
internal InlineRenameSessionInfo(IInlineRenameSession session) { this.CanRename = true; this.Session = session; }
internal InlineRenameSessionInfo(Microsoft.CodeAnalysis.Editor.InlineRenameSessionInfo inner) { CanRename = inner.CanRename; LocalizedErrorMessage = inner.LocalizedErrorMessage; Session = new InlineRenameSession(inner.Session); }
internal InlineRenameSessionInfo(IInlineRenameSession session) { this.CanRename = true; this.Session = session; }