1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-09-12 03:51:51 +03:00
Commit Graph

22 Commits

Author SHA1 Message Date
Stefan Haller
08ad8a0b2d Don't generate test list before running integration test
It's annoyingly slow, and there is a separate task for generating the list if
needed.

Also, clear the terminal before running the test; this makes it easier to see
the results of the last test run.
2025-07-04 18:26:45 +02:00
Stefan Haller
d9e299c1df Update VS Code settings to enable staticcheck linter
... and configure it to run the same checks as golangci-lint.

It may seem redundant to have two linter checks enabled; however, there are
reasons to have both. golangci-lint is what we are running on CI, and it has a
lot more linters than gopls, so we want to run it locally too to get the same
coverage. The linter that is built into gopls is only staticcheck, so that's
redundant; but it has the advantage that the warnings appear a bit faster
(golangci-lint runs only on save, and with a bit of delay), and in particular it
provides quick fixes for some of the checks, which is quite convenient.
2025-06-30 18:30:11 +02:00
Stefan Haller
9b54dc0b28 Update VS Code settings to use golangci-lint v2
We configure it to call the same binary that the new lint script also uses (see
beginning of the branch).
2025-06-30 18:30:11 +02:00
Stefan Haller
e90aeb62e5 Add launch config for debugging the schema generation 2025-02-25 11:42:47 +01:00
Jesse Duffield
e887a2eb3c Stop hiding debug vscode launch tasks
No idea why these were hidden in the first place
2024-01-19 10:47:21 +11:00
Jesse Duffield
877c27722f add gofumpt to workspace settings 2023-09-30 19:46:03 +10:00
Stefan Haller
b6c892a08a Provide a simple way to debug an integration test 2023-09-11 08:17:58 +02:00
Stefan Haller
28d12e4e5d Add debug configuration to attach to a running lazygit process
I often find it more convenient to start a lazygit process in a terminal window
and then attach to it, rather than have VS Code launch one for me.

Note that this doesn't work with "go run main.go". It does work with "make run",
however.

Make sure there's only one lazygit process running, otherwise VS Code will open
a chooser with all the running processes to pick one from, but it's pretty much
impossible to tell which is which.
2023-09-10 11:47:25 +02:00
Stefan Haller
de598e55a6 Hide system goroutines in callstack
I have never found a reason to see them, and they just pollute the stack window
unnecessarily.
2023-09-10 11:47:25 +02:00
Stefan Haller
0fd8392067 Format launch.json with Prettier 2023-09-10 11:47:25 +02:00
Jesse Duffield
526d8a8a76 Fix cheatsheet generate VSCode task
This was previously not working because we tried to run the whole string as its own process
2023-05-21 11:31:29 +10:00
Stefan Haller
fc2f8b7b20 Make debugger config work when changing repos while debugging
When changing repos while debugging, the current working directory changes,
which means that a daemon lazygit doesn't find the debugger_config.yml file any
more when you do an interactive rebase. Fix this by using an absolute path for
the --use-config-file option.
2023-04-04 10:26:42 +02:00
Jesse Duffield
76109a4c44 sync test list whenever running a test in vscode 2023-02-20 19:01:08 +11:00
Jesse Duffield
0ac869a415 allow syncing tests from vscode 2023-02-19 13:38:07 +11:00
Jesse Duffield
c19f52255c add task for opening deprecated tests TUI 2022-12-24 19:14:52 +11:00
Jesse Duffield
588850b090 focus terminal when running a test 2022-12-24 19:05:46 +11:00
Jesse Duffield
e059641f3f more tasks 2022-11-13 12:05:07 +11:00
Jesse Duffield
fb170b55a2 add some tasks 2022-11-13 11:37:52 +11:00
Jesse Duffield
e28d1334e9 better debug setup 2022-05-17 22:14:24 +10:00
Jesse Duffield
95e816ae91 remove commented out line 2022-05-17 21:52:14 +10:00
Jesse Duffield
e89d817d78 update launch.json 2022-05-17 11:45:47 +00:00
Jesse Duffield
2fe286f395 add launch.json 2022-05-17 21:38:37 +10:00