File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1370,7 +1370,10 @@ impl Xtasks {
1370
1370
let vscode_settings = include_str ! ( "../templates/settings.json.tera" ) ;
1371
1371
let mut tera = tera:: Tera :: default ( ) ;
1372
1372
let mut context = tera:: Context :: new ( ) ;
1373
- context. insert ( "dir" , & Self :: workspace_dir ( & app_settings) ?) ;
1373
+ let workspace_dir = Self :: workspace_dir ( & app_settings) ?;
1374
+ let json_workspace_dir = serde_json:: to_string ( & workspace_dir) ?; // make sure this works as a json string
1375
+ context. insert ( "dir" , & json) ;
1376
+
1374
1377
let templated_settings = tera. render_str ( vscode_settings, & context) ?;
1375
1378
let templated_settings_json = Self :: read_json_with_comments ( templated_settings. as_bytes ( ) )
1376
1379
. with_context ( || "reading templated vscode settings" ) ?;
You can’t perform that action at this time.
0 commit comments