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

Function recreateActiveEditorState

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

Source from the content-addressed store, hash-verified

1935 }
1936
1937 function recreateActiveEditorState() {
1938 const file = manager.activeFile;
1939 if (file?.type !== "editor") return;
1940
1941 file.session = editor.state;
1942 file.lastScrollTop = editor.scrollDOM?.scrollTop ?? 0;
1943 file.lastScrollLeft = editor.scrollDOM?.scrollLeft ?? 0;
1944 applyFileToEditor(file, { forceRecreate: true });
1945 }
1946
1947 appSettings.on("update:tabSize", function () {
1948 updateEditorIndentationSettings();

Callers 1

EditorManagerFunction · 0.85

Calls 1

applyFileToEditorFunction · 0.85

Tested by

no test coverage detected