Commit graph

955 commits

Author SHA1 Message Date
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
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
cb441be7bc allowing resizing and dragging with a mouse 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
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
mergify[bot]
85ca867cc2
Merge pull request #348 from timtyrrell/patch-1 571069165
Update README typo
2021-02-16 08:59:33 +00:00
Tim Tyrrell
cb922bdc83
Update README typo 2021-02-14 11:56:27 -07:00
mergify[bot]
e99ac0d658
Merge pull request #345 from markwu/update-vscode-php-debug 555278088
Update vscode-php-debug to 1.14.9, it works for both Xdebug 2/3
2021-02-10 16:51:56 +00:00
Mark Wu
0cc4322b18 Update vscode-php-debug to 1.14.9, it works for both Xdebug 2/3 2021-02-10 20:01:18 +08:00
Ben Jackson
7f77842ab8 Make sure that tests fail properly; ensure that empty string is a valid default 543979751 2021-02-06 22:08:08 +00:00
mergify[bot]
4454dead0f
Merge pull request #344 from puremourning/multiple-vars 543920723
Fix variable substitution for multiple defaulted vars
2021-02-06 21:27:19 +00:00
Ben Jackson
30eec0d93c Fix variable substitution for multiple defaulted vars
The problem was that the python regex engine is strictly left-to-right,
so matching `[^}]|\\}` against \\}} meant that the `\\` was consumed by
the left of the `|`. The solution is to just switch them around.

Also add a way to run python tests from within vim, so we can actually
test this stuff.
2021-02-06 20:55:24 +00:00
Ben Jackson
52eff32651
Telemetry data myth busted. 475618246 2021-01-10 12:59:59 +00:00
mergify[bot]
5303de8195
Merge pull request #339 from ailrk/master 474209571
fixed some typos in the readme
2021-01-09 15:19:46 +00:00
Jimmy
75e8450cf3 fixed some typos in the readme 2021-01-09 07:47:33 -08:00
Ben Jackson
35f7e08fbb Bit of readme restructuring and improve docs on breakpionts API 474068449 2021-01-09 13:14:14 +00:00
Ben Jackson
d38da376c2 There are <plug> mappings 474036593 2021-01-09 12:46:13 +00:00
Ben Jackson
1f20115960 Update docs bundle to stfu security warnings 474004305 2021-01-09 12:15:55 +00:00
Ben Jackson
442a18f8f2
Merge pull request #338 from puremourning/new-issue 473991023
add some links to the new issue page
2021-01-09 12:04:02 +00:00
Ben Jackson
e010d3217c add some links to the new issue page 2021-01-09 12:03:18 +00:00
mergify[bot]
1556e63ef0
Merge pull request #317 from yatli/master 473975840
multiple languages per adapter
2021-01-09 11:50:10 +00:00
Ben Jackson
205eb7cdb3
Merge branch 'master' into master 2021-01-09 10:33:38 +00:00
mergify[bot]
44a0f819e2
Merge pull request #336 from puremourning/localhost 472182900
Use 127.0.0.1 rather than localhost to avoid issues with ipv6, and lo…
2021-01-08 16:08:12 +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
mergify[bot]
b180b14ed4
Merge pull request #334 from puremourning/fix-node-thread 471624993
Fix node thread
2021-01-08 11:49:20 +00:00
Ben Jackson
d52eb3a6e9 Fix thread state and PC for starting node app
The problem is the sequence of events sent by the debug adapter.
Vimspector requests threads:

* When the initialisation exchange completes (requests all threads)
* Whenever a thread event is received
* whenever a stopped event is received.

If any of those happens while any other request is in progress, we cache
the request and handle it later. The latest request is processed when
the response to the outstanding request is received.

The problem is if the event is a stopped event, it is the handling of
the threads request that actually sets the thread state internally to
stopped. In a sequence where the first event is a stopped event, we end
up discarding the stopped event. like:

1. Stopped event (thread 1 = stopped) (request threads)
2. Initialisation complete (cache request)
3. threads response received (discard response and process cached request)
4. response received (but forgotten about the stopped event).

The solution is to always process the thread response, even if we send
the cached request. To avoid flicker, we don't draw the screen, or
expand any threads/stacks in the case where we're sending a cached
request.
2021-01-08 11:35:01 +00:00
Ben Jackson
b72aa18dec Add a list to tcl tets 2021-01-08 11:06:33 +00:00
mergify[bot]
07ea3880ac
Merge pull request #328 from AllanGuigou/master 468321208
Allow a gadget to specify a custom extension path
2021-01-07 08:09:14 +00:00
Ben Jackson
38ed75dda7
Merge branch 'master' into master 2021-01-06 09:56:40 +00:00
Ben Jackson
0ad826704b
Merge branch 'master' into master 2021-01-06 09:54:16 +00:00
mergify[bot]
65708f55e0
Merge pull request #329 from lelutin/debug_py_1.2.1 458295961
bump debugpy gadget to version 1.2.1
2021-01-02 22:36:28 +00:00
Gabriel Filion
7bd22d2bbd bump debugpy gadget to version 1.2.1
1.2.1 is, as of this commit, the most recent version of the gadget.

The version currently used, 1.0.0b12 is not compatible with Python 3.9:
the build errors out on missing arguments for _PyEval_EvalFrameDefault.

Python 3.9 is the version of Python that will be shipped with the
upcoming debian release.

Support for 3.9 was merged in before the final 1.0.0 version. So,
upgrading the gadget will bring in python 3.9 support
2021-01-02 15:46:53 -05:00
Allan Guigou
ce8dd9113c Remove gradle wrapper
The gradle wrapper is too large of a dependency to include for every
download of vimspector. Users can use a local installation of gradle to
run the sample kotlin application if necessary.
2020-12-31 10:39:01 -05:00
Allan Guigou
ec68811c8a Add support test for kotlin 2020-12-24 15:10:56 -05:00
Allan Guigou
47c404f823 Allow a gadget to specify a custom extension path
When installing a custom gadget not officially supported by vimspector the
default extension path is 'extension', this works for vscode extensions but
does not support some debug adapters. This commit gives the ability to change
that default extension path by specifying 'extension_path' within the gadget
installer file.

Installing 'cust_adapter' would use the extension path 'adapter' rather
than 'extension' (ie ${gadgetDir}/cust_adapter/${version}/root/adapter)

{
  "cust_adapter": {
    "download": { ... },
    "all": {
      "extension_path": "adapter",
      "adapters": { ... }
    }
  }
}
2020-12-24 14:55:40 -05:00