public MainWindowViewModel(IViewServiceProvider viewServiceProvider) { _viewService = viewServiceProvider; _errorMessages.CollectionChanged += (_, __) => HasErrorMessages = _errorMessages.Count > 0; _host = new CsvEditSharpConfigurationHost(); Workspace = new CsvEditSharpWorkspace(_host, _errorMessages); ConfigurationDoc = new TextDocument(StringTextSource.Empty); QueryDoc = new TextDocument(new StringTextSource("Query<FieldData>( records => records.Where(row => true).OrderBy(row => row) );")); CurrentFilePath = string.Empty; CurrentFileName = "(Empty)"; CurrentConfigName = "(Empty)"; SelectedTemplate = ConfigFileTemplates.First(); SelectedTab = 0; }