summarylogtreecommitdiffstats
path: root/patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'patch.py')
-rwxr-xr-xpatch.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/patch.py b/patch.py
new file mode 100755
index 000000000000..1b15384dba90
--- /dev/null
+++ b/patch.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import sys
+import json
+import os
+
+file_path = sys.argv[1]
+
+with open(file_path, "r") as rfile:
+ data = json.load(rfile)
+data["contributes"]["configuration"]["properties"]["rust-analyzer.server.path"]["default"] = "/usr/bin/rust-analyzer"
+with open(file_path, "w") as wfile:
+ json.dump(data, wfile, indent='\t')