Comments (2)
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;
}
from monaco-editor.
Related Issues (20)
- [Feature Request] Provide Real ESM Modules of Monaco Editor directly usable in Browser HOT 1
- [Bug] D is null
- A function should be added that can get the variables and variable types of a certain line of code[Feature Request]
- [Bug] Doubts about additional cursors HOT 2
- [Bug] `delimiter.parenthesis` and `delimiter.bracket` values not applied
- [Bug] there is a unexpect bracket
- [Bug] Monaco 0.49.0 still ships with TS 5.0.2 HOT 4
- What's tmLanguage support state now? HOT 1
- Robot Framework Language Support [Feature Request]
- Autosuggestion doesn't show up with any character excpet '@'.
- [Bug] Typescript language behavior is different between bundled and unbundled languages
- [Bug] Cannot run monaco with lit and webpack HOT 2
- [Feature Request] Update samples - (samples using old version of monaco-editor)
- [Bug] Regression - diff glyphs no longer render in the correct position
- Add real world user showcase
- [Bug]-Did the monaco editor suggestWidget support fixed positioning, where the position was set dynamically following the cursor move
- [Bug] "No suggestions." shown when suggestions are provided at end of current token
- [Bug] Explicitly triggered inline completions with promise occasionally raising Uncaught (in promise) Canceled: Canceled
- editor Suggest whether the Widget can be inserted into the body or under the specified element
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.