Skip to content

Isolate embedded/standalone Monaco Editors #15218

Closed
@sdirix

Description

@sdirix

Overview

We use Monaco Editors not only for file editing, but also inline like in the chat input, console input, and breakpoint condition editing.

At the moment these inline editors are not decoupled from the global Monaco services. As a consequence there are unintended side effects, for example the popular vim extension interferes with these embedded editors, making it practically unusable.

Suggestion

  • Offer a way to create isolated inline editors, which behave as intended by the caller, without extensions interfering with it
  • Make sure to still offer a way for certain extensions to extend the behavior on a whitelist principle, for example code completion should work within the breakpoint condition editor
  • Switch all inline editors to this new functionality, whitelisting what is necessary for each use case

Optional goal:

  • Also offer the same mechanism for all non-inline editors

References

See #14957 for related changes.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions