Skip to content

Commit

Permalink
feat: add config schema url to plugin info
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Sep 1, 2021
1 parent 331390a commit 42b58cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wasm_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ impl PluginHandler<Configuration> for TomlPluginHandler {
}

fn get_plugin_info(&mut self) -> PluginInfo {
let version = env!("CARGO_PKG_VERSION").to_string();
PluginInfo {
name: env!("CARGO_PKG_NAME").to_string(),
version: env!("CARGO_PKG_VERSION").to_string(),
version: version.clone(),
config_key: "toml".to_string(),
file_extensions: vec!["toml".to_string()],
file_names: vec![],
help_url: "https://dprint.dev/plugins/toml".to_string(),
config_schema_url: "".to_string(), // none until https://github.com/microsoft/vscode/issues/98443 is resolved
config_schema_url: format!("https://plugins.dprint.dev/schemas/toml-{}.json", version),
}
}

Expand Down

0 comments on commit 42b58cd

Please sign in to comment.