Skip to content

Multi line commands are supposed to show warning because of unexpected execution, but some don't. #249780

Closed
@itzmetanjim

Description

@itzmetanjim

Type: Bug

  1. Enable multi line paste warnings to auto.
  2. Try pasting (using right click) something with multiple visible lines into powershell (not the new version you need to manually download). You will encounter a warning.
  3. Try pasting something that has a single visible line with a newline at the end. (Open a new text file, type a single line command in the file then press enter, press ^A^C to copy). The command should immediately execute without warning, despite having the same risk as the previous situation where a warning IS given.
    This does not work if it is set to 'always'.

VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.88GB (1.21GB free)
Process Argv --open-url --crash-reporter-id b234e749-d273-4bd4-8f25-09238dd625df -- vscode:///
Screen Reader no
VM 0%
Extensions (26)
Extension Author (truncated) Version
blockceptionvscodeminecraftbedrockdevelopmentextension Blo 8.0.36
vscode-bedrock-definitions des 2.0.8
vscode-html-css ecm 2.0.13
copilot Git 1.323.0
copilot-chat Git 0.27.2
rainbow-csv mec 3.19.0
syntax-mcfunction Min 1.0.1
debugpy ms- 2025.8.0
python ms- 2025.6.1
vscode-pylance ms- 2025.5.1
jupyter ms- 2025.4.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.99.0
cmake-tools ms- 1.20.53
cpptools ms- 1.25.3
cpptools-extension-pack ms- 1.3.1
remote-explorer ms- 0.5.0
datapack-language-server SPG 4.5.15
even-better-toml tam 0.21.2
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolor:31314202
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

Metadata

Metadata

Labels

*as-designedDescribed behavior is as designedbugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions