You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varoriginalModel=monaco.editor.createModel("This line is removed on the right.\njust some text\nabcd\nefgh\nSome more text","text/plain");varmodifiedModel=monaco.editor.createModel("just some text\nabcz\nzzzzefgh\nSome more text\nThis line is removed on the left.","text/plain");vardiffEditor=monaco.editor.createDiffEditor(document.getElementById("container"),{// Renders without glyph margin// renderSideBySide: false,// glyphMargin: false,// Still shows glyphMarginrenderSideBySide: true,useInlineViewWhenSpaceIsLimited: false,glyphMargin: false,});diffEditor.setModel({original: originalModel,modified: modifiedModel,});
Reproduction Steps
Set these options and observe that the glyph margin is still shown.
renderSideBySide: true,
useInlineViewWhenSpaceIsLimited: false,
glyphMargin: false,
Actual (Problematic) Behavior
Glyph margin is turned off, but still renders when the diff editor is in side by side mode.
Expected Behavior
I would expect, regardless of whether it is rendered in side by side or not, that if glyphMargin is set to false, then glyphMargin should not be shown,
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I also encountered the same problem, setting glyphMargin to false will still render
At present, I solve it in this way. The following is the code to solve it.
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html?source=v0.47.0#XQAAAALtAgAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw2niNxqjsAD0-ojp5wJqOvqwlfzL0lj1q0QqHuzP9sldHeU38FrR0K4YSNEzAxFQQ9UAeGugw0A9vzG322o22aQJt8vF_OJ-CiyIUlTmYgwXhvFtZiw6vrXxme9hCDg0OSXvg7TEw1rd5V-g1Rh4pXehVYLGJO58JoRabIuhycF9fYiANRmdlMDG_x4x7X5uR8Gm4lmfiETNh5JL3NutP1l6kwWkkSWqtzDKnuuJOebjhyPN4a5BoXB22z2dKOVlw4AR7NJNK-Yx-v5AS2uecQIu28EXPMqKKuAIFUQdUC2vD4A1-Eq2elmVkc30fvf6wfKbqCV8csEmmzWkTjUZdGzJO5XEGUxbONootGNFsFj4DD2WWbg0ecs4xKnlRDqT_fWSvMAc3JIGEqp3aPiRD-N3W4ZjuA5ewcsIqJq5GH6c1433sBxEGaZvEate8YaLK_xtvmgA
Monaco Editor Playground Code
Reproduction Steps
Set these options and observe that the glyph margin is still shown.
renderSideBySide: true,
useInlineViewWhenSpaceIsLimited: false,
glyphMargin: false,
Actual (Problematic) Behavior
Glyph margin is turned off, but still renders when the diff editor is in side by side mode.
Expected Behavior
I would expect, regardless of whether it is rendered in side by side or not, that if glyphMargin is set to false, then glyphMargin should not be shown,
Additional Context
No response
The text was updated successfully, but these errors were encountered: