MCPcopy Create free account
hub / github.com/LOLINTERNETZ/vscodeoffline / write_json

Method write_json

vscoffline/vsc.py:144–146  ·  view source on GitHub ↗
(filepath: Union[str, pathlib.Path], content: Dict[str, Any])

Source from the content-addressed store, hash-verified

142
143 @staticmethod
144 def write_json(filepath: Union[str, pathlib.Path], content: Dict[str, Any]) -> None:
145 with open(filepath, "w") as outfile:
146 json.dump(content, outfile, cls=MagicJsonEncoder, indent=4)
147
148 @staticmethod
149 def first_file(filepath: Union[str, pathlib.Path], pattern: str, reverse: bool = False) -> Union[str, bool]:

Callers 1

save_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected