MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / current_file_ref

Method current_file_ref

src/editor/mod.rs:105–107  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

103 }
104
105 pub fn current_file_ref(&self) -> Option<&OpenFile> {
106 self.files.get(self.current_file)
107 }
108
109 pub fn open_file(&mut self, path: &str) -> Result<()> {
110 for (i, f) in self.files.iter().enumerate() {

Callers 5

handle_keyMethod · 0.80
handle_editor_keyMethod · 0.80
run_current_fileMethod · 0.80
get_selected_textMethod · 0.80
draw_status_barFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected