Commit graph

1,017 commits

Author SHA1 Message Date
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
mergify[bot]
fd03e074f3
Merge pull request #354 from YgorSouza/fix-readme-typos 593724191
Fix typos in README
2021-02-23 19:57:14 +00:00
Ygor Oliveira
fd0c6e7675 Fix typos in README 2021-02-23 19:51:52 +01:00
Ben Jackson
6fac220ee5 Disable mappings in the popup to ensure navigaion works 592114842 2021-02-23 09:42:57 +00:00
Ben Jackson
0810d7154c Fix syntax occasionally not working in popup, and custom vimrc crashing in neovim 592013661 2021-02-23 09:03:45 +00:00
Ben Jackson
476300f815 Fix errors resetting in neovim 589330315 2021-02-22 13:39:58 +00:00
mergify[bot]
95b900a0a7
Merge pull request #352 from puremourning/fix-restart-socket
Fix restart when using CodeLLDB
2021-02-22 12:29:37 +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
mergify[bot]
c33fddd150
Merge pull request #351 from puremourning/doautocmd-frame-set 587276919
Add User autocommands when jumping to frame and resetting
2021-02-21 21:47:03 +00:00
Ben Jackson
448ee33a6a prevent annoying 'no matching autocmds' message 2021-02-21 21:24:02 +00:00
Ben Jackson
ae289a88c7 Update readme with example 2021-02-21 21:16:54 +00:00
Ben Jackson
3c7311e33a Test that the commands are fired when stepping through and continuing 2021-02-21 20:49:56 +00:00
Ben Jackson
d561c4aea5 Add demo of new commands for local mappings 2021-02-21 19:17:09 +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
__
0bb8416e11 Add test 2021-02-21 19:17:09 +00:00
__
d81bdf30ef Emit User VimspectorFrameWasSet event 2021-02-21 19:17:09 +00:00
mergify[bot]
e70b8f37a3
Merge pull request #350 from puremourning/nvim-float-window 586989431
Replace vim balloons with popups
2021-02-21 18:44:21 +00:00
Ben Jackson
5754e96067 FixUp: Change of mapleader 2021-02-21 18:24:26 +00:00
Ben Jackson
4958de92d3 Fix flake8 error 2021-02-21 18:05:59 +00:00
Ben Jackson
6b546cd621 Update TOC 2021-02-21 17:01:41 +00:00
Ben Jackson
323e22b8a9 Update readme 2021-02-21 17:01:41 +00:00
Ben Jackson
5a1eb9250a Fix test now that we're using a mapping 2021-02-21 17:01:41 +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
d6c68d691c streamlining the docs 2021-02-21 17:01:41 +00:00
dsych
47680565c4 adding docs 2021-02-21 17:01:41 +00:00
dsych
8c39a861bd hopefully fixing tests on mac 2021-02-21 17:01:41 +00:00
dsych
639e89f5db fixing linting 2021-02-21 17:01:41 +00:00
dsych
5a23ec5beb adding tests for select range, invalid eval and expand/collapse 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
0ff9dc5f9e making sure that select marks were set before attempting to extract text 2021-02-21 17:01:41 +00:00
dsych
0c79384529 there is no need to execute feedkeys inside a popup context, since keys are added into the global input buffer 2021-02-21 17:01:41 +00:00
dsych
789377eab4 adding the first test! 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
e5e13ffcdd Fix typo: Baloon -> Balloon 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