MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / editorFindItem

Function editorFindItem

src/pages/options/routes/script/ScriptEditor.tsx:362–364  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

360 return editorsRef.current.findIndex((e) => e.script.uuid === uuid);
361 };
362 const editorFindItem = (uuid: string) => {
363 return editorsRef.current.find((e) => e.script.uuid === uuid);
364 };
365 const delayedEditorFocus = (editor: editor.ICodeEditor | null | undefined, delayMs: number = 100) => {
366 editor = !editor ? editorsRef.current.find((e) => e.active && e.script.uuid === selectedScript)?.editor : editor;
367 if (editor) {

Callers 2

ScriptEditorFunction · 0.85
handleEditorChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected