Commit Graph

1348 Commits

Author SHA1 Message Date
Gregory Anders
c4f3cd0efa Only return highlights for symbols in current document
This seems to only occur when highlighting "field access" symbols, e.g.
"bar" in a statement such as `foo.bar`. This is because the
`symbolReferencesInternal` function finds the reference to the field in
the container even when the container is not in the current document.
2022-08-10 16:03:00 -06:00
Auguste Rame
8847ed54f9
Merge pull request #576 from Techatrix/fix-memory-leak
Fix memory leaks
2022-08-09 00:27:34 +02:00
Techatrix
1ab262c625 Fix memory leaks 2022-08-06 01:30:43 +02:00
Auguste Rame
ea24928002
Merge pull request #574 from Techatrix/tokenize-undefined
Semantic token for keyword 'undefined'
2022-08-05 21:48:19 +02:00
Auguste Rame
a73c77db6d
Merge pull request #572 from Techatrix/patch-stduri
fix 'Cannot resolve std library import'
2022-08-05 21:48:00 +02:00
Auguste Rame
e554c577ea
Merge pull request #573 from Techatrix/patch-1
Correctly handle sentinel slices
2022-08-05 21:46:14 +02:00
Techatrix
a30d310d7f better semantic token for keyword undefined 2022-08-05 14:20:16 +02:00
Techatrix
cee46461e0
handle ptr_type_sentinel 2022-08-05 11:22:55 +00:00
Techatrix
c9d41650da fix 'Cannot resolve std library import' 2022-08-05 13:01:39 +02:00
Auguste Rame
6ed5ba833b
Merge pull request #570 from Techatrix/session-tests
Revive Session tests
2022-08-04 23:27:18 +02:00
Techatrix
5d4c68e9c5 Add missing tests 2022-08-03 23:29:03 +02:00
Techatrix
e562d4cf4c move Context into Context.zig 2022-08-03 23:11:55 +02:00
Techatrix
ae5da361bf
Merge branch 'zigtools:master' into session-tests 2022-08-03 21:11:43 +00:00
Lee Cannon
d83e37d99a
provide build_runner command on failure (#569) 2022-08-03 13:43:34 -04:00
Techatrix
f2315e0c7a
Format zls.json in setup wizard (#568) 2022-08-02 14:28:27 -04:00
Techatrix
fca78a98b0 move ArenaAllocator into Server 2022-08-01 00:44:07 +02:00
Techatrix
805148125c revive session tests 2022-07-31 23:39:33 +02:00
Techatrix
75570aef3c add writer interface to Server & move main to main.zig 2022-07-31 23:38:27 +02:00
Lee Cannon
cf8baa3586
fix format string (#565) 2022-07-27 15:46:03 -04:00
haze
528fd26a13
update format specifiers for optional strings (#564) 2022-07-27 09:41:45 -04:00
Auguste Rame
913d6aee9d
Fix tests for real? (#562)
* Actually a horrible patch
2022-07-25 16:09:54 -04:00
Lee Cannon
98e5451d98
support 0.9 and master (#561) 2022-07-24 17:08:14 -04:00
Auguste Rame
644ded72d2
Merge pull request #560 from Techatrix/master
Update README.md and setup
2022-07-24 17:07:16 -04:00
Techatrix
224332d3a8 update README.md and setup
- update notes for VS Code according to new changes in zls-vscode
- add instructions for setting up Helix editor
2022-07-24 17:01:05 +02:00
alvv-z
e8bbb20783
Update setup wizard for ST4 (#461)
* Set include_at_in_builtins to false if Sublime Text version > 4000
2022-07-24 07:58:26 -04:00
Techatrix
0ecdeeecb1
Implement textDocument/inlayHint (#559)
* Implement textDocument/inlayHint

* Add corresponding Config options
2022-07-24 07:38:13 -04:00
Auguste Rame
39e4a561b2
Merge pull request #484 from gpanders/documentHighlight
Implement textDocument/documentHighlight
2022-07-23 05:30:57 -04:00
Auguste Rame
6df4405fb1
Merge pull request #558 from xiyaowong/patch-1
docs(neovim/vim): Update instruction for Coc
2022-07-23 05:27:46 -04:00
Auguste Rame
0f7d173ea1
Merge pull request #557 from Techatrix/patch-1
Highlight orelse as a keyword
2022-07-23 05:26:19 -04:00
wongxy
5fae56fb40
docs(neovim/vim): Update instruction for Coc 2022-07-23 15:56:01 +08:00
Gregory Anders
b71a83b64a Limit references to current document for documentHighlight 2022-07-22 19:38:26 -06:00
Gregory Anders
94770b86c6 Implement textDocument/documentHighlight 2022-07-22 19:37:06 -06:00
Techatrix
d734245141
Highlight orelse as a keyword 2022-07-23 00:34:53 +00:00
Auguste Rame
ab62e58515
Merge pull request #549 from leroycep/add-flake-support
Add flake support
2022-07-19 15:13:01 -04:00
LeRoyce Pearson
5010de46db Make known-folders a flake input
Simpler than using `fetchFromGitHub`, we can have `nix` manage the
version instead
2022-07-19 00:08:04 -06:00
LeRoyce Pearson
5b94a7df02 Use flake-utils 2022-07-18 21:42:20 -06:00
LeRoyce Pearson
542f49087e Add known-folders as a flake input
This allows the flake to work without passing in `?submodules=1`, which
makes it easy to include in other flakes.

This commit also makes it possible to override the path to the
`known-folders` package like so:

```
zig build -Dknown-folders=/path/to/known-folders.zig
```

This allows `flake.nix` to pass in the nix store path.
2022-07-18 14:35:00 -06:00
LeRoyce Pearson
ac8600cd8c Add flake support
Have to use it with `nix run '.?submodules=1'`, unfortunately.

Might be able to remove that requirement by using the following, but I
don't know how it interacts with `gitignoreSource`:

```
fetchGit {
  url = ./.;
  submodules = true;
}
```
2022-07-18 11:12:17 -06:00
Auguste Rame
949e4fe525
Merge pull request #547 from zigtools/tokenRelativeLocation-fix-hopefully
Fix tokenRelativeLocation
2022-07-17 10:40:58 -04:00
Auguste Rame
5f9b9c564c
Fix tokenRelativeLocation
Closes #354

Closes #543
2022-07-17 16:29:03 +02:00
Auguste Rame
7f8c7430b1
Merge pull request #544 from Vexu/IterableDir
update to IterableDir changes in Zig std
2022-07-17 07:05:57 -04:00
Veikka Tuominen
427f7b12ef
update to IterableDir changes in Zig std 2022-07-17 13:03:30 +02:00
Veikka Tuominen
410a2dd6dd
add f80 2022-07-17 13:03:26 +02:00
Auguste Rame
63eb5fa8fc
Merge pull request #546 from zigtools/some-main-globals
Refactor out most main globals!
2022-07-17 06:22:13 -04:00
Auguste Rame
8e2e597ec3
Refactor builds! 2022-07-17 12:17:55 +02:00
Auguste Rame
1d910ed973
Start refactoring main -> Server's globals 2022-07-17 12:00:29 +02:00
Auguste Rame
ba68a4dcb5
Merge pull request #539 from zigtools/basic-improvements
Basic improvements!
2022-07-15 13:46:36 -04:00
Auguste Rame
6f19772c17
Fix config source of truth problems, refactor some more 2022-07-15 18:06:18 +02:00
Auguste Rame
4507f4a275
Add Discord link, DocumentStore now uses the config source of truth! 2022-07-15 14:51:36 +02:00
Auguste Rame
6e018d035e
Merge pull request #534 from zigtools/bug-fix-thursday
Bug Fixes!
2022-07-14 08:51:08 -04:00