summarylogtreecommitdiffstats
path: root/patch.py
blob: 80c612ea86f232d0ad73fc7f50b992faff50dd4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"]["go.goplsPath"]["default"] = "/usr/bin/gopls"
with open(file_path, "w") as wfile:
    json.dump(data, wfile, indent='\t')