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

Function safeCoordsAtPos

src/lib/editorManager.js:2505–2511  ·  view source on GitHub ↗
(view, pos)

Source from the content-addressed store, hash-verified

2503 }
2504
2505 function safeCoordsAtPos(view, pos) {
2506 try {
2507 return view.coordsAtPos(pos);
2508 } catch (_) {
2509 return null;
2510 }
2511 }
2512
2513 /**
2514 * Sets the vertical scroll value of the editor. This is called when the editor is scrolled horizontally using the scrollbar.

Callers 2

scrollCursorIntoViewFunction · 0.85
isCursorVisibleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected