MCPcopy Create free account
hub / github.com/continuedev/continue / getMainEditor

Function getMainEditor

gui/src/util/test/utils.ts:68–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68export async function getMainEditor(): Promise<Editor> {
69 const editorElement = await getElementByTestId("editor-input-main");
70 if ("editor" in editorElement) {
71 return editorElement.editor as Editor;
72 } else {
73 throw new Error("Main editor not found within editor container");
74 }
75}
76
77export async function sendInputWithMockedResponse(
78 ideMessenger: MockIdeMessenger,

Callers 1

Calls 1

getElementByTestIdFunction · 0.85

Tested by

no test coverage detected