You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
macOS 10.13.6, and Windows 10 Version 1809 (OS Build 17763.55)
vscode 1.28.2
go plugin 0.6.93
golang v1.11.1
Tested with only the go plugin enabled
While writing unit tests for a go file, I had vscode split horizontally. The left panel being my actual code lets say thing.go. The right panel was thing_test.go. After code coverage highlighting has been toggled, any time you focus back on the thing.go panel, the code coverage highlighting intensity increases. I'm assuming this means that instead of redrawing the code coverage, it's just layering the code coverage over the existing rendered panel. During my testing I found that if thing.go shared it's panel with another file in a tab, switching tabs would reset the code highlighting to the expected state.
If you then select a file in another panel, and focus back on thing.go the issue will appear again.
Once the issue has occurred, you can not use the right click menu Go: Toggle Test Coverage In Current Package to hide the code coverage highlighting
I'm not 100% sure what the issue is, or what component is the culprit. I'm assuming that this is a problem with the vscode-go plugin.
Steps to Reproduce:
Start VScode however you like
Create a simple go file with a few functions to test
Create a simple unit test for those functions
Open the go file and unit test file in vscode
Select the unit test files tab, right click, and select split right
Close the unit test files tab in the left panel.
Execute the unit test
Click run package tests in unit test file, and click to bring focus back into the go file
OR: Right click in the go file and click Go: Toggle Test Coverage In Current Package
Switch focus to the unit test file in the right panel by clicking inside of the open file
Switch focus to the go file in the left panel by clicking inside of the open file
macOS 10.13.6, and Windows 10 Version 1809 (OS Build 17763.55)
vscode 1.28.2
go plugin 0.6.93
golang v1.11.1
Tested with only the go plugin enabled
While writing unit tests for a go file, I had vscode split horizontally. The left panel being my actual code lets say
thing.go
. The right panel wasthing_test.go
. After code coverage highlighting has been toggled, any time you focus back on thething.go
panel, the code coverage highlighting intensity increases. I'm assuming this means that instead of redrawing the code coverage, it's just layering the code coverage over the existing rendered panel. During my testing I found that ifthing.go
shared it's panel with another file in a tab, switching tabs would reset the code highlighting to the expected state.If you then select a file in another panel, and focus back on
thing.go
the issue will appear again.Once the issue has occurred, you can not use the right click menu
Go: Toggle Test Coverage In Current Package
to hide the code coverage highlightingI'm not 100% sure what the issue is, or what component is the culprit. I'm assuming that this is a problem with the vscode-go plugin.
Steps to Reproduce:
run package tests
in unit test file, and click to bring focus back into the go fileGo: Toggle Test Coverage In Current Package
Here's a gif demonstrating the highlighting issue
Example code
thing.go
thing_test.go
The text was updated successfully, but these errors were encountered: