Closed
Description
Description
In preferences split editor, inline phantom button with pencil icon in the left pane sometimes misbehaves: when inserting new preferences entry to the right page, it may misalign text and cursor with selection. The bug seem to affect json map (object) values preferences. Note that there aren't any of such objects in the general User/Preferences.sublime-settings, so check out Package Control.sublime-settings instead.
Steps to reproduce
- Open menu Preferences > Package Settings > Package Control -> Settings.
- Split window should show up with default config on the left and user's prefs on the right.
- Click phantom pencil icon on any preference which has JSON object default value on the left, and which is not yet defined on the right.
Actual result
Expected result
Expected to see something similar to what happens with JSON arrays:
- new preference name on its own line, followed by double-colon,
- JSON object's curly braces on their own lines below,
- cursor between braces on its own line, indented.
Like this (cursor is denoted by ${|}
):
"install_prereleases":
[
${|}
],
Version
Operating System: Arch Linux
Kernel Version: 5.12.9-arch1-1
OS Type: 64-bit
Graphics Platform: X11
Sublime Text: Stable, Build 4107