Comments (1)
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.
const diffEditor = monaco.editor.createDiffEditor(editorContainer.value, {
theme: 'vs-dark',
enableSplitViewResizing: true,
roundedSelection: false,
diffWordWrap: true,
autoIndent: true,
automaticLayout: true,
scrollBeyondLastLine: false,
scrollbar: {
verticalScrollbarSize: 0
},
glyphMargin: false,
value: '',
fontSize: '14px',
originalEditable: true,
readOnly: false,
language: 'text/plain',
});
const originalModel = monaco.editor.createModel('', 'text/plain');
const modifiedModel = monaco.editor.createModel('', 'text/plain');
diffEditor.setModel({
original: originalModel,
modified: modifiedModel
});
// update glyphMargin
diffEditor.getOriginalEditor().updateOptions({
glyphMargin: false
})
from monaco-editor.
Related Issues (20)
- [Bug] use side by side mode,delete texts are not high light
- [Bug] Cursor becomes misaligned when using custom font HOT 1
- [Bug] 0.51.0 only: Could not create web worker HOT 2
- [Bug] Overlapping ranges are not allowed!
- [Bug] Placeholder doesn't display whitespaces
- [Bug] v0.51.0 breaks for browser based imports HOT 3
- [Bug] scss语法警告报错
- [Bug]. Accessibility. Alt+f1 shortcut doesn't trigger accessibility help dialogue.
- [Feature Request]. Accessibility. Update accessibility support in Monaco editor to VSCode's support.
- [Bug] inlay hint bug in sticky line HOT 1
- [Bug] Memory leaking when disposing Diff editor HOT 1
- [Bug] Unable to Customize Rename Input Text Color Through defineTheme
- [Bug] Handlebars syntax highlighting broken since version 0.35.0
- [Feature Request] Support ES2023
- [Bug] Expressions using Python's matrix multiplication operator highlighted as decorator
- [Feature Request] Change locale at runtime HOT 2
- When we are pressing the tab key, Keyboard focus moves to hidden control and gets lost completely on dismissing 'Find & Replace' popup:A11y_Monacoeditor_Focusorder. HOT 1
- [Bug] 中文字符输入,特定情况下会闪烁。 HOT 1
- NVDA screen reader is announcing unnecessary information as "press ALT + F1 key to expand accessibility option" but nothing is happening when we hit these keys:A11y_MonacoEditor_Screenreader HOT 3
- [Bug] Update to angular 18.2.3 gives importScripts error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.