MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / command_for

Method command_for

src/diagnostics/lsp/settings.rs:73–81  ·  view source on GitHub ↗
(&self, language: &str, default_command: &str)

Source from the content-addressed store, hash-verified

71 }
72
73 pub fn command_for(&self, language: &str, default_command: &str) -> String {
74 self.languages
75 .get(language)
76 .and_then(|settings| settings.command_override.as_deref())
77 .map(str::trim)
78 .filter(|command| !command.is_empty())
79 .unwrap_or(default_command)
80 .to_string()
81 }
82}
83
84pub fn settings_path(dashboard_root: &Path) -> PathBuf {

Callers 3

prepare_refreshMethod · 0.80
engine_statusesMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected