Setting the "this" context in the Monaco editor for javascript

When creating an editor for use with Javascript, is it possible to set the context from which the "this" keyword (possibly a global scope) will initially be applied?

Within the Monaco editor’s playground, if the editor is initially empty and I type this., I would like the autocomplete list to display capabilities based on the appropriate context.

Even inside a function, input this.only leads to words that appear in the function. There are no other options.

+4
source share

Source: https://habr.com/ru/post/1693652/


All Articles