internal EmacsCommandContext(EmacsCommandsManager manager, ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService, IEditorOperations editorOperations, ITextView view, CommandRouter commandRouter) { Manager = manager; EditorOperations = editorOperations; TextView = view; CommandRouter = commandRouter; Clipboard = new StringBuilder(); TextStructureNavigator = textStructureNavigatorSelectorService.GetTextStructureNavigator(view.TextBuffer); MarkSession = MarkSession.GetSession(view); }
internal EmacsCommandContext( EmacsCommandsManager manager, ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService, IEditorOperations editorOperations, ITextView view, CommandRouter commandRouter) { this.Manager = manager; this.EditorOperations = editorOperations; this.TextView = view; this.CommandRouter = commandRouter; this.TextStructureNavigator = textStructureNavigatorSelectorService.GetTextStructureNavigator(view.TextBuffer); this.MarkSession = MarkSession.GetSession(view); }