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

Method unregisterFormatter

src/lib/acode.js:769–780  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

767 }
768
769 unregisterFormatter(id) {
770 this.#formatter = this.#formatter.filter(
771 (formatter) => formatter.id !== id,
772 );
773 const { formatter } = appSettings.value;
774 for (const mode of Object.keys(formatter)) {
775 if (formatter[mode] === id) {
776 delete formatter[mode];
777 }
778 }
779 appSettings.update(false);
780 }
781
782 async format(selectIfNull = true) {
783 const file = editorManager.activeFile;

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected