Commit Graph

1310 Commits

Author SHA1 Message Date
Lee Cannon
8428652146
Merge pull request #774 from nullptrdevs/patch-1
Disable label references until #728 is resolved
2022-11-22 17:37:13 +00:00
nullptrdevs
4794f1e8d9
Disable label references until #728 is resolved 2022-11-22 02:08:43 -08:00
Techatrix
ea2caee3ad
correctly find last full text change in applyTextEdits (#772) 2022-11-21 13:21:24 -05:00
halting
5f3d58edeb
fix anytype snippet (#769)
i forgot that
2022-11-20 15:16:15 -05:00
halting
245e11e033
snippets for primitive types (#767) 2022-11-19 14:59:12 -05:00
Techatrix
f09ffb63db
don't format files with syntax errors (#766)
* don't format files with syntax errors

* Remove showMessage

Co-authored-by: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com>
2022-11-18 18:49:59 -05:00
Auguste Rame
40167a5b52
Simplify install procedure (#764)
* Shrink the README, simplify install procedure

* Remove old assets, goodbye cute badge :(

* Remove wiki references

* Actually describe what this is
2022-11-18 14:33:24 -05:00
Lee Cannon
88ed500439
Merge pull request #763 from thalting/master
update snippets
2022-11-17 14:52:37 +00:00
halting
d1aeec4c41
update snippets 2022-11-17 11:24:00 -03:00
Auguste Rame
87aa4c09e1
Quick comptime interpreter fix, place it behind an option (#761)
* Quick fix

* Add config option
2022-11-16 19:28:01 -05:00
Auguste Rame
355d56376f
Merge pull request #724 from zigtools/comptime-bebe-steps
Implement comptime interpreter
2022-11-16 18:13:35 -05:00
Techatrix
e68c99ccc8
shout-out to zls for helping with zls's development (#760) 2022-11-16 18:02:45 -05:00
Techatrix
28be9a4cc7
report actual zls version in initialize response (#759) 2022-11-16 17:58:37 -05:00
Techatrix
31584cff60
find references in while continue expressions (#758) 2022-11-16 17:35:51 -05:00
Techatrix
46da74d32e
don't iterate handles while potential invalidation occurs (#757) 2022-11-16 17:35:19 -05:00
Techatrix
d75fd3a880
detect comment position context (#756) 2022-11-16 17:34:36 -05:00
Techatrix
662b560861
format with Ast.render instead of zig fmt (#755) 2022-11-16 17:33:15 -05:00
Auguste Rame
68ab004bb1
Add Open Collective (#751) 2022-11-15 15:00:05 -05:00
Ingo Lohmar
e98aea61ea
do not panic on error response to workspace/configuration (#747) 2022-11-13 17:28:00 -05:00
Lee Cannon
28adef42c1
Merge pull request #748 from kama-meshi/bump-cmd-installing-binaries
Update the command of installing binaries to install v0.10.0.
2022-11-12 15:10:10 +00:00
kama-meshi
415243472b
Update the command of installing binaries to install v0.10.0. 2022-11-12 23:48:50 +09:00
Auguste Rame
c8dffc1f9b
Some comptime interpreter fixes 2022-11-10 20:51:02 -05:00
Auguste Rame
c803a5de3f
Quick cleanup 2022-11-09 23:46:23 -05:00
Auguste Rame
411e74d364
Add param type resolution & stop using stage2, still a bit broken :( 2022-11-09 23:17:21 -05:00
Nick Cernis
e58bddd769
Improve Zig version mismatch error (#744)
Improves the server message we send if the system Zig version is older
than the Zig version that ZLS was built with:

- Correct typo (“build with” → “built with”).
- Show versions so users know which one they need to update to.
- Suggest step needed to fix the error (“Update Zig…”).
2022-11-09 23:13:35 -05:00
Auguste Rame
b91a193d04
We can interpret std now because of proper tree shaking! 2022-11-08 14:42:40 -05:00
Auguste Rame
c6ab7e8a0f
Casts++, compileLog, pointers 2022-11-08 14:42:40 -05:00
Auguste Rame
e6b691e447
More builtins, use stage2 because we can 2022-11-08 14:42:33 -05:00
Auguste Rame
d2e166bb0b
Some builtins, rudimentary hacky diagnostics; need to nerf global evaluation 2022-11-08 14:37:14 -05:00
Auguste Rame
599c134593
Imports, cross-boundary resolution; can import std but dies on missing builtins / lang features 2022-11-08 14:37:13 -05:00
Auguste Rame
da00751726
Field access, function calls based on function value 2022-11-08 14:37:13 -05:00
Auguste Rame
779c3c0710
Hacky mess but it works (only if your function is the first root decl tho :P) 2022-11-08 14:37:13 -05:00
Auguste Rame
06e8756849
Add struct test 2022-11-08 14:37:13 -05:00
Auguste Rame
d2640a44ac
comptime interpreter moment 2022-11-08 14:37:01 -05:00
nullptrdevs
b08480256c
Update the main CI workflow (#742)
rename i386 to x86
update actions/checkout to v3 (v2 uses Node.js 12 which is about to be deprecated)
2022-11-05 23:52:07 -04:00
Sage Hane
6420296a82
Nix: Pass -Dcpu=baseline to zig build (#739)
* update flake.lock

* Nix: Pass `-Dcpu=baseline` to `zig build`
2022-11-03 14:44:01 -04:00
Lee Cannon
690189a5a7
add workflow to check build_runner works with a range of zig versions (#732) 2022-11-02 20:06:01 -04:00
BratishkaErik
95f21d0d23
Add builtin data for 0.9.1 and 0.10.0 (#735)
* Add builtin data for 0.9.1

* Add builtin data for 0.10.0

* Update builtin data for master
2022-11-02 16:24:51 -04:00
Alexandros Naskos
f7c3d22e73
Merge pull request #692 from tomc1998/master
Fix crash when getting signature of optional
2022-11-02 19:17:13 +02:00
Alexandros Naskos
a4ffd5d35b
Merge pull request #734 from nektro/patch-2
update minimum zig version to 0.10.0-dev.4458+b120c819d
2022-11-02 18:59:24 +02:00
Alexandros Naskos
0c3d5df583
Merge pull request #733 from leecannon/dont_always_run_ci
Only run CI workflow if a zig file changed
2022-11-02 18:35:38 +02:00
Tom Cheng
af14067911 Fix crash when getting signature of optional
e.g. typing 'foo.?.bar(' crashes zls because it doesn't recognize ? as a
possible token as part of a function expression, and tries to call
getFieldAccessType with '.bar' instead.

The actual fix is the one line in src/signature_help.zig

getFieldAccessType was reworked to be more resilient to this type of
thing - the `undefined` value of `current_type.type.data` was being used
since it hit the `.period` branch first. This caused the crash.
2022-11-02 14:55:22 +00:00
Meghan
bb727d263b
update minimum zig version
followup to 886cfeacb5
2022-11-01 22:30:16 -07:00
Lee Cannon
e430b76297
only run CI workflow if atleast one zig file changed 2022-11-01 21:46:27 +00:00
Lee Cannon
7ef224467a
Merge pull request #731 from Prince213/readme-fix
Readme fix
2022-11-01 12:08:45 +00:00
Sizhe Zhao
79b7876b81 README.md: Fix typo 2022-11-01 17:00:15 +08:00
Sizhe Zhao
180a75ee0d README.md: Remove trailing spaces 2022-11-01 16:52:23 +08:00
Sizhe Zhao
4ff9cdb069 README.md: Add missing punctuation 2022-11-01 16:49:08 +08:00
musi-musi
2ae113ddcf
fixed jrpc config treating empty strings as non null (#727) 2022-10-30 00:30:03 -04:00
Techatrix
7a7576c06d
fix symbol references (#712)
* fix symbol references

* skip references for inline assembly
2022-10-29 04:37:52 -04:00