Skip to content

Unwanted: const { response } = require("express"); #109873

@lborgman

Description

@lborgman

Issue Type: Bug

I have no idea how to reproduce this, but here is some info:

  • The line in the title (after "unwanted") was added automatically.
  • I had just added a new function where I have a parameter called "response" when this happened.
  • The file is just a pure ES6 file.
  • I do not use any framework that could decode "require" (if Firebase can't do that, it is the only framework I use).

It confused me quite a bit since I had some network trouble at the same time.

I am sure I have seen something similar before (but I did not have time to report it then).

VS Code version: Code 1.50.1 (d2e414d, 2020-10-13T15:06:15.712Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Pentium(R) CPU N4200 @ 1.10GHz (4 x 1094)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 3.84GB (0.31GB free)
Process Argv --crash-reporter-id 2db228e7-570f-43a0-b1bf-75f2af041a44
Screen Reader no
VM 0%
Extensions (14)
Extension Author (truncated) Version
vscode-toggle-quotes Bri 0.3.3
cursor-charcode but 0.9.2
firecode ChF 1.3.0
gitignore cod 0.6.0
bracket-pair-colorizer Coe 1.0.61
gitlens eam 10.2.2
vscode-sort hen 0.2.5
beautify Hoo 1.5.0
svg joc 1.4.1
powershell ms- 2020.6.0
material-icon-theme PKi 4.4.0
partial-diff ryu 1.4.1
vim vsc 1.17.1
json Zai 2.0.1

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)javascriptJavaScript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions