microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.29k stars 29.31k forks source link

Hash (and everything after) in .gitmessage is missing in "Source Control" pre-filled message #80415

Closed rlebosse closed 5 years ago

rlebosse commented 5 years ago

Steps to Reproduce:

  1. Write message #issue in file ~/.gitmessage

Sélection_027

  1. Open VSCode in a project that is linked to git
  2. Open "Source Control" section
  3. The pre-filled message is only "message " (the hash and everything after is missing)

Sélection_026

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

The whole message was displayed correctly in the previous VSCode version.

Sélection_028

joaomoreno commented 5 years ago

Broken by https://github.com/microsoft/vscode/pull/71710. The right fix there would just be to remove the call to trim().