Future-proof indent guides settings for panels (#19878)
This PR ensures that we do not have to break the indent guides settings for the project/outline panel. In the future we might want to have a more granular way to control when to show indent guides, or control other indent guide properties, like its width. Release Notes: - N/A
This commit is contained in:
parent
719a7f7890
commit
b5c41eeb98
6 changed files with 117 additions and 34 deletions
|
@ -2047,6 +2047,9 @@ Run the `theme selector: toggle` action in the command palette to see a current
|
|||
"auto_fold_dirs": true,
|
||||
"scrollbar": {
|
||||
"show": null
|
||||
},
|
||||
"indent_guides": {
|
||||
"show": "always"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2164,27 +2167,54 @@ Run the `theme selector: toggle` action in the command palette to see a current
|
|||
- Setting: `indent_size`
|
||||
- Default: `20`
|
||||
|
||||
### Indent Guides
|
||||
### Indent Guides: Show
|
||||
|
||||
- Description: Whether to show indent guides in the project panel.
|
||||
- Description: Whether to show indent guides in the project panel. Possible values: "always", "never".
|
||||
- Setting: `indent_guides`
|
||||
- Default: `true`
|
||||
|
||||
### Scrollbar
|
||||
|
||||
- Description: Scrollbar related settings. Possible values: null, "auto", "system", "always", "never". Inherits editor settings when absent, see its description for more details.
|
||||
- Setting: `scrollbar`
|
||||
- Default:
|
||||
|
||||
```json
|
||||
"scrollbar": {
|
||||
"show": null
|
||||
"indent_guides": {
|
||||
"show": "always"
|
||||
}
|
||||
```
|
||||
|
||||
**Options**
|
||||
|
||||
1. Show scrollbar in project panel
|
||||
1. Show indent guides in the project panel
|
||||
|
||||
```json
|
||||
{
|
||||
"indent_guides": {
|
||||
"show": "always"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
2. Hide indent guides in the project panel
|
||||
|
||||
```json
|
||||
{
|
||||
"indent_guides": {
|
||||
"show": "never"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Scrollbar: Show
|
||||
|
||||
- Description: Whether to show a scrollbar in the project panel. Possible values: null, "auto", "system", "always", "never". Inherits editor settings when absent, see its description for more details.
|
||||
- Setting: `scrollbar`
|
||||
- Default:
|
||||
|
||||
```json
|
||||
"scrollbar": {
|
||||
"show": null
|
||||
}
|
||||
```
|
||||
|
||||
**Options**
|
||||
|
||||
1. Show scrollbar in the project panel
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -2194,7 +2224,7 @@ Run the `theme selector: toggle` action in the command palette to see a current
|
|||
}
|
||||
```
|
||||
|
||||
2. Hide scrollbar in project panel
|
||||
2. Hide scrollbar in the project panel
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -2237,9 +2267,11 @@ Run the `theme selector: toggle` action in the command palette to see a current
|
|||
"folder_icons": true,
|
||||
"git_status": true,
|
||||
"indent_size": 20,
|
||||
"indent_guides": true,
|
||||
"auto_reveal_entries": true,
|
||||
"auto_fold_dirs": true,
|
||||
"indent_guides": {
|
||||
"show": "always"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue