Monaco Editor setSelection removing my classes

I select my line like this:

currentFile.editor.setSelection({startColumn: column, endColumn: column, startLineNumber: line, endLineNumber: line});

this works, but just before I call this function I add a class to an unrelated element, but this class gets removed as soon as the function that goes to a line gets called (Nothing else in my code interacts with that class or removes multiple classes).

I have no clue why this is happening

Source: CSS – Stack Overflow

September 25, 2021
Category : News
Tags: css | html | javascript | monaco-editor

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.