Commit graph

437 commits

Author SHA1 Message Date
Ben Jackson
7723d58cf8 Allow forcing selection from the menu with <leader>F5 2021-03-12 19:50:22 +00:00
Ben Jackson
2615cff97a If there isn't enough vertical space, we get vim errors (not enough room), so don't do that 2021-03-11 21:14:30 +00:00
Ben Jackson
7d2770f3c4 Add vertical (i.e. narrow) layout
This puts the 3 utility windows at the top, horizontally split, with the
code view below.  The terminal window is drawn either vertically split
(if there's room) or horizontally split otherwise.  The output window
remains at tht bottom.

We add equivalent sizing options too, setting some defauts that roughly
work on my macbook pro.

We try to guess the best layout to use. In particular we go into
'narrow' mode if there are not enough horizonal columns to fit the
sidebar, code and at least the minimum terminal size. We also try to
move the terminal to be horizontally spit (i.e. vertically stacked) if
we can fit the max number of lines, but only the min number of columns.

This is all a little heuristic, but when testing it myself, it feels
good and tends to pick a good option by default. Users can always
customise the ui mode (g:vimspector_ui_mode and all the various specific
width options)
2021-03-10 23:44:45 +00:00
Ben Jackson
943ae6c7c9 Fix error when nothing to expand 2021-03-05 19:05:42 +00:00
Ben Jackson
804b499286 Allow setting the value via the api 2021-02-25 22:15:09 +00:00
Ben Jackson
f2d407256e Use expression completion for watch and set 2021-02-25 22:15:09 +00:00
Ben Jackson
ba83a59e88 TEst overriding the mappings 2021-02-25 22:15:09 +00:00
Ben Jackson
675a68c601 Make it work in neovim too 2021-02-25 22:15:09 +00:00
Ben Jackson
e1078375fe Also allow <leader><CR> in case modifyOtherKeys mode doesn't work 2021-02-25 22:15:09 +00:00
Ben Jackson
26452289a8 Allow overriding the variables/stack trace mappings in config 2021-02-25 22:15:09 +00:00
Ben Jackson
131cfcdd33 Don't try and set a value if not supported 2021-02-25 22:15:09 +00:00
Ben Jackson
c2082cffae Support setting from the balloon 2021-02-25 22:15:09 +00:00
Ben Jackson
9e1a1ab4b5 Report failures 2021-02-25 22:15:09 +00:00
Ben Jackson
32f9a6ec43 Use silent for winbar menus 2021-02-25 22:15:09 +00:00
Ben Jackson
d8d6eb2286 Add ability to set a variable value
This works only for things which have known variablesReference, so
particularly currently only for scopes and theoretically for members.

I think this can work for watches too. will need to check.
2021-02-25 22:15:09 +00:00
Ben Jackson
f40ac5db23 Delay launching the python interpreter until needed 2021-02-25 21:24:40 +00:00
mergify[bot]
fdfa8b265b
Merge branch 'master' into terminate-debugee 2021-02-24 18:14:04 +00:00
Ben Jackson
d8eb6a0463 Only prompt in 'interactive' contexts to avoid annoying questions 2021-02-24 18:00:08 +00:00
Ben Jackson
09efcf5e50 hide the controvertial telemetry data; it's not like anyone will ever look at it 2021-02-24 16:49:56 +00:00
Ben Jackson
5201995279 Ask the user about terminating the debuggee
CodeLLDB seems to actually support the terminateDebugee flag, so rather
than just forcefully killing things, ask the user if they want to.
2021-02-24 16:49:03 +00:00
Ben Jackson
0810d7154c Fix syntax occasionally not working in popup, and custom vimrc crashing in neovim 2021-02-23 09:03:45 +00:00
przepompownia
3c54cd268f Send VimspectorDebugEnded event 2021-02-21 19:17:09 +00:00
przepompownia
bcf4120ba4 Do not send event after leave buffer. 2021-02-21 19:17:09 +00:00
__
50dc55e0e8 Fix errors reported by flake8 2021-02-21 19:17:09 +00:00
__
716181e056 fixup! Send an event before leave buffer in window 2021-02-21 19:17:09 +00:00
__
840ee09242 Send an event before leave buffer in window 2021-02-21 19:17:09 +00:00
__
d81bdf30ef Emit User VimspectorFrameWasSet event 2021-02-21 19:17:09 +00:00
Ben Jackson
4958de92d3 Fix flake8 error 2021-02-21 18:05:59 +00:00
Ben Jackson
cc84e15932 Tidy up, refactor and fix some bugs 2021-02-21 17:01:41 +00:00
dsych
7dcb15f11c cleaning up 2021-02-21 17:01:41 +00:00
dsych
44711899cb moving stuff around 2021-02-21 17:01:41 +00:00
dsych
0313efa06f removing redundant check for array bounds 2021-02-21 17:01:41 +00:00
dsych
51d551fe52 replacing function calls with plug command 2021-02-21 17:01:41 +00:00
dsych
ae137ecdd0 removing old balloon code 2021-02-21 17:01:41 +00:00
dsych
e0b0a7f3d2 recording popup win id on the failed evaluation 2021-02-21 17:01:41 +00:00
dsych
789377eab4 adding the first test! 2021-02-21 17:01:41 +00:00
Ben Jackson
e5e13ffcdd Fix typo: Baloon -> Balloon 2021-02-21 17:01:41 +00:00
Ben Jackson
672ac78fef Fix flaky syntax highlighting toggling on/off 2021-02-21 17:01:41 +00:00
Ben Jackson
f3c39e12ab FixUp: Display in watch window, and indent in popup 2021-02-21 17:01:41 +00:00
Ben Jackson
0b4da4c82b Remove more text from the hover popup 2021-02-21 17:01:41 +00:00
Ben Jackson
64e38b57ab Fix crash; enable syntax highlighting in hover popup; use a Watch for the popup and re-use existing drawing code 2021-02-21 17:01:41 +00:00
dsych
e0b1d6ed81 fixing linting errors in python files 2021-02-21 17:01:41 +00:00
dsych
3c857cebf4 dynamically adjusting window size for nvim's floating window based on the buffer size 2021-02-21 17:01:41 +00:00
dsych
2f1c93a2ac only diplaying relevant info like name and value for nested types and value only for simple types 2021-02-21 17:01:41 +00:00
dsych
b9ed7f34b4 removing redundant name for simple types, shortening variable type to 20 char and variable value to 100 chars to avoid overflowing tooltip window if the wrapped line is longer than the max size of the tooltip 2021-02-21 17:01:41 +00:00
dsych
04a5e889f9 making sure that float window is not modifiable inside nvim 2021-02-21 17:01:41 +00:00
dsych
f60b259dbc adding type information for simple types 2021-02-21 17:01:41 +00:00
dsych
d2990d7bae making sure to open popup relative to cursor 2021-02-21 17:01:41 +00:00
dsych
819d6366ac fully implemented the hover function for vim 2021-02-21 17:01:38 +00:00
dsych
4e994968ff added popup support for vim, still need to figure out how to expand variables 2021-02-21 17:00:47 +00:00