Renders all whitespace for text visualization & introduces decoration support.

This commit is contained in:
Henning Dieterichs
2021-06-07 00:43:03 +02:00
parent ec221b506e
commit 814b33720d
5 changed files with 1258 additions and 1207 deletions

View File

@@ -105,6 +105,7 @@ export class MonacoDiffEditor extends React.Component<{
fixedOverflowWidgets: true,
readOnly: true,
theme: this.props.theme.kind === "dark" ? "vs-dark" : "vs",
renderWhitespace: "all",
});
if (this.originalModel && this.modifiedModel) {
this.editor.setModel({