Closed ghost closed 5 years ago
Might have something to do with this recent commit? Seems unlikely but it's possible.
Thank you @joaomoreno
@joaomoreno I just received the 1.40 update where this behavior was changed. In some sense, I guess it's behaving as intended, and in another sense, it's not what I was hoping for. Now, in the commit message box, it shows the full content of my .gitmessage file, all the commented out lines and everything. What I really meant originally and wanted (can't speak for others of course) is for the commit message box to not print any comments. Only print uncommented text. If I do an interactive commit message from the command line, my commented template will pop up and that's all fine. But for the tiny commit message box, I definitely do not want that to have anything in there other than what is absolutely necessary, which for me, is only uncommented text... which in this case, means the message box would be empty. This was the behavior before 1.38 or 1.37.
If it's going to stay this way, perhaps a settings switch to either ignore the gitmessage file for the integrated commit message box, or only render uncommented text, or render the whole thing (as it does now).
Yeah, I was thinking the same once I pushed the changes. I think we should do that setting yet it would mean: populate the input box with the template commit message without any comments. What do you think?
Yea, to me that makes the most sense. That way if you want something in there, then you have it uncommented. Otherwise, it will be completely blank as if there was no gitmessage file.
Thank you!
Issue Type: Bug
Expected Results:
When commit template has comments it in, do not prefill commit message box in "Source Control" panel with whitespace.
Actual Results:
My commit message template has a lot of comments in it but no live text. Before the latest update (1.38 i think), the commit message box would be empty as expected. Now, the commit message box is prefilled with a lot of white space after each commit and when opening the source control panel for the first time. So I have to delete the whitespace each time to enter a proper commit message. If I delete my .gitmessage.txt template, the whitespace does not appear.
The behavior remains when VSCode is run with no extensions.
Below is my .gitmessage.txt file (single empty top line):
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z) OS version: Windows_NT x64 10.0.18362
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)| |GPU Status|2d_canvas: enabledflash_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| |Load (avg)|undefined| |Memory (System)|31.85GB (17.14GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (52)
Extension|Author (truncated)|Version ---|---|--- html-snippets|abu|0.2.1 TabOut|alb|0.1.6 project-manager|ale|10.8.0 arepl|alm|1.0.17 gitstash|art|3.1.0 language-hugo-vscode|bud|1.1.0 better-toml|bun|0.3.2 path-intellisense|chr|1.4.2 bracket-pair-colorizer|Coe|1.0.61 vscode-markdownlint|Dav|0.30.2 ini-for-vscode|Dav|0.0.4 vscode-quick-select|dba|0.2.8 githistory|don|0.4.6 vscode-babel-coloring|dza|0.0.4 gitlens|eam|10.0.1 vscode-html-css|ecm|0.2.3 vscode-great-icons|emm|2.1.47 auto-close-tag|for|0.5.6 auto-rename-tag|for|0.1.0 matlab|Gim|1.3.0 reg|ion|1.0.1 vscode-edit-csv|jan|0.1.4 auto-comment-blocks|kev|1.0.1 wrapSelection|kon|0.6.8 contextualduplicate|laf|0.2.0 vs-color-picker|lih|1.0.0 copy-github-url|mat|0.2.0 markdown-shortcuts|mdi|0.11.0 git-graph|mhu|1.16.0 code-beautifier|mic|2.3.3 python|ms-|2019.9.34911 remote-wsl|ms-|0.39.5 csharp|ms-|1.21.3 Go|ms-|0.11.6 vsliveshare|ms-|1.0.869 color-highlight|nau|2.3.0 indent-rainbow|ode|7.4.0 gitpatch|par|0.2.1 vscode-print|pdc|0.7.12 material-icon-theme|PKi|3.9.0 vscode-css-peek|pra|3.0.2 code-settings-sync|Sha|3.4.3 vscode-autohotkey|sle|0.2.2 vba|spe|1.2.0 css-auto-prefix|spo|0.1.7 rewrap|stk|1.9.1 code-spell-checker|str|1.7.18 unique-window-colors|stu|1.0.51 vscode-open-in-github|sys|1.13.0 shell-launcher|Tyr|0.3.0 sort-lines|Tyr|1.8.0 vscode-icons|vsc|9.4.0 (10 theme extensions excluded)