/// <inheritdoc /> public override void SetEditorInput(IEditorInput editorInput) { IEditorInput input = editorInput; string fileContent; using (BufferedStream bufferedStream = new BufferedStream(input.OpenRead())) { using (StreamReader streamReader = new StreamReader(bufferedStream)) { fileContent = streamReader.ReadToEnd(); } } EditorInput = input; EditorText = fileContent; DispatchPropertyChanged(nameof(EditorText)); EditorTabText = input.Name; IsDirty = false; }