Jonathan Hähne
0b2d633e1e
Support "catch" scopes
2021-04-07 15:42:33 +02:00
Jonathan Hähne
0e4f4c1e04
Improve testing infrastructure
...
It should now be a bit easier to set up a test and see how it failed.
2021-04-07 15:10:18 +02:00
Jonathan Hähne
b59db79a05
Refactor makeScopeInternal
2021-04-07 09:21:01 +02:00
Jonathan Hähne
45c7f9671c
Merge some cases of resolveTypeOfNodeInternal
2021-04-06 18:38:17 +02:00
Alexandros Naskos
ea1ad532a2
More lastToken improvements
2021-04-06 17:16:50 +03:00
Alexandros Naskos
f6bc380b95
Fixed lastToken for fn_proto_multi nodes
2021-04-05 20:01:03 +03:00
Alexandros Naskos
6d13591d02
Merge branch 'master' of github.com:zigtools/zls
2021-04-05 19:45:12 +03:00
Alexandros Naskos
4b0d86f0bc
Fixed lastToken when called on function prototypes with no return type
2021-04-05 19:44:45 +03:00
Alexandros Naskos
003a7bcb96
Merge pull request #301 from bnjmnt4n/enum/insertText
...
Add `insertText` field for enum completions
2021-04-05 07:35:03 -07:00
Benjamin Tan
36ea1975bd
Standardize insertText
to be above insertTextFormat
2021-04-05 22:27:56 +08:00
Benjamin Tan
33f03d36a5
completion: Add insertText
field for enum completions
...
Another bug with the older version of lsp-mode on Emacs prevents the
label from being inserted when there is an empty `insertText`. This
commit adds an `insertText` property to enum completions for consistency
with the rest of the completion items.
2021-04-05 22:27:56 +08:00
Alexandros Naskos
9ccee0f82f
Updated configuration instructions to include zls config
2021-04-05 17:04:52 +03:00
Alexandros Naskos
49a1528e50
Updated configuration instructions in the README
2021-04-05 17:02:30 +03:00
Alexandros Naskos
6a5664e018
Added build artifact uploads to the github actions CI and removed duplicate READMEs ( #300 )
2021-04-05 16:58:52 +03:00
Alexandros Naskos
902c91e98f
Pass the correct handle to hasSelfParam in bound type parameter evaluation code
2021-04-05 14:52:41 +03:00
Tau
b03fb5ffe3
Fix stack overflow and clean up a bit of resolveTypeOfNode ( #297 )
2021-04-05 14:46:05 +03:00
Alexandros Naskos
88d79a769c
Fix session tests
2021-04-05 12:05:11 +03:00
Alexandros Naskos
f4e777ed7b
Fix session tests
2021-04-05 12:03:08 +03:00
Alexandros Naskos
d397f1119e
Merge branch 'master' of github.com:zigtools/zls
2021-04-05 11:59:05 +03:00
Alexandros Naskos
2770321a61
Use a null filterText instead of an empty string by default
2021-04-05 11:58:41 +03:00
Tau
fc51dac30e
Fix stack overflow in resolveUse and int overflow in lookupSymbolGlobal
2021-04-05 01:35:33 +03:00
Alexandros Naskos
4bee4e662b
Made lookupGlobalSymbol start the search from the innermost scope that contains the source index
2021-04-04 15:28:57 +03:00
Alexandros Naskos
04372999aa
Fixed underflow in edgecase in getDocCommentTokenIndex
2021-04-04 02:12:57 +03:00
Tau
406214fb43
Fix stack overflow on missing return value & improve getDocCommentTokenIndex correctness ( #290 )
...
* Improve getDocCommentTokenIndex correctness
* Fix stack overflow on missing return value
2021-04-04 02:03:25 +03:00
Alexandros Naskos
42aefd2e67
Merge pull request #284 from zigtools/signature_help
...
Added signature help request handling.
2021-04-03 09:09:50 -07:00
Alexandros Naskos
ccf15a304d
Fix session tests
2021-04-03 19:05:55 +03:00
Alexandros Naskos
cc3c146749
Correctly handle skipping self parameters in signature help requests
...
as well as completion requests.
2021-04-03 18:54:26 +03:00
Tau
28f2431b2e
Fix crash on Windows ( #286 )
...
* Fix crash on Windows
2021-04-03 12:14:52 +03:00
Alexandros Naskos
8d95218575
Resolve aliases when looking for the function prototype to generate
...
signature information.
Fixed doc comments in function signature information.
2021-04-03 02:53:41 +03:00
Alexandros Naskos
7f432d8715
Implemented the signature help request.
...
Refreshes builtin data, added 0.7.1 builtins
2021-04-02 20:49:01 +03:00
Strømberg
4d052de925
Updated instructions to use the new configuration. ( #283 )
2021-04-02 18:49:50 +03:00
Alexandros Naskos
9cc8085699
Started signature help implementation
2021-04-01 14:20:37 +03:00
Alexandros Naskos
f45a934f50
Fixed for latest zig master
2021-04-01 14:19:02 +03:00
Tau
df22d2490b
Update zinput, known-folders and enable global configuration ( #277 )
2021-03-31 17:54:27 +03:00
Alexandros Naskos
5e8e14fc08
Correctly pass zig_exe_path to document_store initialization
2021-03-31 16:26:55 +03:00
Alexandros Naskos
cfae9b4d13
If the local configuration directory cannot be opened, zls config will now
...
fallback to opening the executable directory instead.
Added better error handling in zls config.
2021-03-31 14:46:56 +03:00
Alexandros Naskos
8cf6029f1a
Before documentPositionContext returns .empty, check if an identifier
...
immediately follows the cursor and return .var_access if it does
instead.
This allows hover and go to definition to work when the cursor is
immediately before an identifier.
2021-03-31 02:25:49 +03:00
Alexandros Naskos
3c609ff47d
Merge pull request #274 from InterplanetaryEngineer/master
...
Refactor config wizard
2021-03-30 15:08:28 -07:00
Jonathan Hähne
443d5c77a7
Remove config target from build
...
The configuration is per-installation and has nothing to do with the
build.
2021-03-30 23:52:25 +02:00
Jonathan Hähne
2fc9506fdc
Refactor config wizard
...
Deduplicated zig finder and added `zls config` subcommand
2021-03-30 23:52:25 +02:00
Alexandros Naskos
ba668094ad
Yet more import resolution fixes
2021-03-30 21:44:37 +03:00
Alexandros Naskos
6edd686668
Yet more import resolution fixes
2021-03-30 21:41:04 +03:00
Alexandros Naskos
40edfadc26
Fixed memory leak caused by DocumentStore.resolveImports
2021-03-30 21:18:46 +03:00
Alexandros Naskos
2415e7ca6d
Removed all zig.ast.Tree methods that call lastToken with our own versions
2021-03-30 20:59:58 +03:00
Alexandros Naskos
5a88f26980
Fixed dereference resolution of Type.data.pointer values
2021-03-30 16:45:49 +03:00
Alexandros Naskos
f382a1b22d
Better import handling
2021-03-30 15:41:59 +03:00
Alexandros Naskos
afc6d1fd1f
Merge pull request #271 from InterplanetaryEngineer/master
...
Fix memory leaks
2021-03-30 03:44:41 -07:00
Jonathan Hähne
11a5d99c93
No stack frame capture for non-debug modes
2021-03-30 12:38:07 +02:00
Jonathan Hähne
b7cbb10610
Fix memory leaks
...
Closes #262 .
2021-03-30 12:33:31 +02:00
Alexandros Naskos
2bf5a7cfc9
Merge pull request #270 from InterplanetaryEngineer/master
...
Fix some crashes & find all @imports
2021-03-30 02:29:55 -07:00