MCPcopy Create free account
hub / github.com/VSCodeConfigHelper/v4 / update

Method update

src-tauri/src/tasks/extension.rs:90–95  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

88 }
89
90 fn update(&mut self) -> Result<()> {
91 let (_, output) = self.run_lossy(&["--list-extensions"])?;
92 self.installed = output.lines().map(|line| line.to_string()).collect();
93 debug!("已安装的扩展有:{:?}", &self.installed);
94 Ok(())
95 }
96
97 fn install(&mut self, id: &str) -> Result<()> {
98 debug!("安装扩展 {}...", id);

Callers 1

getMethod · 0.80

Calls 2

run_lossyMethod · 0.80
to_stringMethod · 0.80

Tested by

no test coverage detected