DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

Shift+Ctrl test #868

Closed jnpa1 closed 5 years ago

jnpa1 commented 6 years ago

I was having problems using shift + ctrl + left click to test single functions removing double quotes from gstst.py on lines 85 and 87

cmd = ['go', 'test', '-test.run=none', '-test.bench=%s' % pat]
cmd = ['go', 'test', '-test.run=%s' % pat]

solved the problem for me, is that the way to go or this should be some kind of configuration?

go version go1.10.1 linux/amd64 gosublime - 63d0f2534b0e53f93059d29fd22f77b41c0cdc48

DisposaBoy commented 6 years ago

TBH, I forgot about this feature. It will need to be implemented upstream in margo (gstest is going away as well). I will fix it sometime during this week, if I get a chance.

For now you can either keep using your fix, or use the command palette ctrl+.,ctrl+t, although the UX isn't as great.