Commit graph

744 commits

Author SHA1 Message Date
mergify[bot]
9a9d43cb82
Merge pull request #229 from puremourning/variables-coerce-type 1833
Ability to coerce types in the vimspector config
2020-08-13 14:04:35 +00:00
Ben Jackson
f0d4716783
Merge branch 'master' into variables-coerce-type 2020-08-13 11:38:39 +01:00
Ben Jackson
ca63c08d6a Add a way to force a str in case #json is really required in a key 2020-08-05 22:24:35 +01:00
Ben Jackson
be44a22903 Allow coercing a type in vimspector config
Initially I considered using #i, #s, etc. to coerce to specific types,
but then it wasn't clear of the semantics (particularly for bool, where
JSON bool true/false, Python bool True/False).

But it turns out that we can just coerce any key from a JSON string.
Users can _probably_ type JSON strings for most things, or use variables
to run scripts to generate them, this allows essentially complete
flexibility to define the data types needed to populate the launch spec.

The purpose of this is to allow some level of automated setup by
requesting data from the user and then (subsequently) saving the
flattneed config to the vimspector config file.
2020-08-05 22:19:38 +01:00
Ben Jackson
7824bb29b2
Update bug_report.md 1809 2020-08-02 18:25:06 +01:00
Ben Jackson
750e68bdf5
Require minimal reproduction in contributing guide. 1808 2020-08-02 18:16:32 +01:00
mergify[bot]
1f270ed423
Merge pull request #215 from puremourning/variables-default-value 1807
Add ability to specify defaults for variables
2020-07-31 21:30:13 +00:00
Ben Jackson
3a160aa77a Fix: Crash when deleting a watch that never got a result 2020-07-31 22:19:10 +01:00
Ben Jackson
d86b42bf5b Allow VimspectorShowOutput with no argument 2020-07-31 22:19:10 +01:00
Ben Jackson
10e9a75fc7 Tidy UI - use some unicode symbols and organise winbar 2020-07-31 22:19:10 +01:00
Ben Jackson
6593f383cf Use any python for debugpy 2020-07-31 22:19:10 +01:00
Ben Jackson
f6158d0ffb Make installer quiet too 2020-07-31 22:19:10 +01:00
Ben Jackson
aa26d4bc1a Add ability to specify defaults for variables 2020-07-31 22:19:10 +01:00
mergify[bot]
9f57cb0042
Merge pull request #221 from roachsinai/custom_winbar 1789
Custom text of Winbar buttons.
2020-07-25 09:21:40 +00:00
mergify[bot]
b02b1835d4
Merge branch 'master' into custom_winbar 2020-07-25 09:14:33 +00:00
raochsinai
cb0eee180f Correct test function for CustomWinBar in ui.test.vim. 2020-07-25 17:03:04 +08:00
raochsinai
917b737486 Custom text of Winbar buttons. 2020-07-25 16:12:27 +08:00
mergify[bot]
effc49eed9
Merge pull request #220 from puremourning/installer-windows-junction 1782
Use a junction, as symlinks require escalated priviledges on some win…
2020-07-24 21:17:07 +00:00
Ben Jackson
1e43cd4870 Use a junction, as symlinks require escalated priviledges on some windows 2020-07-24 21:27:47 +01:00
mergify[bot]
db2288c6ed
Merge pull request #218 from puremourning/installer-upgrade 1777
Upgrade gadgets when they change
2020-07-24 16:20:03 +00:00
Ben Jackson
f9d20b9537 Upgrade gadgets when they change
This adds a --upgrade option to install_gadget.py and makes
VimspectorUpdate only update things which have changed.

To do this, we record the gadget spec in a manfiest file and compare it
with the current spec when in upgrade mode.

'Changed' in this case means that the gadget spec has changed from the
last time the installer was run. It does _not_ actually check the
presence of the gadget.
2020-07-24 17:12:07 +01:00
mergify[bot]
56418e3233
Merge pull request #216 from puremourning/installer-list 1774
Allow a statically configured list of gadgets
2020-07-23 15:45:12 +00:00
Ben Jackson
8f5b928e4b Allow a statically configured list of gadgets
Useful for storing config in source control
2020-07-23 16:37:03 +01:00
mergify[bot]
5fbc70165d
Merge pull request #214 from adelarsq/patch-2 1770
Spelling correction
2020-07-22 22:57:10 +00:00
Adelar da Silva Queiróz
8438dd40a1
Spelling correction
Just a spelling correction
2020-07-22 19:17:39 -03:00
mergify[bot]
7acf6ab45c
Merge pull request #213 from puremourning/install-bang 1768
Add bang versions of install commands to leave the output open
2020-07-22 21:29:31 +00:00
Ben Jackson
29cb5c914b Add bang versions of install commands to leave the output open 2020-07-22 22:18:19 +01:00
mergify[bot]
357e112cdf
Merge pull request #212 from puremourning/installer-windows 1763
Fix windows installer issues - use symlinks not junctions and fix dum…
2020-07-22 18:38:53 +00:00
Ben Jackson
26d7e95adc Fix windows installer issues - use symlinks not junctions and fix dumb use of PIPE with check_call 2020-07-22 19:27:42 +01:00
mergify[bot]
89ffb1798c
Merge pull request #209 from puremourning/install-commands
Simplify and improve gadget installation - add VimspectorInstall and VimspectorUpdate
2020-07-22 15:12:25 +00:00
Ben Jackson
c50c99ef34 Don't spam echo when jobs finish, revert sudo exit 2020-07-22 16:01:44 +01:00
Ben Jackson
2ea112ded9 No args for VimspectorAbortInstall 2020-07-22 15:48:16 +01:00
Ben Jackson
8d1c723b28 FixUp: Azure 2020-07-22 15:16:09 +01:00
Ben Jackson
e603520860 FixUp: Flake8 2020-07-22 15:14:59 +01:00
Ben Jackson
8a6d56d3e1 Run the upate in CI too 2020-07-22 15:05:21 +01:00
Ben Jackson
2d6cada5a9 Azure - check gadgets.py 2020-07-22 15:04:37 +01:00
Ben Jackson
d7eff46e0b Vint the syntax file too 2020-07-22 14:59:54 +01:00
Ben Jackson
625da3fcbe Tarballs still require no installation 2020-07-22 14:57:26 +01:00
Ben Jackson
000f7a9232 Prettify the output with some syntax and quiet option 2020-07-22 14:40:23 +01:00
Ben Jackson
4144631d03 Add :VimspectorUpdate 2020-07-22 12:50:44 +01:00
Ben Jackson
8275d2fafb README updates 2020-07-22 12:40:32 +01:00
Ben Jackson
98bef3db03 Fix - don't switch windows/buffers to create a new hidden buffer 2020-07-22 10:54:06 +01:00
Ben Jackson
375ff4aa27 Suggest installing gadget if possible 2020-07-22 10:52:48 +01:00
Ben Jackson
cd5ca37ce1 Neovim support 2020-07-22 10:52:48 +01:00
Ben Jackson
05bbafd60c Close the intaller output when complete 2020-07-22 10:52:48 +01:00
Ben Jackson
ca4ab52f8d Fix regression: Don't render winbar if the window isn't valid 2020-07-22 10:52:48 +01:00
Ben Jackson
0140a607b1 Raise autocommand when installer completes. use this in testing 2020-07-22 10:52:48 +01:00
Ben Jackson
23e5f6bbf4 Switch to running the actual install_gadget.py
This re-uses the OutputView code to run the installer script. Refactor
to remove connection from the base OutputView (and other places, it
wasn't used - only used after ConnectionUp).

This also consolidates the stdout and stderr buffers for running jobs.
The distinction was always arbitrary and probably an error, based on the
fact that they were separate in the APIs not based on usability.
2020-07-22 10:52:48 +01:00
Ben Jackson
025d193493 Add VimspectorInstall command with sort-of completion 2020-07-22 10:48:12 +01:00
Ben Jackson
f945dbcfdd Move gadget config file writing too 2020-07-22 10:48:12 +01:00