-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings Need Multiline TextBox #79571
Comments
I too need some multi-line settings for my Factorio Mod Debug extension, which has templates for two auto-generated commit messages in settings (in the version i'm about to upload...). Same problem with |
I downloaded the top 2.5k extensions and did a search to see how string settings with Snippets or actual executable code"wxapp-helper.component.script": {
"type": [
"string",
"null"
],
"default": "Component({\n data: {},\n properties: {},\n methods: {}\n})",
"description": "%ext.config.component.script%"
} Another example is In this case, we want to render a Monaco editor. Hover labels and templates"todo.file.defaultContent": {
"type": "string",
"description": "New todo files default content",
"default": "\nTodo:\n ☐ Item\n"
} Other examples include In this case, we want to render a multiline textarea. Line-break settings"npm-intellisense.importLinebreak": {
"type": "string",
"default": ";\r\n",
"description": "For import command. The linebreak used after the snippet"
} In this case, we want to render the \r and \n explicitly, rather than display a textarea with a trailing newline. |
The others I saw which may be beyond the 2.5k top:
And several that are configuring line endings and are just |
Just a note that for the line break settings, I assume most of them can do the following instead:
An example setting that can be remodelled to this pattern is Edit: Or, the extension author can use a singleline text setting and parse the input like a regex. For example, the user could input |
\closedWith be81d88 |
Issue Type: Bug
This is very similar to #39969, but for the new Settings UI.
I use an extension (
vscode-journal
) that allows you to define a template (settingjournal.tpl-entry
) for creating new files, and these require the use of\n
characters to specify new lines, however the Settings UI won't let me enter\n
(it gets escaped), let alone an actual newline character.VS Code version: Code 1.37.1 (f06011a, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.17763
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (25)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: