Incomplete IndentGuides display
See original GitHub issuemonaco-editor version: 0.19.0 Browser: Google OS: win10 Playground code that reproduces the issue:
I’m fine on the playground, but not in my vue project. Only the first column has IndentGuides.
There is really only one node in html.
import * as monaco from 'monaco-editor';
const arr = [
{
"value": "",
"url": ""
}
]
export default {
mounted() {
this.$nextTick(() => {
this.editor = monaco.editor.create(this.$el, {
value: JSON.stringify(arr, null, 2),
language: "json",
theme: 'vs-dark',
});
});
},
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
You Might Not Need a Vim Plugin to Visualize Line Indents
We'll cover a few Vim motions and mappings to jump between or manipulate text within tags.Hit the subscribe button to receive more videos ......
Read more >How to show indentation guides in TextMate
There is a menu item somewhere, or a preference settings called "show invisible characters". That's what is used in TextMate to show ......
Read more >Indent Guides - Visual Studio Marketplace
Displays indent and page width guides in Visual Studio text editor windows. Guides can be displayed at the indent specified in your settings, ......
Read more >Display only incomplete tasks - Microsoft Project Quick Tips ...
Display only incomplete tasks. “ - [Instructor] Filtering your task list to see what is and isn't done is easy. When you need ......
Read more >Add subtasks to reminders on Mac
Indent reminders to turn them into subtasks of the reminder right above them. A reminders list showing the reminders organized into subtasks.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thank you very much.
That has to do with indentation settings.
When creating the editor with the value
[]
, the string[]
has no indentation, so the editor cannot guess what your indentation is. It falls back to the default settings,tabSize: 4, insertSpaces: true
. So an indent guide is rendered every 4 spaces.You can define this explicitly via
tabSize: 2
, e.g.: