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

Method get

src-tauri/src/tasks/extension.rs:46–59  ·  view source on GitHub ↗
(args: &TaskArgs)

Source from the content-addressed store, hash-verified

44
45impl ExtensionManager {
46 fn get(args: &TaskArgs) -> &Mutex<Self> {
47 static INSTANCE: OnceCell<Mutex<ExtensionManager>> = OnceCell::new();
48 INSTANCE.get_or_init(|| {
49 let path = args.vscode.clone();
50 debug!("初始化扩展管理器,路径:{:?}", path);
51 let mut instance = ExtensionManager {
52 enabled: *ENABLED.lock().unwrap(),
53 path: path,
54 installed: vec![],
55 };
56 let _ = instance.update();
57 Mutex::new(instance)
58 })
59 }
60
61 #[allow(unused)]
62 fn run(&self, args: &[&str]) -> Result<String> {

Callers 2

gccFunction · 0.80
clangFunction · 0.80

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected