Commit graph

689 commits

Author SHA1 Message Date
Ben Jackson
0c6715e95e
Charityware 1740 2020-07-21 23:24:53 +01:00
mergify[bot]
db5073aec1
Merge pull request #208 from puremourning/eval-cursorpos 1734
Put the cursor at the end of the buffer after evaluations
2020-07-18 17:23:49 +00:00
Ben Jackson
e885c95daa Put the cursor at the end of the buffer after evaluations 2020-07-18 18:14:39 +01:00
mergify[bot]
c1e29be9b8
Merge pull request #198 from puremourning/ui-custom 1731
UI customisation
2020-07-18 14:20:18 +00:00
Ben Jackson
99b582378a Allow ctrl-c to cancel when asked for a variable 2020-07-18 14:39:54 +01:00
Ben Jackson
47ace82364 FixUp: output window should set the global win id 2020-07-18 13:55:00 +01:00
Ben Jackson
3726766694 Documentation for the UI customisation 2020-07-18 13:41:22 +01:00
Ben Jackson
80afb153b9 FixUp: Closing the output window causes errors on output 2020-07-18 13:21:17 +01:00
Ben Jackson
f8cbb7c5b6 Add options to control window sizes
This adds the following options, allowing the default sizes to be
overridden:

- g:vimspector_sidebar_width: Controls the width of the left utility
  windows (variables, watches, stack trace)
- g:vimspector_bottombar_height: Controls the height of the output
  window below the code window

The terminal is typically created as a vertical split of the code
window.  The following control the sizing of the terminal window used
for debuggee input/output when using Vim's built-in terminal.

- g:vimspector_code_minwidth: Minimum number of columns to try and
  maintain for the code window.
- g:vimspector_terminal_maxwidth: Maximum number of columns to use for
  th terminal, when vertically splitting the code window.
- g:vimspector_terminal_minwidth: Minimum number of columns to use when
  it is not possible to fit g:vimspector_terminal_maxwidth columns next
  to the code window with g:vimspector_code_minwidth columns.
2020-07-17 16:52:41 +01:00
Ben Jackson
7a9f75a06e Don't change the value of equalalways
We were trying to avoid equalalways from changing the UI layout by
unsetting it and resetting it after changes. However, re-setting
equalalways actually resizes all the windows, so this never worked.

Instead we judiciously use rightbelow, leftabove, etc. and specify the
exact window sizes we want.

As a side-effect we make the terminal sizing a little more pleasant by
default, ensuring that it is no wider than 80 chars, and tries to use
any remianing vertical space after reserving 80 chars for the code
window.
2020-07-16 16:05:04 +01:00
Ben Jackson
b1fd15c56a Add a test for expanding watches 2020-07-16 08:33:49 +01:00
Ben Jackson
9faa8aa6f7 Fix test timing issue, so it passes on llvm and gdb 2020-07-16 08:33:49 +01:00
Ben Jackson
e884a5f71c run_tests: add --help properly 2020-07-16 08:33:49 +01:00
Ben Jackson
4f0847bcf8 Match the output on linux and mac 2020-07-16 08:33:49 +01:00
Ben Jackson
6d020a50de Fix removing all assert errors, properly this time 2020-07-16 08:33:49 +01:00
Ben Jackson
231720b5b5 Make the messages clearer 2020-07-16 08:33:49 +01:00
Ben Jackson
79a8ad40a4 Use my fork of vint; fix some lint 2020-07-16 08:33:49 +01:00
Ben Jackson
82ec19fff9 Update tocs 2020-07-16 08:33:49 +01:00
Ben Jackson
97f6dd29a6 Add some tests for expand/collapse variables; todo - fails on gdb/linux 2020-07-16 08:33:49 +01:00
Ben Jackson
9df680089b Allow default configuraiton to be specified; document selection 2020-07-16 08:33:49 +01:00
Ben Jackson
db344148ea Example of setting terminal window size sensibly 2020-07-16 08:33:49 +01:00
Ben Jackson
3beb25f949 Raise an autocommand for the terminal too 2020-07-16 08:33:49 +01:00
Ben Jackson
cd796d1500 Just print messages to azure too 2020-07-16 08:33:49 +01:00
Ben Jackson
727214c599 Add a bunch of tests for the ui customisation 2020-07-16 08:33:49 +01:00
Ben Jackson
ebc0b3607a Neovim sigh 2020-07-16 08:33:49 +01:00
Ben Jackson
2c5937c2c1 Support basic UI customisation via a User autocommand 2020-07-16 08:33:49 +01:00
Ben Jackson
de2a924c38 use simpler UI setup commands 2020-07-16 08:33:49 +01:00
mergify[bot]
05b855e605
Merge pull request #206 from puremourning/bugfixes 1725
A number of Bugfixes
2020-07-16 07:28:53 +00:00
Ben Jackson
c6e8e8038f Remove hard-coded terminal width which doesn't work on smaller width screens 2020-07-16 08:14:54 +01:00
Ben Jackson
a4f3fd9c5e Disable relativenumber in utility windows; disable textwidth in neovim too 2020-07-16 08:13:27 +01:00
Ben Jackson
2440a987b2 Tidy unknwon types and values 2020-07-16 08:10:49 +01:00
Ben Jackson
434a6f41d4 Only expand one cheap scope by default - don't keep others expanded from previous frames 2020-07-16 08:10:23 +01:00
Ben Jackson
fc7725fefb Only expand one inexpensive scope; codeLLDB lies about how expensive things are 2020-07-16 08:10:04 +01:00
Ben Jackson
0938d72a8c Re-use a window if we can, as it's more efficient; don't wipe out the generated code buffers in case the code window gets used for temporary buffer switch 2020-07-16 08:09:53 +01:00
Ben Jackson
8d2ea44cb9 Make Restart and Stop work properly (and together) 2020-07-16 08:09:13 +01:00
Ben Jackson
97a5d737ee Ignore venv and test basedir 2020-07-16 08:04:03 +01:00
Ben Jackson
b3c86bc757 Use the original java test code 2020-07-16 08:04:03 +01:00
mergify[bot]
1ae5c6fdcc
Merge pull request #201 from lilwayne1556/master 1720
No longer throws a KeyError when checking for non expensive scope
2020-07-14 19:40:10 +00:00
Wayne Bowie
81fffbe80e Merge branch 'master' of https://github.com/lilwayne1556/vimspector 2020-07-14 14:05:40 -05:00
Wayne Bowie
f81cc126c3 Format fix 2020-07-14 14:04:31 -05:00
Wayne Bowie
4d88dd6eff
Merge branch 'master' into master 2020-07-14 14:01:08 -05:00
Wayne Bowie
f9f0d5a83e No longer throws a KeyError when checking for non expensive scope 2020-07-14 12:23:09 -05:00
mergify[bot]
f383c62542
Merge pull request #200 from lilwayne1556/master 1714
Added Windows support for C# debugging
2020-07-14 15:11:28 +00:00
Wayne Bowie
99518e7eba Added Windows support for C# debugging 2020-07-14 09:22:55 -05:00
mergify[bot]
fe58b94bb0
Merge pull request #197 from puremourning/use-buffers-not-windows 1695
Allow users to close UI windows
2020-07-11 13:50:34 +00:00
Ben Jackson
0de023e3c4 Re-raise errors that aren't expectd 2020-07-11 14:42:35 +01:00
Ben Jackson
7c943c2ed7 Fix the terminal window to 80 columns 2020-07-11 14:08:45 +01:00
Ben Jackson
036c9b9605 Fix neovim not having the same classes as vim 2020-07-11 14:08:29 +01:00
Ben Jackson
193196cc03 Allow users to close the code window and not crash 2020-07-11 14:08:12 +01:00
Ben Jackson
43dd282702 Fix handling data after exit - channels and neovim 2020-07-11 14:07:28 +01:00