Commit Graph

966 Commits

Author SHA1 Message Date
Lee Cannon
154a2a8704 Add a per build.zig configuration file. 2021-06-18 13:22:37 +01:00
Lee Cannon
c2cbc05135 Fix index of of range 2021-06-18 12:58:15 +01:00
Alexandros Naskos
a02c1e7996
Build runner: Only output generated package path if it is available 2021-06-16 14:47:54 +03:00
Alexandros Naskos
fdb5e8f9fb
Merge pull request #342 from leecannon/patch-2
More changes to std.build :)
2021-06-16 01:17:04 +03:00
Lee Cannon
1178ebd2e2
More changes to std.build :) 2021-06-15 21:15:55 +01:00
Alexandros Naskos
66d629f3f2
Merge pull request #341 from leecannon/patch-1
Update to new std.build changes
2021-06-13 11:53:55 +03:00
Lee Cannon
a077cf901d
Update build_runner.zig
I'm not 100% sure if the `GeneratedFile`'s path will have been resolved when this code runs or if this will hit the panic inside `getPath()` as I havent had a chance to actually mess about with the new functionality.
2021-06-12 23:06:48 +01:00
Lee Cannon
0eee9dcd9f
Update to new std.build changes
A few functions now take `std.build.FileSource`
2021-06-12 22:52:51 +01:00
Alexandros Naskos
39d8718864
Merge pull request #339 from bnjmnt4n/nix
[WIP] Fix Nix build
2021-06-06 01:21:30 +03:00
Benjamin Tan
70ce776d00
Add system attribute 2021-06-06 04:15:06 +08:00
Benjamin Tan
7d11e228cc
Pass pkgs into zig-overlay 2021-06-06 04:12:07 +08:00
Benjamin Tan
0128659a82
Avoid importing <nixpkgs> if possible 2021-06-06 04:05:41 +08:00
Benjamin Tan
f43214ddd0
Fix Nix build
The older version of `zig-overlay` used was unable to handle the newer
directory layout of Zig tarballs, so `zig-overlay` has been updated and
is currently using a `master` version of Zig.

Additionally, `zls.json` was removed since `zls` will now only look for
it in local or global configuration folders.

Closes #330.
2021-06-05 23:52:54 +08:00
Alexandros Naskos
b756ed4da5
Fixed HashMap usage for latest master stdlib 2021-06-04 14:06:11 +03:00
Alexandros Naskos
affbd2de6b
Merge pull request #335 from jedisct1/zls-gray
Make ZLS logo readable when GitHub is in dark mode
2021-05-24 10:52:45 +03:00
Alexandros Naskos
4855a7b85d
Merge pull request #334 from jedisct1/master-sync
Update for -master
2021-05-24 10:52:34 +03:00
Frank Denis
7cc1fb4ddf Make ZLS logo readable when GitHub is in dark mode
"Language Server" is written in black, which is barely readable
when the GitHub UI is configured in dark mode.

Switch to gray, which works with in light and dark modes.
2021-05-23 18:09:24 +02:00
Frank Denis
df9560db51 Update for -master
fn_proto.extern_export_token -> fn_proto.extern_export_inline_token

