File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ impl PluginHandler<Configuration> for TypeScriptPluginHandler {
19
19
}
20
20
21
21
fn get_plugin_info ( & mut self ) -> PluginInfo {
22
+ let version = env ! ( "CARGO_PKG_VERSION" ) . to_string ( ) ;
22
23
PluginInfo {
23
24
name : env ! ( "CARGO_PKG_NAME" ) . to_string ( ) ,
24
- version : env ! ( "CARGO_PKG_VERSION" ) . to_string ( ) ,
25
+ version : version . clone ( ) ,
25
26
config_key : "typescript" . to_string ( ) ,
26
27
file_extensions : vec ! [
27
28
String :: from( "ts" ) ,
@@ -33,7 +34,7 @@ impl PluginHandler<Configuration> for TypeScriptPluginHandler {
33
34
] ,
34
35
file_names : vec ! [ ] ,
35
36
help_url : "https://dprint.dev/plugins/typescript" . to_string ( ) ,
36
- config_schema_url : "" . to_string ( ) , // none until https://github.com/microsoft/vscode/issues/98443 is resolved
37
+ config_schema_url : format ! ( " https://plugins.dprint.dev/schemas/typescript-{}.json" , version ) ,
37
38
}
38
39
}
39
40
You can’t perform that action at this time.
0 commit comments