Ben Jackson
f40ac5db23
Delay launching the python interpreter until needed
2021-02-25 21:24:40 +00:00
Ben Jackson
d8eb6a0463
Only prompt in 'interactive' contexts to avoid annoying questions
2021-02-24 18:00:08 +00:00
Ben Jackson
6fac220ee5
Disable mappings in the popup to ensure navigaion works
2021-02-23 09:42:57 +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
Ben Jackson
476300f815
Fix errors resetting in neovim
2021-02-22 13:39:58 +00:00
Ben Jackson
0e0cc6d4ae
Fix restart when using CodeLLDB
...
Fix restarts always getting stuck "Initializing" when using CodeLLDB.
When using the restart command we re-use the configuration dict as-is,
so always re-use the same TCP port for the lldb socket. Originally it
was thought this was due to a race condition, having the port still
open, but it's not.
When doing a restart, or reset, we shut down the server after we get the
response to the disconnect message. CodeLLDB then also sends a
'terminated' message.
Previously we were forcefully closing the socket before killing the app,
after we get the 'disconnect' response. This meant that the OS buffer
for the socket to localhost:<the port> still contained the terminated
message at the point that we force-closed the socket and killed the
server.
The result was that the firt messages read from the "new" socket to
locahost:<port> were the last messagse written by the previous process,
trikcing vimspector into thinking that the server terminated the process
(before responding to the initialize request).
ANyway, the solution is to ensure that we read all messages from the
previous instance before considering it done. This is done by killing
the server if there is one *first* and then trying to read any messages
from the socket until it closes (reads EOF).
The tricky part is for when we didn't start the server (i.e. in a
multi-session setup). Here we simply _have_ to close the socket because
we can't know when we've received all of the messages, and we shouldn't
expect to receive any 'terminated' events after 'disconnect'.
2021-02-22 12:09:01 +00:00
Ben Jackson
cc84e15932
Tidy up, refactor and fix some bugs
2021-02-21 17:01:41 +00:00
dsych
44711899cb
moving stuff around
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
639e89f5db
fixing linting
2021-02-21 17:01:41 +00:00
dsych
0ff9dc5f9e
making sure that select marks were set before attempting to extract text
2021-02-21 17:01:41 +00:00
dsych
4466fce20b
fixing styling inside vim files
2021-02-21 17:01:41 +00:00
dsych
13102dc711
reverting back the highlight group
2021-02-21 17:01:41 +00:00
dsych
91bebc1826
adding a close button for keyboard triggered popup, since drag and resize are also enabled. removing wrap from border.
2021-02-21 17:01:41 +00:00
Ben Jackson
3239963893
Set the correct highlights in both popups in neovim
2021-02-21 17:01:41 +00:00
Ben Jackson
31e44548d3
Tidy up MouseFilter
2021-02-21 17:01:41 +00:00
Ben Jackson
894ca522d3
Use the popup callback rather than manually trying to do it
2021-02-21 17:01:41 +00:00
Ben Jackson
322b7e0a38
Enable mouse interraction for the both popups in vim
2021-02-21 17:01:41 +00:00
Ben Jackson
bc1146df3b
Use normal highlighting for the popup as it's probably more readable (debatable?)
2021-02-21 17:01:41 +00:00
Ben Jackson
d2ed8a828c
Use popup_filter_menu for the keyboard-popup rather than 100% our own
2021-02-21 17:01:41 +00:00
Ben Jackson
fccafd6739
FixUp: border characters - indicate that the corner can be dragged
2021-02-21 17:01:41 +00:00
Ben Jackson
64f2c8eb01
Use a fancy single line border in vim popup when we can
2021-02-21 17:01:41 +00:00
Ben Jackson
cb174c176d
Disable wrapping long lines in neovim popup too
2021-02-21 17:01:41 +00:00
Ben Jackson
2d082cc923
Use a more generous maximum size for the popup (TODO: option for this ?)
2021-02-21 17:01:41 +00:00
dsych
0d703779dc
evaluating select range
2021-02-21 17:01:41 +00:00
Ben Jackson
cfae062da1
Disable cursorLine for the hover-only popup
2021-02-21 17:01:41 +00:00
Ben Jackson
0895c5e829
Add 1 cell of padding to the x direction which makes the popup more readable
2021-02-21 17:01:41 +00:00
Ben Jackson
052d63dee5
Fix mouse interraction with the popup - don't handle events outside the window
2021-02-21 17:01:41 +00:00
dsych
93568ba05d
removing test code
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
cb441be7bc
allowing resizing and dragging with a mouse
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
b95ae00054
enabling a close button for popup
2021-02-21 17:01:41 +00:00
dsych
4617250f41
adding border to popup
2021-02-21 17:01:41 +00:00
dsych
0ced5eb1d4
splitting mouse and cursor filtering to avoid trapping keyboard for hover
2021-02-21 17:01:41 +00:00
dsych
747ad9b804
removing literal dictionary syntax, as it is not included in nvim-4.4
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
dsych
7432be9532
implemented dynamic float windows for nvim
2021-02-21 17:00:47 +00:00
dsych
07858cc250
adding on the fly eval of inside a floating window
2021-02-21 17:00:47 +00:00
dsych
4c0ba92ac6
working on variables view
2021-02-21 17:00:47 +00:00
dsych
7c4eef9096
finally got float window working with variable evaluation
2021-02-21 17:00:47 +00:00
Ben Jackson
4206d0e57c
Use 127.0.0.1 rather than localhost to avoid issues with ipv6, and long timeout connecting the socket
2021-01-08 15:54:49 +00:00
Ben Jackson
8e2d352eb8
Fix local adapter specs
...
Somehow we lost the ability to define adapters in the local
.vimspector.json, I think when GetConfigurations was added.
Put that feature back.
2020-11-30 10:19:02 +00:00
Ben Jackson
c769e8a479
Fix up the tests to work in linux container too
2020-11-22 14:13:14 +00:00
Ben Jackson
53b1d12447
Allow setting the current thread, use a sign to highlight the line with the current thread
2020-11-22 14:13:14 +00:00
Ben Jackson
f0785c11f2
Allow pausing individual threads (in theory)
2020-11-22 14:13:14 +00:00
Emmanuel Thompson
d5b9411256
Add a GetConfigurations function
2020-11-06 12:05:14 -05:00