MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / #afterSelectFormatter

Method #afterSelectFormatter

src/lib/acode.js:826–835  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

824 }
825
826 #afterSelectFormatter(name) {
827 appSettings.on("update:formatter", format);
828
829 function format() {
830 appSettings.off("update:formatter", format);
831 const id = appSettings.value.formatter[name];
832 const formatter = this.#formatter.find(({ id: _id }) => _id === id);
833 formatter?.format();
834 }
835 }
836
837 fsOperation(file) {
838 return fsOperation(file);

Callers 1

formatMethod · 0.95

Calls 1

onMethod · 0.45

Tested by

no test coverage detected