And update the data by the way.
2021-05-23 18:01:03 +02:00
Alexandros Naskos
b33cb8fc0d
Merge pull request #329 from leecannon/master
Call `resolveInstallPrefix` in build runner
2021-05-14 03:52:03 +03:00
Lee Cannon
584faec5de Call in build_runner 2021-05-13 21:29:05 +01:00
Alexandros Naskos
ec34c0b245
Merge pull request #328 from InterplanetaryEngineer/master
Update docs to reflect github.com/ziglang/zig/pull/8638
2021-05-13 17:56:16 +03:00
Alexandros Naskos
7fb7cdc36c
Fix std.testing.expectEqualStrings invocation for latest zig master build. 2021-05-13 17:53:53 +03:00
Jonathan Hähne
75803b35b1 Update docs to reflect github.com/ziglang/zig/pull/8638 2021-05-13 15:01:51 +02:00
Alexandros Naskos
759a7b7fd9
No longer show completions for declarations in aggregate types when
field accessing instances of those types.
2021-05-08 19:30:22 +03:00
Alexandros Naskos
5631b8d202
Fix semantic token generation for container fields with a byte alignment 2021-05-08 19:11:26 +03:00
Alexandros Naskos
14dc9d1b51
Don't use the build runner path as the build runner cache path if present >.> 2021-05-08 18:48:36 +03:00
Alexandros Naskos
3d62dd53a2
Merge pull request #320 from Luna1996/master
[bug-fix]hover struct field not show docs.
2021-05-07 12:27:25 +03:00
四光年
d4551030c4 [bug-fix]hover struct field not show docs. 2021-05-07 17:10:13 +08:00
Alexandros Naskos
b6e40b744d
Merge pull request #317 from Andoryuuta/patch-1
Added GitHub Actions link(s) in README
2021-05-04 15:36:02 +03:00
Andrew Gutekanst
8b1bcc45f1
Added GitHub Actions link(s) in README
Added GitHub Actions link(s) in README
2021-05-03 21:13:10 -04:00
Alexandros Naskos
937471d27b
Added --config-path option 2021-05-03 16:07:53 +03:00
Alexandros Naskos
f8b9d3bfcb
Fixed zls path in session tests 2021-05-03 15:46:24 +03:00
Alexandros Naskos
91643c04c9
Fixed integer overflow in semantic_tokens.Builder.handleComments 2021-05-03 15:36:29 +03:00
Alexandros Naskos
ab8c65eeda
Fixed highlighting of comments before the first token and after the last token of the last valid AST node 2021-05-03 15:14:11 +03:00
Alexandros Naskos
d73d7fc748
Merge pull request #316 from InterplanetaryEngineer/master
Simplify semantic_tokens, fix off-by-one error in identifierFromPosition
2021-05-03 15:09:20 +03:00
Alexandros Naskos
b66ed3bece
Fixed CI artifact generation 2021-05-03 14:23:37 +03:00
Alexandros Naskos
0e5a91d4fc
Fixed zls path in session tests 2021-05-03 14:08:59 +03:00
Jonathan Hähne
e1c8e5d407 Undo stupidity & run zig fmt 2021-05-02 20:23:26 +02:00
Jonathan Hähne
807bd6a571 Simplify semantic_tokens, fix off-by-one error in identifierFromPosition 2021-05-02 19:59:17 +02:00
Alexandros Naskos
82bb1911b1
Merge pull request #314 from rcorre/typo
Fix small typo in comment.
2021-04-23 08:17:14 -07:00
Ryan Roden-Corrent
ec34db0618
Fix small typo in comment. 2021-04-23 06:50:13 -04:00
Alexandros Naskos
23454e111c
Make semantic_tokens use @asyncCall instead of a stack again. 2021-04-19 17:17:46 +03:00
Alexandros Naskos
8f868dfec6
Merge pull request #308 from InterplanetaryEngineer/master
Fix inclusion of toplevel doc comments, remove @async recursion in writeNodeTokens, add a few regression tests
2021-04-16 01:19:50 -07:00
Jonathan Hähne
f61c9d8d4f Run zig fmt 2021-04-15 18:17:06 +02:00
Jonathan Hähne
b90c9b49ac Fix inclusion of toplevel doc comments, remove @async recursion in
writeNodeTokens, add a few regression tests
2021-04-15 11:07:43 +02:00
Alexandros Naskos
09e6d9a4c4
Merge pull request #303 from InterplanetaryEngineer/master
Improve testing infrastructure, refactor makeScopeInternal and resolveTypeOfNodeInternal, and support "catch" scopes
2021-04-08 07:59:58 -07:00
Jonathan Hähne
bb493c037a Add proper range check
Whoops
2021-04-07 17:26:50 +02:00
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