Open hungtcs opened 3 weeks ago
The method can be traced through the stack
function shadowCaretRangeFromPoint(shadowRoot, x, y) {
const range = document.createRange();
// Get the element under the point
let el = shadowRoot.elementFromPoint(x, y);
if (el !== null) {
// parameter 1 is not of type 'Node'. // <---
range.setStart(el.firstChild, offset);
range.setEnd(el.firstChild, offset);
}
return range;
}
We ran into the same issue: v0.47.0 is the last version to work correctly.
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Link To Monaco Playground
Monaco Editor Playground Code
Reproduction Steps
Actual (Problematic) Behavior
An error occurred in the console
Expected Behavior
No response
Additional Context
No response