Skip to content

Debug console suggestion selection does not replace selected suggestion with already typed text but rather appends it #243409

@m-ahmadi

Description

@m-ahmadi

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.98.1
  • OS Version: Microsoft Windows Version 1809 (OS Build 17763.7009)

Steps to Reproduce:

  1. Run and Debug a foo.js file
  2. Place a breakpoint inside the file
  3. Once execution is paused in debugger, try to type into debug console
  4. Here lies the problem, Let's say there is a variable name let foo = 32; before the breakpoint
  5. Now I will start typing the fo in debug console
  6. Now a suggestion box pops up and shows the foo variable
  7. I press arrows keys to select the suggestion row for the foo variable
  8. I press tab, and I expect the program to place the word foo in the deub console promp
  9. But what happens is program appends the word foo to the already two character that I typed fo and my the textbox of debug console will become fofoo
  10. A note I must mention, this issue does not happen when you are typing something after a dot character
  11. For example, If I type foo.ba, and suggestions popup and I select foo.bar and press tab, then the debug console will work as expected and puts the foo.bar text in the textbox of the console. (so is ready to press enter)

(I can record a gif of it if you want)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions