Commit graph

226 commits

Author SHA1 Message Date
Ben Jackson
8664c0ad78 Don't create a new buffer when opening the vimspector tab 2020-03-26 21:13:04 +00:00
Ben Jackson
d42fd51f35 Support c-style comments in JSON
Debate rages about whether JSON should have comments. The specification
says it shouldn't but the author of JSON suggested that if you want to
use JSON for configuration, then pipe it through jsmin before parsing.

So that's what we do, using a tiny JSON minifier from
https://github.com/getify/JSON.minify/tree/python

Closes #135
2020-03-21 15:16:07 +00:00
Ben Jackson
9393c1d80e Don't run under sudo 2020-03-21 14:04:48 +00:00
Ben Jackson
de04598bc6 Clear exception breakpoints when calling ClearBreakpoints 2020-03-09 21:31:14 +00:00
Ben Jackson
1b7402915c Catch adapter being None and print user-friendly message: 2020-03-08 18:18:29 +00:00
Ben Jackson
cd26e81fd9 When requesting source from debugger, use the path, if supplied 2020-02-23 16:12:35 +00:00
Ben Jackson
27e11d5265
Merge branch 'master' into win-setup 2020-02-16 23:06:49 +00:00
Ben Jackson
2c1060c49e Support *\$var in lists to splat (expand in place) shell-split user input. Useful for commandline-> args list 2020-02-16 22:59:15 +00:00
Ben Jackson
c4bedcee89 Set the code window to the current buffer 2020-02-16 22:49:15 +00:00
Ben Jackson
926029e343 Set some window options to their deafults 2020-02-16 22:30:55 +00:00
Ben Jackson
4a7e3b9229 Fix opening paths on Windows 2020-02-16 20:15:41 +00:00
Ben Jackson
37fefafe35 Fix tracebacks when the debug adapter dies very quickly 2020-02-16 20:15:41 +00:00
Ben Jackson
68a45b5771 Fix workspace root when no vimspector conf - use dir of current file 2020-02-16 20:01:00 +00:00
Ben Jackson
267f202dad Fix LGTM error: python default arguments are mutable\! 2020-02-16 19:45:58 +00:00
Ben Jackson
e37ef18c28 Move installation routines into proper library 2020-02-16 17:31:00 +00:00
Ben Jackson
be32a0a1a8 Add --enable-custom to load custom gadget meta 2020-02-16 17:23:49 +00:00
Ben Jackson
583fb95ea0 Read configurations from a per-filetype directory or a default location as well as local config file 2020-02-16 17:22:53 +00:00
Ben Jackson
8052484cc7 Use YCM python style 2020-02-08 21:15:27 +00:00
Ben Jackson
a56bee7b0a Switch to debugpy over vscode-python
This is just better in every way, and the vscode-python typescript
adapter is being phased out.
2020-02-08 21:15:27 +00:00
Ben Jackson
19cc58f09e Set syntax in stack trace too 2020-02-04 13:04:09 +00:00
Ben Jackson
74eb94fe53 Allow PID to be set by variables, e.g. shell 2020-01-31 16:07:26 +00:00
Ben Jackson
8d4ec3f53a Supress errors in more appropriate places 2020-01-31 16:07:26 +00:00
Ben Jackson
309c292413 Store variables supplied _before_ parsing adapter/config varibales 2020-01-31 16:07:26 +00:00
Ben Jackson
b8d2b548d8 Add customisation of signs 2020-01-26 23:02:26 +00:00
Ben Jackson
9b5960f81e Fix go language server returning 0 column causing errors in neovim 2020-01-22 21:35:06 +00:00
Ben Jackson
355f0f0e0c Implement command line completion for watch/eval 2020-01-17 00:02:24 +00:00
Ben Jackson
2252a2bf02 Delete the watches and vars buffers when resetting 2020-01-15 23:17:15 +00:00
Ben Jackson
3b97500289 Make sure the buffer is modifiable when updating the console 2020-01-15 23:17:15 +00:00
Ben Jackson
7456c26c2a Add some :commands for basic usages 2020-01-15 23:17:15 +00:00
Ben Jackson
29c26996fb Add neovim job/terminal APIs 2020-01-15 23:17:15 +00:00
Ben Jackson
18627b9244 Add a way to have multiple vim API layers 2020-01-15 23:17:15 +00:00
Ben Jackson
ee1bb009ea Wrap the terminal API in vimscript layer 2020-01-15 23:17:15 +00:00
Ben Jackson
d1e3b648d3 Use eval for lists of buffers too 2020-01-15 23:17:15 +00:00
Ben Jackson
dcdab63516 Remove use of bindeval() as it is not suported in neovim 2020-01-15 23:17:15 +00:00
tinmarino
9be0f43a5f Feature: Silent Errors if not connected 2020-01-15 10:59:17 -03:00
Ben Jackson
9f0becab7b Flake8 fixes 2020-01-10 12:19:58 +00:00
Ben Jackson
8a57104a0e Expand references in non-shell variables too 2020-01-10 09:28:02 +00:00
Ben Jackson
bbaab0ebc1 Fix true/false in JSON when setting up adapter 2020-01-10 09:28:02 +00:00
Ben Jackson
55bb50d296 line sometiems not supplied; source is optional 2020-01-10 09:28:02 +00:00
Ben Jackson
8bb7017a49 Handle failed breakpoint messages 2020-01-10 09:28:02 +00:00
Ben Jackson
b95fe20845 Frame is not reqiured for evaluation 2020-01-10 09:26:13 +00:00
Ben Jackson
8d7de7172a Allow arbitrary ssh args 2020-01-10 09:26:13 +00:00
tinmarino
1e153910fa Fix: Remove balloon '...' in windows != code_window
Problem: In non-code window, user see a '...' balloon even if python
knows it does not need to work
Solution: use pyeval in vim so that python's knowledge is getting back
from the stack as return value
2020-01-09 20:37:03 -03:00
Ben Jackson
6944cb7c1f Fix tracebnack when no source in stack frame 2019-12-22 21:33:16 +00:00
Ben Jackson
ed6beff03b Enable syntax highlighting for watches and locals 2019-12-15 10:48:21 +00:00
Ben Jackson
7d046574cb Add tests for toggling breakpoint and inserting line 2019-12-14 18:03:34 +00:00
Ben Jackson
16c3b65cae If signs are moved by user actions, use the current lnum of the sign for the breakpoint. 2019-12-14 15:51:04 +00:00
Ben Jackson
25b22d2a9e Allow gadget config to set up default values for launch configuration 2019-11-05 19:02:17 +00:00
Ben Jackson
0057094179 Allow gadget config in .gadgets.d to override the installed config 2019-11-05 19:02:17 +00:00
Ben Jackson
5586d9e694 Allow setting exception breakpoints in debug config 2019-11-05 18:35:36 +00:00