MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / inMemoryModelCount

Function inMemoryModelCount

tests/e2e/diff-editor-lifecycle.spec.ts:49–60  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

47}
48
49async function inMemoryModelCount(page: Page) {
50 return page.evaluate(() => {
51 const { monaco } = window as unknown as {
52 monaco: typeof import("monaco-editor");
53 };
54 // Monaco's language service can retain library models such as lib.dom.d.ts.
55 // FileDiffViewer owns in-memory models; those must be released.
56 return monaco.editor
57 .getModels()
58 .filter((model) => model.uri.scheme === "inmemory").length;
59 });
60}
61
62for (const viewport of [
63 { width: 1440, height: 1000 },

Callers 2

expectReleasedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected