You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let config = Arc::new(ArcSwap::from_pointee(config));
, and then we pass in the extracted items to a modified EditorView::new() function (with the params as arguments to new(), which means every time we want to add a new config item that is handled by an EditorView, we have to change the signature of this constructor).
Is it possible to pass (a reference to) the entire editor config to an EditorView so that we have access to config variables within EditorView methods?
The text was updated successfully, but these errors were encountered:
Turns out that the editor instance is present in render_view which allows it to be passed to other render functions, so we don't actually need it in EditorView.
Consider the case where you have an editor config item that is accessed from within an
EditorView
method.Right now we're having to extract individual config items out of the editor config prior to it being altered in
helix/helix-term/src/application.rs
Line 120 in ad15e7b
EditorView::new()
function (with the params as arguments tonew()
, which means every time we want to add a new config item that is handled by anEditorView
, we have to change the signature of this constructor).Is it possible to pass (a reference to) the entire editor config to an
EditorView
so that we have access to config variables withinEditorView
methods?The text was updated successfully, but these errors were encountered: