Skip to content

Supported 'language' editor instance option

Denys Mishunov requested to merge 325992-language-source-editor into master

What does this MR do and why?

It introduces the support for a standard language editor option when creating a Source Editor instance. Prior to this change, the only way to detect a desired language for an editor's model was the blobPath. However, Monaco allows for a standard construction option language which should continue working in Source Editor as well. This MR takes care of it.

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

  1. Edit/create a file in a repo
  2. Make sure the syntax highlighting matches the file type

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #325992 (closed)

Edited by Denys Mishunov

Merge request reports