monaco-editor version: 0.15.6
Browser: Google Chrome 71
OS: Windows 10
Steps or JS usage snippet reproducing the issue:
I don't find any reference in Monaco for 'merge.currentHeaderBackground', but in the Merge-Conflict extension in VS Code I can find a reference.
Should these "Color Names" related to merging work in Monaco?
That is a VS Code extension. VS Code extensions are not shipped with the Monaco Editor, so there is no code shipped with the Monaco Editor doing what the Merge Conflict extension does in VS Code.
Thanks for the reply @alexandrudima
Why are these names available in the Monaco Editor and the Playground if they are not part of default Monaco Editor?
This usually indicates some layer-breaking code... I suppose the color definitions are written in the editor, even through they are used by a VS Code extension.
@aeschli Shouldn't these move to the extension itself?
I assume the list of colors listed in https://github.com/Microsoft/monaco-editor/blob/master/website/playground/new-samples/customizing-the-appearence/exposed-colors/sample.js was retrieved from colorRegistry.ts
colorRegistry contains a set of colors that where intended to be used across UI parts. There might be more colors that don't appear in the Monaco editor. For the color documentation we probably need to be smarter and look for actual references or maybe put a console.log to the color registry to see which colors are accessed.
That said, I agree that the merge colors shouldn't have been added to the comon colors and should be removed.
I can remove the colors from the samples
Most helpful comment
I assume the list of colors listed in https://github.com/Microsoft/monaco-editor/blob/master/website/playground/new-samples/customizing-the-appearence/exposed-colors/sample.js was retrieved from colorRegistry.ts
colorRegistry contains a set of colors that where intended to be used across UI parts. There might be more colors that don't appear in the Monaco editor. For the color documentation we probably need to be smarter and look for actual references or maybe put a console.log to the color registry to see which colors are accessed.
That said, I agree that the merge colors shouldn't have been added to the comon colors and should be removed.