Commit Graph

60 Commits

Author SHA1 Message Date
ray-x
f33866ed00 Feature: run & debug a subtest inside table driven test cases 2023-01-11 14:53:05 +11:00
ray-x
b53dfd4fdb dap options for time out issue #263 🎄🎆 2022-12-28 17:14:42 +11:00
ray-x
46052e6450 detect bench test for dap debug 2022-09-05 15:47:08 +10:00
Yajie Zhu
6c793a1c6f
fix: use strict test function name while debugging (#197)
* fix: use strict test function name while debugging

* fix: use strict test function name while debugging

* Revert "fix: use strict test function name while debugging"

This reverts commit f47dd66c50.

Co-authored-by: zhuyajie <930664@qq.com>
2022-08-07 21:00:48 +10:00
ray-x
ca7cb5fe34 lint 2022-08-06 13:45:01 +10:00
rayx
0e8cc90e30
Bugfix #160 (#167)
* snips

* update ts node spec format

* luasnip up and running

* bugfix alternate file

* Bring in more snippets

* updates for mockery 2.11

* snips for http handler and more

* update doc

* bench test

* for snips

* update treesitter query and api

* refact get_xxx_at_cursor

* update test spec

* update row to vim range

* update col number

* remove comments

* merge conflicts
2022-07-12 23:11:46 +10:00
ray-x
e43eaf43b7 go-dap keymap desc 2022-07-09 19:26:31 +10:00
ray-x
9ad2568465 better key unmap, allow recover the keymap to user defined key 2022-07-07 23:46:36 +10:00
ray-x
a86e9d2a29 Feature: add go mock / mockgen 2022-07-06 08:28:29 +10:00
rayx
2371bf414b
[Breaking] change keymap api (#152)
the keymap api used in version no longer support neovim 0.6.x. Please use nvim-0.6 branch if you do not want to update to neovim 0.7, BTW, if you do not use go.nvim for debugging, it should not affect you.
2022-07-04 12:13:46 +10:00
ray-x
a2d0bbee53 bugfix #153, update doc 2022-07-03 09:11:26 +10:00
ray-x
84ac01df53 Feature: show keybindings for debug session 2022-07-01 20:30:43 +10:00
David Brouwer
ee39b539b9
fix(dap): don't close empty stdout stderr handle (#149)
Add nil check to closure of stdout stderr handle
2022-07-01 19:06:02 +10:00
ray-x
c9ba685250 should call dapui.setup only once, #145
check dapui is_open
2022-06-30 15:44:54 +10:00
ray-x
eae9af9c1d recommit fix for #145 due to merge failure 2022-06-30 12:41:20 +10:00
ray-x
7945c74580 breaking changes dapui #137 2022-06-21 12:54:26 +10:00
ray-x
9d8117766c dap restart fix, fish fix 2022-06-16 11:38:37 +10:00
ray-x
040c7bd110 Update document
Smart build tags detection
2022-06-15 14:11:10 +10:00
ray-x
ccaed8c573 cli improvement for gomodifytags, gotest 2022-06-03 19:07:05 +10:00
ray-x
ffd3b019a9 treesitter with dap to capture current function name 2022-06-02 19:07:28 +10:00
ray-x
30d30f407a fix diagnostic warnings for all files 2022-06-01 21:29:13 +10:00
ray-x
002d7dfd73 infer the test func name with treesitter 2022-05-29 23:07:39 +10:00
ray-x
73eed9e67b remove un-used setup in breakpoint save 2022-05-15 22:05:12 +10:00
ray-x
669ad39639 update launch.json and readme.md for the new commands 2022-05-15 21:43:59 +10:00
ray-x
f187f10678 Update GoModxxx cmds 2022-05-15 14:09:07 +10:00
ray-x
de1306a986 goenv and load breakpoints 2022-05-14 21:24:55 +10:00
ray-x
f3e1da9968 save and load breaks 2022-05-14 21:24:55 +10:00
ray-x
c8c63fb9a1 handle stderr output 2022-04-20 12:00:49 +10:00
rayx
32f103258b
Gotest refactor (#102)
* issue #82 allow close terminal in current buffer

* update go test arguments

* auto complete args updates based on @Craig Rodgigues feedbacks

* update test arguments

* Return cursor to previous cursor position (#101)

`GoGet` and `GoMod` opens up a new split and move the cursor there.
If the cursor isn't moved back to the *.go buffer, `utils.restart`
will try to spawn gopls in the terminal split, which results in
gopls failed to restart properly.

* fix double close when end dap session

* add relFileDir in launch.json

* update sample go app

* fix: remove cover file (#107)

* fix: remove cover file

* fix: coverage notify message

* github action setup for go 1.18

* issue #109 config dap marker

* setup pipeline with go install

* add icons setup options in doc issue #35 issue #109

Co-authored-by: Mochammad Hanif R <etrnal70@gmail.com>
Co-authored-by: Nicolas Barbosa <ndevbarbosa@gmail.com>
2022-04-16 22:09:15 +10:00
ray-x
dbfde6ea1b fix double close when end dap session 2022-03-30 15:44:33 +11:00
ray-x
ed3dfb85b2 Breaking changes for GoDebug, deprecate old argument and using linux style command line arguments 2022-03-07 17:09:42 +11:00
ray-x
d98d4e9eda better error message for dlv; dlv attach mode 2022-02-14 15:59:31 +11:00
ray-x
180e44ac07 handle nil 2022-01-30 16:02:18 +11:00
ray-x
a853613467 use -1 for random port 2022-01-30 15:57:56 +11:00
ray-x
ee3c36e25d allow config debug port 2022-01-26 22:51:00 +11:00
ray-x
22fe0379de check dap module before disconnect dap 2022-01-17 10:31:24 +11:00
ray-x
0d5f1c9f31 add health.lua 2022-01-15 22:14:56 +11:00
ray-x
2869c5b8fc Add support for vscode launch.json. Allow launch debugger from config in .vscode/launch.json 2022-01-15 20:59:03 +11:00
ray-x
ff9a34bffb issue #71 session and restart for the debugger 2022-01-13 09:07:14 +11:00
ray-x
ca1d46b4ab prevent re-launch dap 2022-01-12 19:57:30 +11:00
ray-x
264efc57c1 issue #65 failed to run coverage tests. Notify updates. 2021-12-30 01:33:24 +11:00
Craig Rodrigues
483b56f4a2
Replace print() with vim.notify() (#64) 2021-12-22 14:34:10 +11:00
ray-x
db819954d3 Add GoCodeAction, GUI with guihua.lua and vim.ui.select() 2021-12-17 09:59:47 +11:00
ray-x
124d2e269c dap_debug_keymap missing issue #57 2021-12-17 09:02:29 +11:00
ray-x
3329238deb code action with telescope, dap debug restart 2021-11-30 07:19:45 +11:00
ray-x
4611c34548 updates for dapui 2021-11-24 20:05:02 +11:00
ray-x
1b11f52b08 updates for dap.ui 2021-11-24 10:13:40 +11:00
Vincent Xiao
21017717c1
Support multiple files on GoDebug (#44)
Running `GoDebug` on `main()` will fail if there are multiple files in `package main` since the other files won't be compiled along with the target file.
2021-11-22 13:00:04 +11:00
ray-x
0dc7b57f6f windows path issue #40 2021-11-10 13:20:54 +11:00
ray-x
39a66c3534 dap sign #35 2021-10-26 11:16:15 +11:00