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

Function getEditorOptionsSignature

src/lib/editorManager.js:1314–1322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1312 }
1313
1314 function getEditorOptionsSignature() {
1315 const values = appSettings?.value || {};
1316 const keys = new Set(["editorTheme"]);
1317 for (const spec of cmOptionSpecs) {
1318 spec.keys.forEach((key) => keys.add(key));
1319 }
1320
1321 return JSON.stringify([...keys].sort().map((key) => [key, values[key]]));
1322 }
1323
1324 function getRawEditorState(state) {
1325 return state?.__rawState || state || null;

Callers 1

Calls 1

addMethod · 0.80

Tested by

no test coverage detected