Skip to content

Commit

Permalink
set it up a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Oct 22, 2024
1 parent df1de76 commit 9661ca7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion crates/repl/src/jupyter_servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,24 @@ impl JupyterServers {
self.update_settings(cx);
}

fn update_settings_file(
&mut self,
cx: &mut ViewContext<Self>,
f: impl FnOnce(&mut JupyterSettingsContent, &AppContext) + Send + Sync + 'static,
) {
// let Some(fs) = self
// .workspace
// .update(cx, |workspace, _| workspace.app_state().fs.clone())
// .log_err()
// else {
// return;
// };
// update_settings_file::<SshSettings>(fs, cx, move |setting, cx| f(setting, cx));
}

fn update_settings(&self, cx: &mut ViewContext<Self>) {
todo!();
let settings = JupyterSettings::get_global(cx);
dbg!(&self.server_list);
}

pub fn register(workspace: &mut Workspace, _: &mut ViewContext<Workspace>) {
Expand Down

0 comments on commit 9661ca7

Please sign in to comment.